Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
82c89910
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,发现更多精彩内容 >>
提交
82c89910
编写于
4月 12, 2016
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: use IViewletView
上级
f64ad1bf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
11 deletion
+11
-11
src/vs/workbench/parts/debug/browser/debugViewlet.ts
src/vs/workbench/parts/debug/browser/debugViewlet.ts
+9
-9
src/vs/workbench/parts/debug/common/debug.ts
src/vs/workbench/parts/debug/common/debug.ts
+2
-2
未找到文件。
src/vs/workbench/parts/debug/browser/debugViewlet.ts
浏览文件 @
82c89910
...
...
@@ -10,9 +10,9 @@ import { TPromise } from 'vs/base/common/winjs.base';
import
lifecycle
=
require
(
'
vs/base/common/lifecycle
'
);
import
actions
=
require
(
'
vs/base/common/actions
'
);
import
actionbar
=
require
(
'
vs/base/browser/ui/actionbar/actionbar
'
);
import
splitview
=
require
(
'
vs/base/browser/ui/splitview/splitview
'
)
;
import
{
SplitView
}
from
'
vs/base/browser/ui/splitview/splitview
'
;
import
memento
=
require
(
'
vs/workbench/common/memento
'
);
import
viewlet
=
require
(
'
vs/workbench/browser/viewlet
'
)
;
import
{
IViewletView
,
Viewlet
}
from
'
vs/workbench/browser/viewlet
'
;
import
debug
=
require
(
'
vs/workbench/parts/debug/common/debug
'
);
import
debugactions
=
require
(
'
vs/workbench/parts/debug/electron-browser/debugActions
'
);
import
dbgactionitems
=
require
(
'
vs/workbench/parts/debug/browser/debugActionItems
'
);
...
...
@@ -25,7 +25,7 @@ import { IStorageService } from 'vs/platform/storage/common/storage';
import
IDebugService
=
debug
.
IDebugService
;
const
$
=
builder
.
$
;
export
class
DebugViewlet
extends
viewlet
.
Viewlet
{
export
class
DebugViewlet
extends
Viewlet
{
private
toDispose
:
lifecycle
.
IDisposable
[];
private
actions
:
actions
.
IAction
[];
...
...
@@ -33,10 +33,10 @@ export class DebugViewlet extends viewlet.Viewlet {
private
viewletSettings
:
any
;
private
$el
:
builder
.
Builder
;
private
splitView
:
splitview
.
SplitView
;
private
views
:
(
viewlet
.
CollapsibleViewletView
|
viewlet
.
AdaptiveCollapsibleViewletView
)
[];
private
splitView
:
SplitView
;
private
views
:
IViewletView
[];
private
lastFocusedView
:
viewlet
.
CollapsibleViewletView
|
viewlet
.
AdaptiveCollapsible
ViewletView
;
private
lastFocusedView
:
I
ViewletView
;
constructor
(
@
ITelemetryService
telemetryService
:
ITelemetryService
,
...
...
@@ -70,12 +70,12 @@ export class DebugViewlet extends viewlet.Viewlet {
this
.
viewletSettings
)
);
this
.
splitView
=
new
splitview
.
SplitView
(
this
.
$el
.
getHTMLElement
());
this
.
splitView
=
new
SplitView
(
this
.
$el
.
getHTMLElement
());
this
.
toDispose
.
push
(
this
.
splitView
);
this
.
views
.
forEach
(
v
=>
this
.
splitView
.
addView
(
v
));
// Track focus
this
.
toDispose
.
push
(
this
.
splitView
.
onFocus
((
view
:
viewlet
.
CollapsibleViewletView
|
viewlet
.
AdaptiveCollapsible
ViewletView
)
=>
{
this
.
toDispose
.
push
(
this
.
splitView
.
onFocus
((
view
:
I
ViewletView
)
=>
{
this
.
lastFocusedView
=
view
;
}));
}
else
{
...
...
@@ -92,7 +92,7 @@ export class DebugViewlet extends viewlet.Viewlet {
public
setVisible
(
visible
:
boolean
):
TPromise
<
any
>
{
return
super
.
setVisible
(
visible
).
then
(()
=>
{
return
TPromise
.
join
(
this
.
views
.
map
(
(
view
)
=>
view
.
setVisible
&&
view
.
setVisible
(
visible
)));
return
TPromise
.
join
(
this
.
views
.
map
(
view
=>
view
.
setVisible
(
visible
)));
});
}
...
...
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
82c89910
...
...
@@ -8,7 +8,7 @@ import { TPromise } from 'vs/base/common/winjs.base';
import
{
IActionRunner
}
from
'
vs/base/common/actions
'
;
import
ee
=
require
(
'
vs/base/common/eventEmitter
'
);
import
severity
from
'
vs/base/common/severity
'
;
import
{
AdaptiveCollapsibleViewletView
,
Collapsible
ViewletView
}
from
'
vs/workbench/browser/viewlet
'
;
import
{
I
ViewletView
}
from
'
vs/workbench/browser/viewlet
'
;
import
{
createDecorator
,
ServiceIdentifier
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
editor
=
require
(
'
vs/editor/common/editorCommon
'
);
import
editorbrowser
=
require
(
'
vs/editor/browser/editorBrowser
'
);
...
...
@@ -351,7 +351,7 @@ export interface IDebugEditorContribution extends editor.IEditorContribution {
// Debug view registration
export
interface
IDebugViewConstructorSignature
{
new
(
actionRunner
:
IActionRunner
,
viewletSetings
:
any
,
...
services
:
{
serviceId
:
ServiceIdentifier
<
any
>
;
}[]):
AdaptiveCollapsibleViewletView
|
Collapsible
ViewletView
;
new
(
actionRunner
:
IActionRunner
,
viewletSetings
:
any
,
...
services
:
{
serviceId
:
ServiceIdentifier
<
any
>
;
}[]):
I
ViewletView
;
}
export
interface
IDebugViewRegistry
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录