make IWindowIndicator.onDidChange optional. FIxes #128109
This commit is contained in:
parent
ede06d01ec
commit
b5a3dddea0
|
@ -180,7 +180,7 @@ export class RemoteStatusIndicator extends Disposable implements IWorkbenchContr
|
|||
|
||||
// Update based on remote indicator changes if any
|
||||
const remoteIndicator = this.environmentService.options?.windowIndicator;
|
||||
if (remoteIndicator) {
|
||||
if (remoteIndicator && remoteIndicator.onDidChange) {
|
||||
this._register(remoteIndicator.onDidChange(() => this.updateRemoteStatusIndicator()));
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ interface IWindowIndicator {
|
|||
/**
|
||||
* Triggering this event will cause the window indicator to update.
|
||||
*/
|
||||
onDidChange: Event<void>;
|
||||
readonly onDidChange?: Event<void>;
|
||||
|
||||
/**
|
||||
* Label of the window indicator may include octicons
|
||||
|
@ -192,12 +192,12 @@ interface IInitialColorTheme {
|
|||
/**
|
||||
* Initial color theme type.
|
||||
*/
|
||||
themeType: ColorScheme;
|
||||
readonly themeType: ColorScheme;
|
||||
|
||||
/**
|
||||
* A list of workbench colors to apply initially.
|
||||
*/
|
||||
colors?: { [colorId: string]: string };
|
||||
readonly colors?: { [colorId: string]: string };
|
||||
}
|
||||
|
||||
interface IDefaultView {
|
||||
|
|
Loading…
Reference in a new issue