mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
check if enablePersistentSessions before updating remote or local state
This commit is contained in:
parent
ebdf30f088
commit
dc04badf34
|
@ -575,7 +575,9 @@ export class TerminalService implements ITerminalService {
|
|||
instance.addDisposable(instance.onLinksReady(this._onInstanceLinksReady.fire, this._onInstanceLinksReady));
|
||||
instance.addDisposable(instance.onDimensionsChanged(() => {
|
||||
this._onInstanceDimensionsChanged.fire(instance);
|
||||
!!this._environmentService.remoteAuthority ? this._updateRemoteState() : this._updateLocalState();
|
||||
if (this.configHelper.config.enablePersistentSessions) {
|
||||
!!this._environmentService.remoteAuthority ? this._updateRemoteState() : this._updateLocalState();
|
||||
}
|
||||
}));
|
||||
instance.addDisposable(instance.onMaximumDimensionsChanged(() => this._onInstanceMaximumDimensionsChanged.fire(instance)));
|
||||
instance.addDisposable(instance.onFocus(this._onActiveInstanceChanged.fire, this._onActiveInstanceChanged));
|
||||
|
|
Loading…
Reference in a new issue