Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d62481b6
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,发现更多精彩内容 >>
提交
d62481b6
编写于
11月 07, 2019
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into pr/83797
上级
5eb65764
49447a38
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
1388 deletion
+0
-1388
src/typings/node-pty.d.ts
src/typings/node-pty.d.ts
+0
-143
src/typings/xterm-addon-search.d.ts
src/typings/xterm-addon-search.d.ts
+0
-69
src/typings/xterm-addon-web-links.d.ts
src/typings/xterm-addon-web-links.d.ts
+0
-71
src/typings/xterm.d.ts
src/typings/xterm.d.ts
+0
-1105
未找到文件。
src/typings/node-pty.d.ts
已删除
100644 → 0
浏览文件 @
5eb65764
/**
* Copyright (c) 2017, Daniel Imms (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*/
declare
module
'
node-pty
'
{
/**
* Forks a process as a pseudoterminal.
* @param file The file to launch.
* @param args The file's arguments as argv (string[]) or in a pre-escaped CommandLine format
* (string). Note that the CommandLine option is only available on Windows and is expected to be
* escaped properly.
* @param options The options of the terminal.
* @see CommandLineToArgvW https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391(v=vs.85).aspx
* @see Parsing C++ Comamnd-Line Arguments https://msdn.microsoft.com/en-us/library/17w5ykft.aspx
* @see GetCommandLine https://msdn.microsoft.com/en-us/library/windows/desktop/ms683156.aspx
*/
export
function
spawn
(
file
:
string
,
args
:
string
[]
|
string
,
options
:
IPtyForkOptions
|
IWindowsPtyForkOptions
):
IPty
;
export
interface
IPtyForkOptions
{
name
?:
string
;
cols
?:
number
;
rows
?:
number
;
cwd
?:
string
;
env
?:
{
[
key
:
string
]:
string
};
uid
?:
number
;
gid
?:
number
;
encoding
?:
string
;
}
export
interface
IWindowsPtyForkOptions
{
name
?:
string
;
cols
?:
number
;
rows
?:
number
;
cwd
?:
string
;
env
?:
{
[
key
:
string
]:
string
};
encoding
?:
string
;
/**
* Whether to use the experimental ConPTY system on Windows. When this is not set, ConPTY will
* be used when the Windows build number is >= 18309 (it's available in 17134 and 17692 but is
* too unstable to enable by default).
*
* This setting does nothing on non-Windows.
*/
experimentalUseConpty
?:
boolean
;
/**
* Whether to use PSEUDOCONSOLE_INHERIT_CURSOR in conpty.
* @see https://docs.microsoft.com/en-us/windows/console/createpseudoconsole
*/
conptyInheritCursor
?:
boolean
;
}
/**
* An interface representing a pseudoterminal, on Windows this is emulated via the winpty library.
*/
export
interface
IPty
{
/**
* The process ID of the outer process.
*/
readonly
pid
:
number
;
/**
* The column size in characters.
*/
readonly
cols
:
number
;
/**
* The row size in characters.
*/
readonly
rows
:
number
;
/**
* The title of the active process.
*/
readonly
process
:
string
;
/**
* Adds an event listener for when a data event fires. This happens when data is returned from
* the pty.
* @returns an `IDisposable` to stop listening.
*/
readonly
onData
:
IEvent
<
string
>
;
/**
* Adds an event listener for when an exit event fires. This happens when the pty exits.
* @returns an `IDisposable` to stop listening.
*/
readonly
onExit
:
IEvent
<
{
exitCode
:
number
,
signal
?:
number
}
>
;
/**
* Adds a listener to the data event, fired when data is returned from the pty.
* @param event The name of the event.
* @param listener The callback function.
* @deprecated Use IPty.onData
*/
on
(
event
:
'
data
'
,
listener
:
(
data
:
string
)
=>
void
):
void
;
/**
* Adds a listener to the exit event, fired when the pty exits.
* @param event The name of the event.
* @param listener The callback function, exitCode is the exit code of the process and signal is
* the signal that triggered the exit. signal is not supported on Windows.
* @deprecated Use IPty.onExit
*/
on
(
event
:
'
exit
'
,
listener
:
(
exitCode
:
number
,
signal
?:
number
)
=>
void
):
void
;
/**
* Resizes the dimensions of the pty.
* @param columns THe number of columns to use.
* @param rows The number of rows to use.
*/
resize
(
columns
:
number
,
rows
:
number
):
void
;
/**
* Writes data to the pty.
* @param data The data to write.
*/
write
(
data
:
string
):
void
;
/**
* Kills the pty.
* @param signal The signal to use, defaults to SIGHUP. This parameter is not supported on
* Windows.
* @throws Will throw when signal is used on Windows.
*/
kill
(
signal
?:
string
):
void
;
}
/**
* An object that can be disposed via a dispose function.
*/
export
interface
IDisposable
{
dispose
():
void
;
}
/**
* An event that can be listened to.
* @returns an `IDisposable` to stop listening.
*/
export
interface
IEvent
<
T
>
{
(
listener
:
(
e
:
T
)
=>
any
):
IDisposable
;
}
}
src/typings/xterm-addon-search.d.ts
已删除
100644 → 0
浏览文件 @
5eb65764
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
// HACK: gulp-tsb doesn't play nice with importing from typings
// import { Terminal, ITerminalAddon } from 'xterm';
declare
module
'
xterm-addon-search
'
{
/**
* Options for a search.
*/
export
interface
ISearchOptions
{
/**
* Whether the search term is a regex.
*/
regex
?:
boolean
;
/**
* Whether to search for a whole word, the result is only valid if it's
* suppounded in "non-word" characters such as `_`, `(`, `)` or space.
*/
wholeWord
?:
boolean
;
/**
* Whether the search is case sensitive.
*/
caseSensitive
?:
boolean
;
/**
* Whether to do an indcremental search, this will expand the selection if it
* still matches the term the user typed. Note that this only affects
* `findNext`, not `findPrevious`.
*/
incremental
?:
boolean
;
}
/**
* An xterm.js addon that provides search functionality.
*/
export
class
SearchAddon
{
/**
* Activates the addon
* @param terminal The terminal the addon is being loaded in.
*/
public
activate
(
terminal
:
any
):
void
;
/**
* Disposes the addon.
*/
public
dispose
():
void
;
/**
* Search forwards for the next result that matches the search term and
* options.
* @param term The search term.
* @param searchOptions The options for the search.
*/
public
findNext
(
term
:
string
,
searchOptions
?:
ISearchOptions
):
boolean
;
/**
* Search backwards for the previous result that matches the search term and
* options.
* @param term The search term.
* @param searchOptions The options for the search.
*/
public
findPrevious
(
term
:
string
,
searchOptions
?:
ISearchOptions
):
boolean
;
}
}
src/typings/xterm-addon-web-links.d.ts
已删除
100644 → 0
浏览文件 @
5eb65764
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
// HACK: gulp-tsb doesn't play nice with importing from typings
// import { Terminal, ITerminalAddon } from 'xterm';
interface
ILinkMatcherOptions
{
/**
* The index of the link from the regex.match(text) call. This defaults to 0
* (for regular expressions without capture groups).
*/
matchIndex
?:
number
;
/**
* A callback that validates whether to create an individual link, pass
* whether the link is valid to the callback.
*/
validationCallback
?:
(
uri
:
string
,
callback
:
(
isValid
:
boolean
)
=>
void
)
=>
void
;
/**
* A callback that fires when the mouse hovers over a link for a moment.
*/
tooltipCallback
?:
(
event
:
MouseEvent
,
uri
:
string
)
=>
boolean
|
void
;
/**
* A callback that fires when the mouse leaves a link. Note that this can
* happen even when tooltipCallback hasn't fired for the link yet.
*/
leaveCallback
?:
()
=>
void
;
/**
* The priority of the link matcher, this defines the order in which the link
* matcher is evaluated relative to others, from highest to lowest. The
* default value is 0.
*/
priority
?:
number
;
/**
* A callback that fires when the mousedown and click events occur that
* determines whether a link will be activated upon click. This enables
* only activating a link when a certain modifier is held down, if not the
* mouse event will continue propagation (eg. double click to select word).
*/
willLinkActivate
?:
(
event
:
MouseEvent
,
uri
:
string
)
=>
boolean
;
}
declare
module
'
xterm-addon-web-links
'
{
/**
* An xterm.js addon that enables web links.
*/
export
class
WebLinksAddon
{
/**
* Creates a new web links addon.
* @param handler The callback when the link is called.
* @param options Options for the link matcher.
*/
constructor
(
handler
?:
(
event
:
MouseEvent
,
uri
:
string
)
=>
void
,
options
?:
ILinkMatcherOptions
);
/**
* Activates the addon
* @param terminal The terminal the addon is being loaded in.
*/
public
activate
(
terminal
:
any
):
void
;
/**
* Disposes the addon.
*/
public
dispose
():
void
;
}
}
src/typings/xterm.d.ts
已删除
100644 → 0
浏览文件 @
5eb65764
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录