remoteAuthority context key: set to disconnected to avoid matches

This commit is contained in:
Martin Aeschlimann 2019-07-25 17:36:56 +02:00
parent dba0ee0392
commit 8968c83198

View file

@ -119,7 +119,7 @@ export class RemoteWindowActiveIndicator extends Disposable implements IWorkbenc
if (this.disconnected !== isDisconnected) {
this.disconnected = isDisconnected;
RemoteConnectionState.bindTo(this.contextKeyService).set(isDisconnected ? 'disconnected' : 'connected');
Deprecated_RemoteAuthorityContext.bindTo(this.contextKeyService).set(isDisconnected ? '' : this.remoteAuthority || '');
Deprecated_RemoteAuthorityContext.bindTo(this.contextKeyService).set(isDisconnected ? '' : this.remoteAuthority || `disconnected/${this.remoteAuthority}`);
this.updateWindowIndicator();
}
}