Skip to content

Commit 4d954f7

Browse files
authored
Avoid repeatedly setting busy and ready for language server status (#2494)
Signed-off-by: Shi Chen <chenshi@microsoft.com>
1 parent 1830d4d commit 4d954f7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/languageStatusItemFactory.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export namespace ServerStatusItemFactory {
6363
}
6464

6565
export function setBusy(item: any): void {
66+
if (item.busy === true) {
67+
return;
68+
}
6669
item.text = "Building";
6770
item.busy = true;
6871
}
@@ -91,6 +94,9 @@ export namespace ServerStatusItemFactory {
9194
}
9295

9396
export function setReady(item: any): void {
97+
if (item.text === StatusIcon.Ready) {
98+
return;
99+
}
94100
item.busy = false;
95101
item.severity = vscode.LanguageStatusSeverity?.Information;
96102
item.command = StatusCommands.showServerStatusCommand;

0 commit comments

Comments
 (0)