This repository was archived by the owner on Nov 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ function whenChangingWorkspaceFolders(
175
175
// Don't use URI as it's unreliable the same path might not become the same URI.
176
176
const workspaces : Map < string , ClientWorkspace > = new Map ( ) ;
177
177
let activeWorkspace : ClientWorkspace | null ;
178
- let commandsUnregistered : boolean = true ;
178
+ let commandsRegistered : boolean = false ;
179
179
180
180
// We run one RLS and one corresponding language client per workspace folder
181
181
// (VSCode workspace, not Cargo workspace). This class contains all the per-client
@@ -279,7 +279,7 @@ class ClientWorkspace {
279
279
}
280
280
281
281
this . disposables . forEach ( d => d . dispose ( ) ) ;
282
- commandsUnregistered = true ;
282
+ commandsRegistered = false ;
283
283
}
284
284
285
285
private registerCommands (
@@ -289,11 +289,11 @@ class ClientWorkspace {
289
289
if ( ! this . lc ) {
290
290
return ;
291
291
}
292
- if ( multiProjectEnabled && ! commandsUnregistered ) {
292
+ if ( multiProjectEnabled && commandsRegistered ) {
293
293
return ;
294
294
}
295
295
296
- commandsUnregistered = false ;
296
+ commandsRegistered = true ;
297
297
const rustupUpdateDisposable = commands . registerCommand (
298
298
'rls.update' ,
299
299
( ) => {
You can’t perform that action at this time.
0 commit comments