mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-23 23:39:04 +01:00
tweak proposed shouldPersist API
This commit is contained in:
@@ -550,7 +550,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
||||
}
|
||||
|
||||
get persistentProcessId(): number | undefined { return this._processManager.persistentProcessId; }
|
||||
get shouldPersist(): boolean { return this._processManager.shouldPersist && !this.shellLaunchConfig.disablePersistence; }
|
||||
get shouldPersist(): boolean { return this._processManager.shouldPersist; }
|
||||
|
||||
/**
|
||||
* Create xterm.js instance and attach data listeners.
|
||||
|
||||
@@ -223,7 +223,7 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
|
||||
// this is a copy of what the merged environment collection is on the remote side
|
||||
await this._setupEnvVariableInfo(backend, variableResolver, shellLaunchConfig);
|
||||
|
||||
const shouldPersist = !shellLaunchConfig.isFeatureTerminal && this._configHelper.config.enablePersistentSessions;
|
||||
const shouldPersist = !shellLaunchConfig.isFeatureTerminal && this._configHelper.config.enablePersistentSessions && !shellLaunchConfig.disablePersistence;
|
||||
if (shellLaunchConfig.attachPersistentProcess) {
|
||||
const result = await backend.attachToProcess(shellLaunchConfig.attachPersistentProcess.id);
|
||||
if (result) {
|
||||
|
||||
Reference in New Issue
Block a user