Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
d2d9d65e
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
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,发现更多精彩内容 >>
提交
d2d9d65e
编写于
3月 26, 2018
作者:
R
Rachel Macfarlane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update windows-process-tree version to 0.2.0
上级
b638f1ad
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
58 addition
and
11 deletion
+58
-11
package.json
package.json
+1
-1
src/typings/windows-process-tree.d.ts
src/typings/windows-process-tree.d.ts
+53
-6
src/vs/workbench/parts/terminal/electron-browser/windowsShellHelper.ts
...nch/parts/terminal/electron-browser/windowsShellHelper.ts
+1
-1
yarn.lock
yarn.lock
+3
-3
未找到文件。
package.json
浏览文件 @
d2d9d65e
...
...
@@ -132,6 +132,6 @@
"optionalDependencies"
:
{
"windows-foreground-love"
:
"0.1.0"
,
"windows-mutex"
:
"^0.2.0"
,
"windows-process-tree"
:
"0.
1.6
"
"windows-process-tree"
:
"0.
2.0
"
}
}
src/typings/windows-process-tree.d.ts
浏览文件 @
d2d9d65e
...
...
@@ -4,13 +4,60 @@
*--------------------------------------------------------------------------------------------*/
declare
module
'
windows-process-tree
'
{
interface
ProcessTreeNode
{
pid
:
number
,
name
:
string
,
children
:
ProcessTreeNode
[]
export
enum
ProcessDataFlag
{
None
=
0
,
Memory
=
1
,
CommandLine
=
2
}
function
get
(
rootPid
:
number
,
callback
:
(
tree
:
ProcessTreeNode
)
=>
void
):
void
;
export
interface
IProcessInfo
{
pid
:
number
;
ppid
:
number
;
name
:
string
;
export
=
get
;
/**
* The working set size of the process, in bytes.
*/
memory
?:
number
;
/**
* The string returned is at most 512 chars, strings exceeding this length are truncated.
*/
commandLine
?:
string
;
}
export
interface
IProcessCpuInfo
extends
IProcessInfo
{
cpu
?:
number
;
}
export
interface
IProcessTreeNode
{
pid
:
number
;
name
:
string
;
memory
?:
number
;
commandLine
?:
string
;
children
:
IProcessTreeNode
[];
}
/**
* Returns a tree of processes with the rootPid process as the root.
* @param rootPid - The pid of the process that will be the root of the tree.
* @param callback - The callback to use with the returned list of processes.
* @param flags - The flags for what process data should be included.
*/
export
function
getProcessTree
(
rootPid
:
number
,
callback
:
(
tree
:
IProcessTreeNode
)
=>
void
,
flags
?:
ProcessDataFlag
):
void
;
/**
* Returns a list of processes containing the rootPid process and all of its descendants.
* @param rootPid - The pid of the process of interest.
* @param callback - The callback to use with the returned set of processes.
* @param flags - The flags for what process data should be included.
*/
export
function
getProcessList
(
rootPid
:
number
,
callback
:
(
processList
:
IProcessInfo
[])
=>
void
,
flags
?:
ProcessDataFlag
):
void
;
/**
* Returns the list of processes annotated with cpu usage information.
* @param processList - The list of processes.
* @param callback - The callback to use with the returned list of processes.
*/
export
function
getProcessCpuUsage
(
processList
:
IProcessInfo
[],
callback
:
(
processListWithCpu
:
IProcessCpuInfo
[])
=>
void
):
void
;
}
src/vs/workbench/parts/terminal/electron-browser/windowsShellHelper.ts
浏览文件 @
d2d9d65e
...
...
@@ -115,7 +115,7 @@ export class WindowsShellHelper {
return
this
.
_currentRequest
;
}
this
.
_currentRequest
=
new
TPromise
<
string
>
(
resolve
=>
{
windowsProcessTree
(
this
.
_rootProcessId
,
(
tree
)
=>
{
windowsProcessTree
.
getProcessTree
(
this
.
_rootProcessId
,
(
tree
)
=>
{
const
name
=
this
.
traverseTree
(
tree
);
this
.
_currentRequest
=
null
;
resolve
(
name
);
...
...
yarn.lock
浏览文件 @
d2d9d65e
...
...
@@ -5969,9 +5969,9 @@ windows-mutex@^0.2.0:
bindings "^1.2.1"
nan "^2.1.0"
windows-process-tree@0.
1.6
:
version "0.
1.6
"
resolved "https://registry.yarnpkg.com/windows-process-tree/-/windows-process-tree-0.
1.6.tgz#c2d942a944152ea749a4c1c0bdb769b2f570639f
"
windows-process-tree@0.
2.0
:
version "0.
2.0
"
resolved "https://registry.yarnpkg.com/windows-process-tree/-/windows-process-tree-0.
2.0.tgz#04dc0507df292a7984daf0d35861bd1ebaff7ae8
"
dependencies:
nan "^2.6.2"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录