提交 4edcd169 编写于 作者: R Rob Lourens

Rename new terminal setting

上级 5572cbf5
...@@ -137,7 +137,7 @@ export class RemoteTerminalProcess extends Disposable implements ITerminalChildP ...@@ -137,7 +137,7 @@ export class RemoteTerminalProcess extends Disposable implements ITerminalChildP
const result = await this._remoteTerminalChannel.createTerminalProcess( const result = await this._remoteTerminalChannel.createTerminalProcess(
shellLaunchConfigDto, shellLaunchConfigDto,
this._activeWorkspaceRootUri, this._activeWorkspaceRootUri,
!this._shellLaunchConfig.isFeatureTerminal && this._configHelper.config.enableTerminalReconnection, !this._shellLaunchConfig.isFeatureTerminal && this._configHelper.config.enablePersistentSessions,
this._cols, this._cols,
this._rows, this._rows,
isWorkspaceShellAllowed, isWorkspaceShellAllowed,
......
...@@ -347,7 +347,7 @@ export class TerminalService implements ITerminalService { ...@@ -347,7 +347,7 @@ export class TerminalService implements ITerminalService {
} }
public async initializeTerminals(): Promise<void> { public async initializeTerminals(): Promise<void> {
const enableTerminalReconnection = this.configHelper.config.enableTerminalReconnection; const enableTerminalReconnection = this.configHelper.config.enablePersistentSessions;
const serverSpawn = this.configHelper.config.serverSpawn; const serverSpawn = this.configHelper.config.serverSpawn;
if (!!this._environmentService.remoteAuthority && enableTerminalReconnection && serverSpawn) { if (!!this._environmentService.remoteAuthority && enableTerminalReconnection && serverSpawn) {
let emptyTab: TerminalTab | undefined; let emptyTab: TerminalTab | undefined;
......
...@@ -138,7 +138,7 @@ export interface ITerminalConfiguration { ...@@ -138,7 +138,7 @@ export interface ITerminalConfiguration {
typeaheadThreshold: number; typeaheadThreshold: number;
typeaheadStyle: number | string; typeaheadStyle: number | string;
serverSpawn: boolean; serverSpawn: boolean;
enableTerminalReconnection: boolean; enablePersistentSessions: boolean;
} }
export interface ITerminalConfigHelper { export interface ITerminalConfigHelper {
......
...@@ -387,8 +387,8 @@ export const terminalConfiguration: IConfigurationNode = { ...@@ -387,8 +387,8 @@ export const terminalConfiguration: IConfigurationNode = {
type: 'boolean', type: 'boolean',
default: true default: true
}, },
'terminal.integrated.enableTerminalReconnection': { 'terminal.integrated.enablePersistentSessions': {
description: localize('terminal.integrated.enableTerminalReconnection', "Experimental: reconnect to terminals when reopening the workspace. Currently only supported in VS Code Remote workspaces."), 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', type: 'boolean',
default: true default: true
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册