Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
eed01cdc
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,发现更多精彩内容 >>
提交
eed01cdc
编写于
10月 15, 2018
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
storage - remove unused
上级
a63b9e17
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
46 deletion
+0
-46
src/vs/workbench/parts/debug/browser/breakpointsView.ts
src/vs/workbench/parts/debug/browser/breakpointsView.ts
+0
-9
src/vs/workbench/parts/debug/browser/loadedScriptsView.ts
src/vs/workbench/parts/debug/browser/loadedScriptsView.ts
+0
-10
src/vs/workbench/parts/debug/electron-browser/callStackView.ts
...s/workbench/parts/debug/electron-browser/callStackView.ts
+0
-9
src/vs/workbench/parts/debug/electron-browser/variablesView.ts
...s/workbench/parts/debug/electron-browser/variablesView.ts
+0
-9
src/vs/workbench/parts/debug/electron-browser/watchExpressionsView.ts
...ench/parts/debug/electron-browser/watchExpressionsView.ts
+0
-9
未找到文件。
src/vs/workbench/parts/debug/browser/breakpointsView.ts
浏览文件 @
eed01cdc
...
...
@@ -45,8 +45,6 @@ function createCheckbox(): HTMLInputElement {
export
class
BreakpointsView
extends
ViewletPanel
{
private
static
readonly
MAX_VISIBLE_FILES
=
9
;
private
static
readonly
MEMENTO
=
'
breakopintsview.memento
'
;
private
viewState
:
object
;
private
list
:
WorkbenchList
<
IEnablement
>
;
private
needsRefresh
:
boolean
;
...
...
@@ -64,7 +62,6 @@ export class BreakpointsView extends ViewletPanel {
super
({
...(
options
as
IViewletPanelOptions
),
ariaHeaderLabel
:
nls
.
localize
(
'
breakpointsSection
'
,
"
Breakpoints Section
"
)
},
keybindingService
,
contextMenuService
,
configurationService
);
this
.
minimumBodySize
=
this
.
maximumBodySize
=
this
.
getExpandedBodySize
();
this
.
viewState
=
options
.
viewletState
;
this
.
disposables
.
push
(
this
.
debugService
.
getModel
().
onDidChangeBreakpoints
(()
=>
this
.
onBreakpointsChange
()));
}
...
...
@@ -230,12 +227,6 @@ export class BreakpointsView extends ViewletPanel {
const
length
=
model
.
getBreakpoints
().
length
+
model
.
getExceptionBreakpoints
().
length
+
model
.
getFunctionBreakpoints
().
length
;
return
Math
.
min
(
BreakpointsView
.
MAX_VISIBLE_FILES
,
length
)
*
22
;
}
public
saveState
():
void
{
this
.
viewState
[
BreakpointsView
.
MEMENTO
]
=
!
this
.
isExpanded
();
super
.
saveState
();
}
}
class
BreakpointsDelegate
implements
IListVirtualDelegate
<
IEnablement
>
{
...
...
src/vs/workbench/parts/debug/browser/loadedScriptsView.ts
浏览文件 @
eed01cdc
...
...
@@ -351,11 +351,8 @@ class SessionTreeItem extends BaseTreeItem {
export
class
LoadedScriptsView
extends
TreeViewsViewletPanel
{
private
static
readonly
MEMENTO
=
'
loadedscriptsview.memento
'
;
private
treeContainer
:
HTMLElement
;
private
loadedScriptsItemType
:
IContextKey
<
string
>
;
private
viewState
:
object
;
constructor
(
options
:
IViewletViewOptions
,
...
...
@@ -370,7 +367,6 @@ export class LoadedScriptsView extends TreeViewsViewletPanel {
@
IDebugService
private
debugService
:
IDebugService
)
{
super
({
...(
options
as
IViewletPanelOptions
),
ariaHeaderLabel
:
nls
.
localize
(
'
loadedScriptsSection
'
,
"
Loaded Scripts Section
"
)
},
keybindingService
,
contextMenuService
,
configurationService
);
this
.
viewState
=
options
.
viewletState
;
this
.
loadedScriptsItemType
=
CONTEXT_LOADED_SCRIPTS_ITEM_TYPE
.
bindTo
(
contextKeyService
);
}
...
...
@@ -464,12 +460,6 @@ export class LoadedScriptsView extends TreeViewsViewletPanel {
super
.
layoutBody
(
size
);
}
public
saveState
():
void
{
this
.
viewState
[
LoadedScriptsView
.
MEMENTO
]
=
!
this
.
isExpanded
();
super
.
saveState
();
}
dispose
():
void
{
this
.
tree
=
undefined
;
super
.
dispose
();
...
...
src/vs/workbench/parts/debug/electron-browser/callStackView.ts
浏览文件 @
eed01cdc
...
...
@@ -32,11 +32,9 @@ const $ = dom.$;
export
class
CallStackView
extends
TreeViewsViewletPanel
{
private
static
readonly
MEMENTO
=
'
callstackview.memento
'
;
private
pauseMessage
:
HTMLSpanElement
;
private
pauseMessageLabel
:
HTMLSpanElement
;
private
onCallStackChangeScheduler
:
RunOnceScheduler
;
private
viewState
:
object
;
private
needsRefresh
:
boolean
;
private
ignoreSelectionChangedEvent
:
boolean
;
private
treeContainer
:
HTMLElement
;
...
...
@@ -53,7 +51,6 @@ export class CallStackView extends TreeViewsViewletPanel {
@
IContextKeyService
contextKeyService
:
IContextKeyService
)
{
super
({
...(
options
as
IViewletPanelOptions
),
ariaHeaderLabel
:
nls
.
localize
(
'
callstackSection
'
,
"
Call Stack Section
"
)
},
keybindingService
,
contextMenuService
,
configurationService
);
this
.
viewState
=
options
.
viewletState
;
this
.
callStackItemType
=
CONTEXT_CALLSTACK_ITEM_TYPE
.
bindTo
(
contextKeyService
);
// Create scheduler to prevent unnecessary flashing of tree when reacting to changes
...
...
@@ -227,12 +224,6 @@ export class CallStackView extends TreeViewsViewletPanel {
}
});
}
public
saveState
():
void
{
this
.
viewState
[
CallStackView
.
MEMENTO
]
=
!
this
.
isExpanded
();
super
.
saveState
();
}
}
class
CallStackController
extends
BaseDebugController
{
...
...
src/vs/workbench/parts/debug/electron-browser/variablesView.ts
浏览文件 @
eed01cdc
...
...
@@ -34,9 +34,7 @@ const $ = dom.$;
export
class
VariablesView
extends
TreeViewsViewletPanel
{
private
static
readonly
MEMENTO
=
'
variablesview.memento
'
;
private
onFocusStackFrameScheduler
:
RunOnceScheduler
;
private
viewState
:
object
;
private
expandedElements
:
any
[];
private
needsRefresh
:
boolean
;
private
treeContainer
:
HTMLElement
;
...
...
@@ -51,7 +49,6 @@ export class VariablesView extends TreeViewsViewletPanel {
)
{
super
({
...(
options
as
IViewletPanelOptions
),
ariaHeaderLabel
:
nls
.
localize
(
'
variablesSection
'
,
"
Variables Section
"
)
},
keybindingService
,
contextMenuService
,
configurationService
);
this
.
viewState
=
options
.
viewletState
;
this
.
expandedElements
=
[];
// Use scheduler to prevent unnecessary flashing
this
.
onFocusStackFrameScheduler
=
new
RunOnceScheduler
(()
=>
{
...
...
@@ -149,12 +146,6 @@ export class VariablesView extends TreeViewsViewletPanel {
}
});
}
public
saveState
():
void
{
this
.
viewState
[
VariablesView
.
MEMENTO
]
=
!
this
.
isExpanded
();
super
.
saveState
();
}
}
class
VariablesActionProvider
implements
IActionProvider
{
...
...
src/vs/workbench/parts/debug/electron-browser/watchExpressionsView.ts
浏览文件 @
eed01cdc
...
...
@@ -35,10 +35,8 @@ const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
export
class
WatchExpressionsView
extends
TreeViewsViewletPanel
{
private
static
readonly
MEMENTO
=
'
watchexpressionsview.memento
'
;
private
onWatchExpressionsUpdatedScheduler
:
RunOnceScheduler
;
private
treeContainer
:
HTMLElement
;
private
viewState
:
object
;
private
needsRefresh
:
boolean
;
constructor
(
...
...
@@ -50,7 +48,6 @@ export class WatchExpressionsView extends TreeViewsViewletPanel {
@
IConfigurationService
configurationService
:
IConfigurationService
)
{
super
({
...(
options
as
IViewletPanelOptions
),
ariaHeaderLabel
:
nls
.
localize
(
'
watchExpressionsSection
'
,
"
Watch Expressions Section
"
)
},
keybindingService
,
contextMenuService
,
configurationService
);
this
.
viewState
=
options
.
viewletState
;
this
.
onWatchExpressionsUpdatedScheduler
=
new
RunOnceScheduler
(()
=>
{
this
.
needsRefresh
=
false
;
...
...
@@ -132,12 +129,6 @@ export class WatchExpressionsView extends TreeViewsViewletPanel {
}
});
}
public
saveState
():
void
{
this
.
viewState
[
WatchExpressionsView
.
MEMENTO
]
=
!
this
.
isExpanded
();
super
.
saveState
();
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录