Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
a560acd1
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,发现更多精彩内容 >>
提交
a560acd1
编写于
6月 21, 2020
作者:
D
Daniel Imms
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove test link provider
上级
56358ffd
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
26 deletion
+0
-26
src/vs/workbench/api/browser/mainThreadTerminalService.ts
src/vs/workbench/api/browser/mainThreadTerminalService.ts
+0
-1
src/vs/workbench/api/common/extHostTerminalService.ts
src/vs/workbench/api/common/extHostTerminalService.ts
+0
-17
src/vs/workbench/contrib/terminal/browser/terminal.ts
src/vs/workbench/contrib/terminal/browser/terminal.ts
+0
-3
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
...vs/workbench/contrib/terminal/browser/terminalInstance.ts
+0
-1
src/vs/workbench/contrib/terminal/browser/terminalService.ts
src/vs/workbench/contrib/terminal/browser/terminalService.ts
+0
-4
未找到文件。
src/vs/workbench/api/browser/mainThreadTerminalService.ts
浏览文件 @
a560acd1
...
...
@@ -425,7 +425,6 @@ class ExtensionTerminalLinkProvider implements ITerminalExternalLinkProvider {
async
provideLinks
(
instance
:
ITerminalInstance
,
line
:
string
):
Promise
<
ITerminalLink
[]
|
undefined
>
{
const
proxy
=
this
.
_proxy
;
const
extHostLinks
=
await
proxy
.
$provideLinks
(
instance
.
id
,
line
);
console
.
log
(
'
ExtensionTerminalLinkProvider#provideLinks
'
,
extHostLinks
);
return
extHostLinks
.
map
(
dto
=>
({
id
:
dto
.
id
,
startIndex
:
dto
.
startIndex
,
...
...
src/vs/workbench/api/common/extHostTerminalService.ts
浏览文件 @
a560acd1
...
...
@@ -341,23 +341,6 @@ export abstract class BaseExtHostTerminalService implements IExtHostTerminalServ
onFirstListenerAdd
:
()
=>
this
.
_proxy
.
$startSendingDataEvents
(),
onLastListenerRemove
:
()
=>
this
.
_proxy
.
$stopSendingDataEvents
()
});
this
.
registerLinkProvider
({
provideTerminalLinks
(
ctx
)
{
const
links
:
vscode
.
TerminalLink
[]
=
[
{
startIndex
:
0
,
length
:
10
,
tooltip
:
`Open this custom "
${
ctx
.
line
.
substr
(
0
,
10
)}
" link`
}
];
return
links
;
},
handleTerminalLink
(
link
)
{
console
.
log
(
'
Handled link on ext host, tooltip=
'
+
link
.
tooltip
);
return
true
;
}
});
}
public
abstract
createTerminal
(
name
?:
string
,
shellPath
?:
string
,
shellArgs
?:
string
[]
|
string
):
vscode
.
Terminal
;
...
...
src/vs/workbench/contrib/terminal/browser/terminal.ts
浏览文件 @
a560acd1
...
...
@@ -301,9 +301,6 @@ export interface ITerminalInstance {
/** A promise that resolves when the terminal's pty/process have been created. */
processReady
:
Promise
<
void
>
;
/** A promise that resolves when xterm.js has been created. */
xtermReady
:
Promise
<
void
>
;
/**
* The title of the terminal. This is either title or the process currently running or an
* explicit name given to the terminal instance through the extension API.
...
...
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
浏览文件 @
a560acd1
...
...
@@ -129,7 +129,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
// TODO: Should this be an event as it can fire twice?
public
get
processReady
():
Promise
<
void
>
{
return
this
.
_processManager
.
ptyProcessReady
;
}
public
get
areLinksReady
():
boolean
{
return
this
.
_areLinksReady
;
}
public
get
xtermReady
():
Promise
<
void
>
{
return
this
.
_xtermReadyPromise
.
then
(()
=>
{
});
}
public
get
exitCode
():
number
|
undefined
{
return
this
.
_exitCode
;
}
public
get
title
():
string
{
return
this
.
_title
;
}
public
get
hadFocusOnExit
():
boolean
{
return
this
.
_hadFocusOnExit
;
}
...
...
src/vs/workbench/contrib/terminal/browser/terminalService.ts
浏览文件 @
a560acd1
...
...
@@ -88,8 +88,6 @@ export class TerminalService implements ITerminalService {
public
get
onInstancesChanged
():
Event
<
void
>
{
return
this
.
_onInstancesChanged
.
event
;
}
private
readonly
_onInstanceTitleChanged
=
new
Emitter
<
ITerminalInstance
>
();
public
get
onInstanceTitleChanged
():
Event
<
ITerminalInstance
>
{
return
this
.
_onInstanceTitleChanged
.
event
;
}
private
readonly
_onInstanceXtermReady
=
new
Emitter
<
ITerminalInstance
>
();
public
get
onInstanceXtermReady
():
Event
<
ITerminalInstance
>
{
return
this
.
_onInstanceXtermReady
.
event
;
}
private
readonly
_onActiveInstanceChanged
=
new
Emitter
<
ITerminalInstance
|
undefined
>
();
public
get
onActiveInstanceChanged
():
Event
<
ITerminalInstance
|
undefined
>
{
return
this
.
_onActiveInstanceChanged
.
event
;
}
private
readonly
_onTabDisposed
=
new
Emitter
<
ITerminalTab
>
();
...
...
@@ -490,7 +488,6 @@ export class TerminalService implements ITerminalService {
const
disposables
:
IDisposable
[]
=
[];
this
.
_linkProviders
.
add
(
linkProvider
);
for
(
const
instance
of
this
.
terminalInstances
)
{
// Only register immediately when xterm is ready
if
(
instance
.
areLinksReady
)
{
disposables
.
push
(
instance
.
registerLinkProvider
(
linkProvider
));
}
...
...
@@ -665,7 +662,6 @@ export class TerminalService implements ITerminalService {
public
createInstance
(
container
:
HTMLElement
|
undefined
,
shellLaunchConfig
:
IShellLaunchConfig
):
ITerminalInstance
{
const
instance
=
this
.
_instantiationService
.
createInstance
(
TerminalInstance
,
this
.
_terminalFocusContextKey
,
this
.
_terminalShellTypeContextKey
,
this
.
_configHelper
,
container
,
shellLaunchConfig
);
this
.
_onInstanceCreated
.
fire
(
instance
);
instance
.
xtermReady
.
then
(()
=>
this
.
_onInstanceXtermReady
.
fire
(
instance
));
return
instance
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录