mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
allow to mark a language status item as busy, https://github.com/microsoft/vscode/issues/129037
This commit is contained in:
@@ -98,6 +98,7 @@ export class ExtHostLanguages implements ExtHostLanguagesShape {
|
||||
command: undefined,
|
||||
text: '',
|
||||
detail: '',
|
||||
busy: false
|
||||
};
|
||||
|
||||
let soonHandle: IDisposable | undefined;
|
||||
@@ -115,7 +116,8 @@ export class ExtHostLanguages implements ExtHostLanguagesShape {
|
||||
detail: data.detail ?? '',
|
||||
severity: data.severity === LanguageStatusSeverity.Error ? Severity.Error : data.severity === LanguageStatusSeverity.Warning ? Severity.Warning : Severity.Info,
|
||||
command: data.command && this._commands.toInternal(data.command, commandDisposables),
|
||||
accessibilityInfo: data.accessibilityInformation
|
||||
accessibilityInfo: data.accessibilityInformation,
|
||||
busy: data.busy
|
||||
});
|
||||
}, 0);
|
||||
};
|
||||
@@ -178,6 +180,13 @@ export class ExtHostLanguages implements ExtHostLanguagesShape {
|
||||
set command(value) {
|
||||
data.command = value;
|
||||
updateAsync();
|
||||
},
|
||||
get busy() {
|
||||
return data.busy;
|
||||
},
|
||||
set busy(value: boolean) {
|
||||
data.busy = value;
|
||||
updateAsync();
|
||||
}
|
||||
};
|
||||
updateAsync();
|
||||
|
||||
Reference in New Issue
Block a user