Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d826dfd9
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d826dfd9
编写于
7月 19, 2019
作者:
L
Logan Ramos
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow remote error messages to work
上级
f0e66ee8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
2 deletion
+12
-2
src/vs/workbench/api/browser/mainThreadTerminalService.ts
src/vs/workbench/api/browser/mainThreadTerminalService.ts
+7
-0
src/vs/workbench/api/common/extHost.protocol.ts
src/vs/workbench/api/common/extHost.protocol.ts
+2
-1
src/vs/workbench/api/node/extHostTerminalService.ts
src/vs/workbench/api/node/extHostTerminalService.ts
+1
-0
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
...vs/workbench/contrib/terminal/browser/terminalInstance.ts
+1
-0
src/vs/workbench/contrib/terminal/common/terminal.ts
src/vs/workbench/contrib/terminal/common/terminal.ts
+1
-1
未找到文件。
src/vs/workbench/api/browser/mainThreadTerminalService.ts
浏览文件 @
d826dfd9
...
...
@@ -323,6 +323,13 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
this
.
_getTerminalProcess
(
terminalId
).
then
(
e
=>
e
.
emitCwd
(
cwd
));
}
public
$sendResolvedLaunchConfig
(
terminalId
:
number
,
shellLaunchConfig
:
IShellLaunchConfig
):
void
{
const
instance
=
this
.
_terminalService
.
getInstanceFromId
(
terminalId
);
if
(
instance
)
{
instance
.
shellLaunchConfig
=
shellLaunchConfig
;
}
}
private
async
_onRequestLatency
(
terminalId
:
number
):
Promise
<
void
>
{
const
COUNT
=
2
;
let
sum
=
0
;
...
...
src/vs/workbench/api/common/extHost.protocol.ts
浏览文件 @
d826dfd9
...
...
@@ -42,7 +42,7 @@ import { IRevealOptions, ITreeItem } from 'vs/workbench/common/views';
import
*
as
callHierarchy
from
'
vs/workbench/contrib/callHierarchy/common/callHierarchy
'
;
import
{
IAdapterDescriptor
,
IConfig
,
ITerminalSettings
}
from
'
vs/workbench/contrib/debug/common/debug
'
;
import
{
ITextQueryBuilderOptions
}
from
'
vs/workbench/contrib/search/common/queryBuilder
'
;
import
{
ITerminalDimensions
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
ITerminalDimensions
,
IShellLaunchConfig
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
ExtensionActivationError
}
from
'
vs/workbench/services/extensions/common/extensions
'
;
import
{
createExtHostContextProxyIdentifier
as
createExtId
,
createMainContextProxyIdentifier
as
createMainId
,
IRPCProtocol
}
from
'
vs/workbench/services/extensions/common/proxyIdentifier
'
;
import
*
as
search
from
'
vs/workbench/services/search/common/search
'
;
...
...
@@ -404,6 +404,7 @@ export interface MainThreadTerminalServiceShape extends IDisposable {
$sendOverrideDimensions
(
terminalId
:
number
,
dimensions
:
ITerminalDimensions
|
undefined
):
void
;
$sendProcessInitialCwd
(
terminalId
:
number
,
cwd
:
string
):
void
;
$sendProcessCwd
(
terminalId
:
number
,
initialCwd
:
string
):
void
;
$sendResolvedLaunchConfig
(
terminalId
:
number
,
shellLaunchConfig
:
IShellLaunchConfig
):
void
;
// Renderer
$terminalRendererSetName
(
terminalId
:
number
,
name
:
string
):
void
;
...
...
src/vs/workbench/api/node/extHostTerminalService.ts
浏览文件 @
d826dfd9
...
...
@@ -617,6 +617,7 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
// TODO: Support conpty on remote, it doesn't seem to work for some reason?
// TODO: When conpty is enabled, only enable it when accessibilityMode is off
const
enableConpty
=
false
;
//terminalConfig.get('windowsEnableConpty') as boolean;
this
.
_proxy
.
$sendResolvedLaunchConfig
(
id
,
shellLaunchConfig
);
this
.
_setupExtHostProcessListeners
(
id
,
new
TerminalProcess
(
shellLaunchConfig
,
initialCwd
,
cols
,
rows
,
env
,
enableConpty
,
this
.
_logService
));
}
...
...
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
浏览文件 @
d826dfd9
...
...
@@ -223,6 +223,7 @@ export class TerminalInstance implements ITerminalInstance {
public
get
hadFocusOnExit
():
boolean
{
return
this
.
_hadFocusOnExit
;
}
public
get
isTitleSetByProcess
():
boolean
{
return
!!
this
.
_messageTitleDisposable
;
}
public
get
shellLaunchConfig
():
IShellLaunchConfig
{
return
this
.
_shellLaunchConfig
;
}
public
set
shellLaunchConfig
(
shellLaunchConfig
:
IShellLaunchConfig
)
{
this
.
_shellLaunchConfig
=
shellLaunchConfig
;
}
public
get
commandTracker
():
TerminalCommandTracker
{
return
this
.
_commandTracker
;
}
private
readonly
_onExit
=
new
Emitter
<
number
>
();
...
...
src/vs/workbench/contrib/terminal/common/terminal.ts
浏览文件 @
d826dfd9
...
...
@@ -468,7 +468,7 @@ export interface ITerminalInstance {
/**
* The shell launch config used to launch the shell.
*/
readonly
shellLaunchConfig
:
IShellLaunchConfig
;
shellLaunchConfig
:
IShellLaunchConfig
;
/**
* Whether to disable layout for the terminal. This is useful when the size of the terminal is
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录