allow to mark a language status item as busy, https://github.com/microsoft/vscode/issues/129037

This commit is contained in:
Johannes Rieken
2021-11-26 11:41:50 +01:00
parent bc75bda008
commit 6b2aa3abfd
4 changed files with 17 additions and 4 deletions

View File

@@ -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();