Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
03393445
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
03393445
编写于
4月 29, 2021
作者:
M
meganrogge
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pass configuration in from processManager -> remoteTerminalService
上级
e7c0af11
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
30 addition
and
28 deletion
+30
-28
src/vs/workbench/contrib/terminal/browser/remoteTerminalService.ts
...rkbench/contrib/terminal/browser/remoteTerminalService.ts
+3
-2
src/vs/workbench/contrib/terminal/browser/terminal.ts
src/vs/workbench/contrib/terminal/browser/terminal.ts
+2
-1
src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts
...kbench/contrib/terminal/browser/terminalProcessManager.ts
+24
-3
src/vs/workbench/contrib/terminal/common/remoteTerminalChannel.ts
...orkbench/contrib/terminal/common/remoteTerminalChannel.ts
+1
-22
未找到文件。
src/vs/workbench/contrib/terminal/browser/remoteTerminalService.ts
浏览文件 @
03393445
...
@@ -16,7 +16,7 @@ import { INotificationHandle, INotificationService, IPromptChoice, Severity } fr
...
@@ -16,7 +16,7 @@ import { INotificationHandle, INotificationService, IPromptChoice, Severity } fr
import
{
IShellLaunchConfig
,
IShellLaunchConfigDto
,
ITerminalChildProcess
,
ITerminalsLayoutInfo
,
ITerminalsLayoutInfoById
}
from
'
vs/platform/terminal/common/terminal
'
;
import
{
IShellLaunchConfig
,
IShellLaunchConfigDto
,
ITerminalChildProcess
,
ITerminalsLayoutInfo
,
ITerminalsLayoutInfoById
}
from
'
vs/platform/terminal/common/terminal
'
;
import
{
RemotePty
}
from
'
vs/workbench/contrib/terminal/browser/remotePty
'
;
import
{
RemotePty
}
from
'
vs/workbench/contrib/terminal/browser/remotePty
'
;
import
{
IRemoteTerminalService
,
ITerminalInstanceService
}
from
'
vs/workbench/contrib/terminal/browser/terminal
'
;
import
{
IRemoteTerminalService
,
ITerminalInstanceService
}
from
'
vs/workbench/contrib/terminal/browser/terminal
'
;
import
{
RemoteTerminalChannelClient
,
REMOTE_TERMINAL_CHANNEL_NAME
}
from
'
vs/workbench/contrib/terminal/common/remoteTerminalChannel
'
;
import
{
ICompleteTerminalConfiguration
,
RemoteTerminalChannelClient
,
REMOTE_TERMINAL_CHANNEL_NAME
}
from
'
vs/workbench/contrib/terminal/common/remoteTerminalChannel
'
;
import
{
IRemoteTerminalAttachTarget
,
ITerminalConfigHelper
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
IRemoteTerminalAttachTarget
,
ITerminalConfigHelper
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
IRemoteAgentService
}
from
'
vs/workbench/services/remote/common/remoteAgentService
'
;
import
{
IRemoteAgentService
}
from
'
vs/workbench/services/remote/common/remoteAgentService
'
;
...
@@ -126,7 +126,7 @@ export class RemoteTerminalService extends Disposable implements IRemoteTerminal
...
@@ -126,7 +126,7 @@ export class RemoteTerminalService extends Disposable implements IRemoteTerminal
}
}
}
}
public
async
createProcess
(
shellLaunchConfig
:
IShellLaunchConfig
,
activeWorkspaceRootUri
:
URI
|
undefined
,
cols
:
number
,
rows
:
number
,
shouldPersist
:
boolean
,
configHelper
:
ITerminalConfigHelper
):
Promise
<
ITerminalChildProcess
>
{
public
async
createProcess
(
shellLaunchConfig
:
IShellLaunchConfig
,
configuration
:
ICompleteTerminalConfiguration
,
activeWorkspaceRootUri
:
URI
|
undefined
,
cols
:
number
,
rows
:
number
,
shouldPersist
:
boolean
,
configHelper
:
ITerminalConfigHelper
):
Promise
<
ITerminalChildProcess
>
{
if
(
!
this
.
_remoteTerminalChannel
)
{
if
(
!
this
.
_remoteTerminalChannel
)
{
throw
new
Error
(
`Cannot create remote terminal when there is no remote!`
);
throw
new
Error
(
`Cannot create remote terminal when there is no remote!`
);
}
}
...
@@ -147,6 +147,7 @@ export class RemoteTerminalService extends Disposable implements IRemoteTerminal
...
@@ -147,6 +147,7 @@ export class RemoteTerminalService extends Disposable implements IRemoteTerminal
};
};
const
result
=
await
this
.
_remoteTerminalChannel
.
createProcess
(
const
result
=
await
this
.
_remoteTerminalChannel
.
createProcess
(
shellLaunchConfigDto
,
shellLaunchConfigDto
,
configuration
,
activeWorkspaceRootUri
,
activeWorkspaceRootUri
,
shouldPersist
,
shouldPersist
,
cols
,
cols
,
...
...
src/vs/workbench/contrib/terminal/browser/terminal.ts
浏览文件 @
03393445
...
@@ -17,6 +17,7 @@ import type { SearchAddon as XTermSearchAddon } from 'xterm-addon-search';
...
@@ -17,6 +17,7 @@ import type { SearchAddon as XTermSearchAddon } from 'xterm-addon-search';
import
type
{
Unicode11Addon
as
XTermUnicode11Addon
}
from
'
xterm-addon-unicode11
'
;
import
type
{
Unicode11Addon
as
XTermUnicode11Addon
}
from
'
xterm-addon-unicode11
'
;
import
type
{
WebglAddon
as
XTermWebglAddon
}
from
'
xterm-addon-webgl
'
;
import
type
{
WebglAddon
as
XTermWebglAddon
}
from
'
xterm-addon-webgl
'
;
import
{
ITerminalStatusList
}
from
'
vs/workbench/contrib/terminal/browser/terminalStatusList
'
;
import
{
ITerminalStatusList
}
from
'
vs/workbench/contrib/terminal/browser/terminalStatusList
'
;
import
{
ICompleteTerminalConfiguration
}
from
'
vs/workbench/contrib/terminal/common/remoteTerminalChannel
'
;
export
const
ITerminalService
=
createDecorator
<
ITerminalService
>
(
'
terminalService
'
);
export
const
ITerminalService
=
createDecorator
<
ITerminalService
>
(
'
terminalService
'
);
export
const
ITerminalInstanceService
=
createDecorator
<
ITerminalInstanceService
>
(
'
terminalInstanceService
'
);
export
const
ITerminalInstanceService
=
createDecorator
<
ITerminalInstanceService
>
(
'
terminalInstanceService
'
);
...
@@ -197,7 +198,7 @@ export interface ITerminalService {
...
@@ -197,7 +198,7 @@ export interface ITerminalService {
}
}
export
interface
IRemoteTerminalService
extends
IOffProcessTerminalService
{
export
interface
IRemoteTerminalService
extends
IOffProcessTerminalService
{
createProcess
(
shellLaunchConfig
:
IShellLaunchConfig
,
activeWorkspaceRootUri
:
URI
|
undefined
,
cols
:
number
,
rows
:
number
,
shouldPersist
:
boolean
,
configHelper
:
ITerminalConfigHelper
):
Promise
<
ITerminalChildProcess
>
;
createProcess
(
shellLaunchConfig
:
IShellLaunchConfig
,
configuration
:
ICompleteTerminalConfiguration
,
activeWorkspaceRootUri
:
URI
|
undefined
,
cols
:
number
,
rows
:
number
,
shouldPersist
:
boolean
,
configHelper
:
ITerminalConfigHelper
):
Promise
<
ITerminalChildProcess
>
;
}
}
/**
/**
...
...
src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts
浏览文件 @
03393445
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
*--------------------------------------------------------------------------------------------*/
import
*
as
terminalEnvironment
from
'
vs/workbench/contrib/terminal/common/terminalEnvironment
'
;
import
*
as
terminalEnvironment
from
'
vs/workbench/contrib/terminal/common/terminalEnvironment
'
;
import
{
ProcessState
,
ITerminalProcessManager
,
ITerminalConfigHelper
,
IBeforeProcessDataEvent
,
ITerminalProfileResolverService
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
ProcessState
,
ITerminalProcessManager
,
ITerminalConfigHelper
,
IBeforeProcessDataEvent
,
ITerminalProfileResolverService
,
ITerminalConfiguration
,
TERMINAL_CONFIG_SECTION
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
Emitter
,
Event
}
from
'
vs/base/common/event
'
;
import
{
Emitter
,
Event
}
from
'
vs/base/common/event
'
;
import
{
IHistoryService
}
from
'
vs/workbench/services/history/common/history
'
;
import
{
IHistoryService
}
from
'
vs/workbench/services/history/common/history
'
;
...
@@ -27,6 +27,8 @@ import { TerminalRecorder } from 'vs/platform/terminal/common/terminalRecorder';
...
@@ -27,6 +27,8 @@ import { TerminalRecorder } from 'vs/platform/terminal/common/terminalRecorder';
import
{
localize
}
from
'
vs/nls
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
formatMessageForTerminal
}
from
'
vs/workbench/contrib/terminal/common/terminalStrings
'
;
import
{
formatMessageForTerminal
}
from
'
vs/workbench/contrib/terminal/common/terminalStrings
'
;
import
{
IProcessEnvironment
,
OperatingSystem
,
OS
}
from
'
vs/base/common/platform
'
;
import
{
IProcessEnvironment
,
OperatingSystem
,
OS
}
from
'
vs/base/common/platform
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
ICompleteTerminalConfiguration
}
from
'
vs/workbench/contrib/terminal/common/remoteTerminalChannel
'
;
/** The amount of time to consider terminal errors to be related to the launch */
/** The amount of time to consider terminal errors to be related to the launch */
const
LAUNCHING_DURATION
=
500
;
const
LAUNCHING_DURATION
=
500
;
...
@@ -124,7 +126,8 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
...
@@ -124,7 +126,8 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
@
IEnvironmentVariableService
private
readonly
_environmentVariableService
:
IEnvironmentVariableService
,
@
IEnvironmentVariableService
private
readonly
_environmentVariableService
:
IEnvironmentVariableService
,
@
IRemoteTerminalService
private
readonly
_remoteTerminalService
:
IRemoteTerminalService
,
@
IRemoteTerminalService
private
readonly
_remoteTerminalService
:
IRemoteTerminalService
,
@
ITerminalProfileResolverService
private
readonly
_terminalProfileResolverService
:
ITerminalProfileResolverService
,
@
ITerminalProfileResolverService
private
readonly
_terminalProfileResolverService
:
ITerminalProfileResolverService
,
@
optional
(
ILocalTerminalService
)
localTerminalService
:
ILocalTerminalService
,
@
IConfigurationService
private
readonly
_configurationService
:
IConfigurationService
,
@
optional
(
ILocalTerminalService
)
localTerminalService
:
ILocalTerminalService
)
{
)
{
super
();
super
();
this
.
_localTerminalService
=
localTerminalService
;
this
.
_localTerminalService
=
localTerminalService
;
...
@@ -234,7 +237,25 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
...
@@ -234,7 +237,25 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
remoteAuthority
:
this
.
remoteAuthority
,
remoteAuthority
:
this
.
remoteAuthority
,
os
:
this
.
os
os
:
this
.
os
});
});
newProcess
=
await
this
.
_remoteTerminalService
.
createProcess
(
shellLaunchConfig
,
activeWorkspaceRootUri
,
cols
,
rows
,
shouldPersist
,
this
.
_configHelper
);
const
terminalConfig
=
this
.
_configurationService
.
getValue
<
ITerminalConfiguration
>
(
TERMINAL_CONFIG_SECTION
);
const
configuration
:
ICompleteTerminalConfiguration
=
{
'
terminal.integrated.automationShell.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.automationShell.windows
'
)
as
string
,
'
terminal.integrated.automationShell.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.automationShell.osx
'
)
as
string
,
'
terminal.integrated.automationShell.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.automationShell.linux
'
)
as
string
,
'
terminal.integrated.shell.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shell.windows
'
)
as
string
,
'
terminal.integrated.shell.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shell.osx
'
)
as
string
,
'
terminal.integrated.shell.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shell.linux
'
)
as
string
,
'
terminal.integrated.shellArgs.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shellArgs.windows
'
)
as
string
|
string
[],
'
terminal.integrated.shellArgs.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shellArgs.osx
'
)
as
string
|
string
[],
'
terminal.integrated.shellArgs.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shellArgs.linux
'
)
as
string
|
string
[],
'
terminal.integrated.env.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.env.windows
'
)
as
ITerminalEnvironment
,
'
terminal.integrated.env.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.env.osx
'
)
as
ITerminalEnvironment
,
'
terminal.integrated.env.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.env.linux
'
)
as
ITerminalEnvironment
,
'
terminal.integrated.inheritEnv
'
:
terminalConfig
.
inheritEnv
,
'
terminal.integrated.cwd
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.cwd
'
)
as
string
,
'
terminal.integrated.detectLocale
'
:
terminalConfig
.
detectLocale
};
newProcess
=
await
this
.
_remoteTerminalService
.
createProcess
(
shellLaunchConfig
,
configuration
,
activeWorkspaceRootUri
,
cols
,
rows
,
shouldPersist
,
this
.
_configHelper
);
}
}
if
(
!
this
.
_isDisposed
)
{
if
(
!
this
.
_isDisposed
)
{
this
.
_setupPtyHostListeners
(
this
.
_remoteTerminalService
);
this
.
_setupPtyHostListeners
(
this
.
_remoteTerminalService
);
...
...
src/vs/workbench/contrib/terminal/common/remoteTerminalChannel.ts
浏览文件 @
03393445
...
@@ -19,7 +19,6 @@ import { Schemas } from 'vs/base/common/network';
...
@@ -19,7 +19,6 @@ import { Schemas } from 'vs/base/common/network';
import
{
ILabelService
}
from
'
vs/platform/label/common/label
'
;
import
{
ILabelService
}
from
'
vs/platform/label/common/label
'
;
import
{
IEnvironmentVariableService
,
ISerializableEnvironmentVariableCollection
}
from
'
vs/workbench/contrib/terminal/common/environmentVariable
'
;
import
{
IEnvironmentVariableService
,
ISerializableEnvironmentVariableCollection
}
from
'
vs/workbench/contrib/terminal/common/environmentVariable
'
;
import
{
IProcessDataEvent
,
IShellLaunchConfig
,
IShellLaunchConfigDto
,
ITerminalDimensionsOverride
,
ITerminalEnvironment
,
ITerminalLaunchError
,
ITerminalsLayoutInfo
,
ITerminalsLayoutInfoById
,
TerminalShellType
}
from
'
vs/platform/terminal/common/terminal
'
;
import
{
IProcessDataEvent
,
IShellLaunchConfig
,
IShellLaunchConfigDto
,
ITerminalDimensionsOverride
,
ITerminalEnvironment
,
ITerminalLaunchError
,
ITerminalsLayoutInfo
,
ITerminalsLayoutInfoById
,
TerminalShellType
}
from
'
vs/platform/terminal/common/terminal
'
;
import
{
ITerminalConfiguration
,
ITerminalProfileResolverService
,
TERMINAL_CONFIG_SECTION
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
IGetTerminalLayoutInfoArgs
,
IProcessDetails
,
IPtyHostProcessReplayEvent
,
ISetTerminalLayoutInfoArgs
}
from
'
vs/platform/terminal/common/terminalProcess
'
;
import
{
IGetTerminalLayoutInfoArgs
,
IProcessDetails
,
IPtyHostProcessReplayEvent
,
ISetTerminalLayoutInfoArgs
}
from
'
vs/platform/terminal/common/terminalProcess
'
;
import
{
IProcessEnvironment
,
OperatingSystem
}
from
'
vs/base/common/platform
'
;
import
{
IProcessEnvironment
,
OperatingSystem
}
from
'
vs/base/common/platform
'
;
...
@@ -125,7 +124,6 @@ export class RemoteTerminalChannelClient {
...
@@ -125,7 +124,6 @@ export class RemoteTerminalChannelClient {
@
IConfigurationResolverService
private
readonly
_resolverService
:
IConfigurationResolverService
,
@
IConfigurationResolverService
private
readonly
_resolverService
:
IConfigurationResolverService
,
@
IEnvironmentVariableService
private
readonly
_environmentVariableService
:
IEnvironmentVariableService
,
@
IEnvironmentVariableService
private
readonly
_environmentVariableService
:
IEnvironmentVariableService
,
@
IRemoteAuthorityResolverService
private
readonly
_remoteAuthorityResolverService
:
IRemoteAuthorityResolverService
,
@
IRemoteAuthorityResolverService
private
readonly
_remoteAuthorityResolverService
:
IRemoteAuthorityResolverService
,
@
ITerminalProfileResolverService
private
readonly
_terminalProfileResolverService
:
ITerminalProfileResolverService
,
@
ILogService
private
readonly
_logService
:
ILogService
,
@
ILogService
private
readonly
_logService
:
ILogService
,
@
IEditorService
private
readonly
_editorService
:
IEditorService
,
@
IEditorService
private
readonly
_editorService
:
IEditorService
,
@
ILabelService
private
readonly
_labelService
:
ILabelService
,
@
ILabelService
private
readonly
_labelService
:
ILabelService
,
...
@@ -135,29 +133,10 @@ export class RemoteTerminalChannelClient {
...
@@ -135,29 +133,10 @@ export class RemoteTerminalChannelClient {
return
this
.
_channel
.
call
(
'
$restartPtyHost
'
,
[]);
return
this
.
_channel
.
call
(
'
$restartPtyHost
'
,
[]);
}
}
public
async
createProcess
(
shellLaunchConfig
:
IShellLaunchConfigDto
,
activeWorkspaceRootUri
:
URI
|
undefined
,
shouldPersistTerminal
:
boolean
,
cols
:
number
,
rows
:
number
):
Promise
<
ICreateTerminalProcessResult
>
{
public
async
createProcess
(
shellLaunchConfig
:
IShellLaunchConfigDto
,
configuration
:
ICompleteTerminalConfiguration
,
activeWorkspaceRootUri
:
URI
|
undefined
,
shouldPersistTerminal
:
boolean
,
cols
:
number
,
rows
:
number
):
Promise
<
ICreateTerminalProcessResult
>
{
// Be sure to first wait for the remote configuration
// Be sure to first wait for the remote configuration
await
this
.
_configurationService
.
whenRemoteConfigurationLoaded
();
await
this
.
_configurationService
.
whenRemoteConfigurationLoaded
();
const
terminalConfig
=
this
.
_configurationService
.
getValue
<
ITerminalConfiguration
>
(
TERMINAL_CONFIG_SECTION
);
const
configuration
:
ICompleteTerminalConfiguration
=
{
'
terminal.integrated.automationShell.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.automationShell.windows
'
)
as
string
,
'
terminal.integrated.automationShell.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.automationShell.osx
'
)
as
string
,
'
terminal.integrated.automationShell.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.automationShell.linux
'
)
as
string
,
'
terminal.integrated.shell.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shell.windows
'
)
as
string
,
'
terminal.integrated.shell.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shell.osx
'
)
as
string
,
'
terminal.integrated.shell.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shell.linux
'
)
as
string
,
'
terminal.integrated.shellArgs.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shellArgs.windows
'
)
as
string
|
string
[],
'
terminal.integrated.shellArgs.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shellArgs.osx
'
)
as
string
|
string
[],
'
terminal.integrated.shellArgs.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.shellArgs.linux
'
)
as
string
|
string
[],
'
terminal.integrated.env.windows
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.env.windows
'
)
as
ITerminalEnvironment
,
'
terminal.integrated.env.osx
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.env.osx
'
)
as
ITerminalEnvironment
,
'
terminal.integrated.env.linux
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.env.linux
'
)
as
ITerminalEnvironment
,
'
terminal.integrated.inheritEnv
'
:
terminalConfig
.
inheritEnv
,
'
terminal.integrated.cwd
'
:
this
.
_terminalProfileResolverService
.
getSafeConfigValueFullKey
(
'
terminal.integrated.cwd
'
)
as
string
,
'
terminal.integrated.detectLocale
'
:
terminalConfig
.
detectLocale
};
// We will use the resolver service to resolve all the variables in the config / launch config
// We will use the resolver service to resolve all the variables in the config / launch config
// But then we will keep only some variables, since the rest need to be resolved on the remote side
// But then we will keep only some variables, since the rest need to be resolved on the remote side
const
resolvedVariables
=
Object
.
create
(
null
);
const
resolvedVariables
=
Object
.
create
(
null
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录