File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ export class UI {
122
122
}
123
123
124
124
private setIsCodeAnalysisPaused ( val : boolean ) : void {
125
+ if ( ! this . isRunningCodeAnalysis ) {
126
+ return ;
127
+ }
125
128
this . isCodeAnalysisPaused = val ;
126
129
const twoStatus : boolean = val && this . isUpdatingIntelliSense ;
127
130
this . intelliSenseStatusBarItem . tooltip = ( this . isUpdatingIntelliSense ? this . updatingIntelliSenseTooltip : "" )
@@ -174,6 +177,9 @@ export class UI {
174
177
}
175
178
176
179
private setCodeAnalysisProcessed ( processed : number ) : void {
180
+ if ( ! this . isRunningCodeAnalysis ) {
181
+ return ; // Occurs when a multi-root workspace is activated.
182
+ }
177
183
this . codeAnalysisProcessed = processed ;
178
184
if ( this . codeAnalysisProcessed > this . codeAnalysisTotal ) {
179
185
this . codeAnalysisTotal = this . codeAnalysisProcessed + 1 ;
@@ -182,6 +188,9 @@ export class UI {
182
188
}
183
189
184
190
private setCodeAnalysisTotal ( total : number ) : void {
191
+ if ( ! this . isRunningCodeAnalysis ) {
192
+ return ; // Occurs when a multi-root workspace is activated.
193
+ }
185
194
this . codeAnalysisTotal = total ;
186
195
this . updateCodeAnalysisTooltip ( ) ;
187
196
}
You can’t perform that action at this time.
0 commit comments