Rename new terminal setting

This commit is contained in:
Rob Lourens 2020-10-27 16:44:40 -07:00
parent 5572cbf5c5
commit 4edcd16944
4 changed files with 5 additions and 5 deletions

View file

@ -137,7 +137,7 @@ export class RemoteTerminalProcess extends Disposable implements ITerminalChildP
const result = await this._remoteTerminalChannel.createTerminalProcess(
shellLaunchConfigDto,
this._activeWorkspaceRootUri,
!this._shellLaunchConfig.isFeatureTerminal && this._configHelper.config.enableTerminalReconnection,
!this._shellLaunchConfig.isFeatureTerminal && this._configHelper.config.enablePersistentSessions,
this._cols,
this._rows,
isWorkspaceShellAllowed,

View file

@ -347,7 +347,7 @@ export class TerminalService implements ITerminalService {
}
public async initializeTerminals(): Promise<void> {
const enableTerminalReconnection = this.configHelper.config.enableTerminalReconnection;
const enableTerminalReconnection = this.configHelper.config.enablePersistentSessions;
const serverSpawn = this.configHelper.config.serverSpawn;
if (!!this._environmentService.remoteAuthority && enableTerminalReconnection && serverSpawn) {
let emptyTab: TerminalTab | undefined;

View file

@ -138,7 +138,7 @@ export interface ITerminalConfiguration {
typeaheadThreshold: number;
typeaheadStyle: number | string;
serverSpawn: boolean;
enableTerminalReconnection: boolean;
enablePersistentSessions: boolean;
}
export interface ITerminalConfigHelper {

View file

@ -387,8 +387,8 @@ export const terminalConfiguration: IConfigurationNode = {
type: 'boolean',
default: true
},
'terminal.integrated.enableTerminalReconnection': {
description: localize('terminal.integrated.enableTerminalReconnection', "Experimental: reconnect to terminals when reopening the workspace. Currently only supported in VS Code Remote workspaces."),
'terminal.integrated.enablePersistentSessions': {
description: localize('terminal.integrated.enablePersistentSessions', "Experimental: persist terminal sessions for the workspace across window reloads. Currently only supported in VS Code Remote workspaces."),
type: 'boolean',
default: true
}