Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
dd85f62e
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,发现更多精彩内容 >>
未验证
提交
dd85f62e
编写于
8月 28, 2020
作者:
B
Benjamin Pasero
提交者:
GitHub
8月 28, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Process explorer: use icon font instead of SVG (fix #102560) (#105411)
上级
555808e9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
17 deletion
+27
-17
src/vs/code/electron-sandbox/processExplorer/media/collapsed.svg
...code/electron-sandbox/processExplorer/media/collapsed.svg
+0
-1
src/vs/code/electron-sandbox/processExplorer/media/expanded.svg
.../code/electron-sandbox/processExplorer/media/expanded.svg
+0
-1
src/vs/code/electron-sandbox/processExplorer/media/processExplorer.css
...lectron-sandbox/processExplorer/media/processExplorer.css
+4
-3
src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts
...e/electron-sandbox/processExplorer/processExplorerMain.ts
+23
-12
未找到文件。
src/vs/code/electron-sandbox/processExplorer/media/collapsed.svg
已删除
100644 → 0
浏览文件 @
555808e9
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 16 16"
><path
fill=
"#646465"
d=
"M6 4v8l4-4-4-4zm1 2.414L8.586 8 7 9.586V6.414z"
/></svg>
\ No newline at end of file
src/vs/code/electron-sandbox/processExplorer/media/expanded.svg
已删除
100644 → 0
浏览文件 @
555808e9
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 16 16"
><path
fill=
"#646465"
d=
"M11 10H5.344L11 4.414V10z"
/></svg>
\ No newline at end of file
src/vs/code/electron-sandbox/processExplorer/media/processExplorer.css
浏览文件 @
dd85f62e
...
@@ -58,6 +58,7 @@ table {
...
@@ -58,6 +58,7 @@ table {
width
:
100%
;
width
:
100%
;
table-layout
:
fixed
;
table-layout
:
fixed
;
}
}
th
[
scope
=
'col'
]
{
th
[
scope
=
'col'
]
{
vertical-align
:
bottom
;
vertical-align
:
bottom
;
border-bottom
:
1px
solid
#cccccc
;
border-bottom
:
1px
solid
#cccccc
;
...
@@ -65,6 +66,7 @@ th[scope='col'] {
...
@@ -65,6 +66,7 @@ th[scope='col'] {
border-top
:
1px
solid
#cccccc
;
border-top
:
1px
solid
#cccccc
;
cursor
:
default
;
cursor
:
default
;
}
}
td
{
td
{
padding
:
.25rem
;
padding
:
.25rem
;
vertical-align
:
top
;
vertical-align
:
top
;
...
@@ -100,7 +102,6 @@ tbody > tr:hover {
...
@@ -100,7 +102,6 @@ tbody > tr:hover {
display
:
none
;
display
:
none
;
}
}
img
{
.header
{
width
:
16px
;
display
:
flex
;
margin-right
:
4px
;
}
}
src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts
浏览文件 @
dd85f62e
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
*--------------------------------------------------------------------------------------------*/
import
'
vs/css!./media/processExplorer
'
;
import
'
vs/css!./media/processExplorer
'
;
import
'
vs/base/browser/ui/codicons/codiconStyles
'
;
// make sure codicon css is loaded
import
{
ElectronService
,
IElectronService
}
from
'
vs/platform/electron/electron-sandbox/electron
'
;
import
{
ElectronService
,
IElectronService
}
from
'
vs/platform/electron/electron-sandbox/electron
'
;
import
{
ipcRenderer
}
from
'
vs/base/parts/sandbox/electron-sandbox/globals
'
;
import
{
ipcRenderer
}
from
'
vs/base/parts/sandbox/electron-sandbox/globals
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
localize
}
from
'
vs/nls
'
;
...
@@ -16,6 +17,7 @@ import { addDisposableListener, addClass } from 'vs/base/browser/dom';
...
@@ -16,6 +17,7 @@ import { addDisposableListener, addClass } from 'vs/base/browser/dom';
import
{
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
import
{
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
import
{
isRemoteDiagnosticError
,
IRemoteDiagnosticError
}
from
'
vs/platform/diagnostics/common/diagnostics
'
;
import
{
isRemoteDiagnosticError
,
IRemoteDiagnosticError
}
from
'
vs/platform/diagnostics/common/diagnostics
'
;
import
{
MainProcessService
}
from
'
vs/platform/ipc/electron-sandbox/mainProcessService
'
;
import
{
MainProcessService
}
from
'
vs/platform/ipc/electron-sandbox/mainProcessService
'
;
import
{
CodiconLabel
}
from
'
vs/base/browser/ui/codicons/codiconLabel
'
;
const
DEBUG_FLAGS_PATTERN
=
/
\s
--
(
inspect|debug
)(
-brk|port
)?
=
(\d
+
)?
/
;
const
DEBUG_FLAGS_PATTERN
=
/
\s
--
(
inspect|debug
)(
-brk|port
)?
=
(\d
+
)?
/
;
const
DEBUG_PORT_PATTERN
=
/
\s
--
(
inspect|debug
)
-port=
(\d
+
)
/
;
const
DEBUG_PORT_PATTERN
=
/
\s
--
(
inspect|debug
)
-port=
(\d
+
)
/
;
...
@@ -156,15 +158,15 @@ class ProcessExplorer {
...
@@ -156,15 +158,15 @@ class ProcessExplorer {
return
maxProcessId
;
return
maxProcessId
;
}
}
private
updateSectionCollapsedState
(
shouldExpand
:
boolean
,
body
:
HTMLElement
,
twistie
:
HTMLImageElement
,
sectionName
:
string
)
{
private
updateSectionCollapsedState
(
shouldExpand
:
boolean
,
body
:
HTMLElement
,
twistie
:
CodiconLabel
,
sectionName
:
string
)
{
if
(
shouldExpand
)
{
if
(
shouldExpand
)
{
body
.
classList
.
remove
(
'
hidden
'
);
body
.
classList
.
remove
(
'
hidden
'
);
this
.
collapsedStateCache
.
set
(
sectionName
,
false
);
this
.
collapsedStateCache
.
set
(
sectionName
,
false
);
twistie
.
src
=
'
./media/expanded.svg
'
;
twistie
.
text
=
'
$(chevron-down)
'
;
}
else
{
}
else
{
body
.
classList
.
add
(
'
hidden
'
);
body
.
classList
.
add
(
'
hidden
'
);
this
.
collapsedStateCache
.
set
(
sectionName
,
true
);
this
.
collapsedStateCache
.
set
(
sectionName
,
true
);
twistie
.
src
=
'
./media/collapsed.svg
'
;
twistie
.
text
=
'
$(chevron-right)
'
;
}
}
}
}
...
@@ -191,18 +193,27 @@ class ProcessExplorer {
...
@@ -191,18 +193,27 @@ class ProcessExplorer {
private
renderProcessGroupHeader
(
sectionName
:
string
,
body
:
HTMLElement
,
container
:
HTMLElement
)
{
private
renderProcessGroupHeader
(
sectionName
:
string
,
body
:
HTMLElement
,
container
:
HTMLElement
)
{
const
headerRow
=
document
.
createElement
(
'
tr
'
);
const
headerRow
=
document
.
createElement
(
'
tr
'
);
const
data
=
document
.
createElement
(
'
td
'
);
data
.
textContent
=
sectionName
;
data
.
colSpan
=
4
;
headerRow
.
appendChild
(
data
);
const
twistie
=
document
.
createElement
(
'
img
'
);
const
headerData
=
document
.
createElement
(
'
td
'
);
this
.
updateSectionCollapsedState
(
!
this
.
collapsedStateCache
.
get
(
sectionName
),
body
,
twistie
,
sectionName
);
headerData
.
colSpan
=
4
;
data
.
prepend
(
twistie
);
headerRow
.
appendChild
(
headerData
);
const
headerContainer
=
document
.
createElement
(
'
div
'
);
headerContainer
.
className
=
'
header
'
;
headerData
.
appendChild
(
headerContainer
);
const
twistieContainer
=
document
.
createElement
(
'
div
'
);
const
twistieCodicon
=
new
CodiconLabel
(
twistieContainer
);
this
.
updateSectionCollapsedState
(
!
this
.
collapsedStateCache
.
get
(
sectionName
),
body
,
twistieCodicon
,
sectionName
);
headerContainer
.
appendChild
(
twistieContainer
);
const
headerLabel
=
document
.
createElement
(
'
span
'
);
headerLabel
.
textContent
=
sectionName
;
headerContainer
.
appendChild
(
headerLabel
);
this
.
listeners
.
add
(
addDisposableListener
(
d
ata
,
'
click
'
,
(
e
)
=>
{
this
.
listeners
.
add
(
addDisposableListener
(
headerD
ata
,
'
click
'
,
(
e
)
=>
{
const
isHidden
=
body
.
classList
.
contains
(
'
hidden
'
);
const
isHidden
=
body
.
classList
.
contains
(
'
hidden
'
);
this
.
updateSectionCollapsedState
(
isHidden
,
body
,
twistie
,
sectionName
);
this
.
updateSectionCollapsedState
(
isHidden
,
body
,
twistie
Codicon
,
sectionName
);
}));
}));
container
.
appendChild
(
headerRow
);
container
.
appendChild
(
headerRow
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录