Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
dd2e58b4
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,发现更多精彩内容 >>
提交
dd2e58b4
编写于
11月 03, 2016
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debugActionsWidget: destructure imports
上级
6fdc176a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
16 deletion
+16
-16
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
+16
-16
未找到文件。
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
浏览文件 @
dd2e58b4
...
...
@@ -3,19 +3,19 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
lifecycle
=
require
(
'
vs/base/common/lifecycle
'
)
;
import
errors
=
require
(
'
vs/base/common/errors
'
)
;
import
*
as
lifecycle
from
'
vs/base/common/lifecycle
'
;
import
*
as
errors
from
'
vs/base/common/errors
'
;
import
*
as
strings
from
'
vs/base/common/strings
'
;
import
severity
from
'
vs/base/common/severity
'
;
import
builder
=
require
(
'
vs/base/browser/builder
'
)
;
import
dom
=
require
(
'
vs/base/browser/dom
'
)
;
import
*
as
builder
from
'
vs/base/browser/builder
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
{
StandardMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
actions
=
require
(
'
vs/base/common/actions
'
)
;
import
events
=
require
(
'
vs/base/common/events
'
)
;
import
actionbar
=
require
(
'
vs/base/browser/ui/actionbar/actionbar
'
)
;
import
{
IAction
}
from
'
vs/base/common/actions
'
;
import
{
EventType
}
from
'
vs/base/common/events
'
;
import
{
ActionBar
,
ActionsOrientation
}
from
'
vs/base/browser/ui/actionbar/actionbar
'
;
import
{
IPartService
}
from
'
vs/workbench/services/part/common/partService
'
;
import
wbext
=
require
(
'
vs/workbench/common/contributions
'
)
;
import
debug
=
require
(
'
vs/workbench/parts/debug/common/debug
'
)
;
import
{
IWorkbenchContribution
}
from
'
vs/workbench/common/contributions
'
;
import
*
as
debug
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
PauseAction
,
ContinueAction
,
StepBackAction
,
StopAction
,
DisconnectAction
,
StepOverAction
,
StepIntoAction
,
StepOutAction
,
RestartAction
}
from
'
vs/workbench/parts/debug/browser/debugActions
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IStorageService
,
StorageScope
}
from
'
vs/platform/storage/common/storage
'
;
...
...
@@ -27,14 +27,14 @@ import IDebugService = debug.IDebugService;
const
$
=
builder
.
$
;
const
DEBUG_ACTIONS_WIDGET_POSITION_KEY
=
'
debug.actionswidgetposition
'
;
export
class
DebugActionsWidget
implements
wbext
.
IWorkbenchContribution
{
export
class
DebugActionsWidget
implements
IWorkbenchContribution
{
private
static
ID
=
'
debug.actionsWidget
'
;
private
$el
:
builder
.
Builder
;
private
dragArea
:
builder
.
Builder
;
private
toDispose
:
lifecycle
.
IDisposable
[];
private
actionBar
:
actionbar
.
ActionBar
;
private
actions
:
actions
.
IAction
[];
private
actionBar
:
ActionBar
;
private
actions
:
IAction
[];
private
pauseAction
:
PauseAction
;
private
continueAction
:
ContinueAction
;
private
stepBackAction
:
StepBackAction
;
...
...
@@ -59,8 +59,8 @@ export class DebugActionsWidget implements wbext.IWorkbenchContribution {
this
.
$el
.
append
(
actionBarContainter
);
this
.
toDispose
=
[];
this
.
actionBar
=
new
actionbar
.
ActionBar
(
actionBarContainter
,
{
orientation
:
actionbar
.
ActionsOrientation
.
HORIZONTAL
this
.
actionBar
=
new
ActionBar
(
actionBarContainter
,
{
orientation
:
ActionsOrientation
.
HORIZONTAL
});
this
.
toDispose
.
push
(
this
.
actionBar
);
...
...
@@ -74,7 +74,7 @@ export class DebugActionsWidget implements wbext.IWorkbenchContribution {
this
.
toDispose
.
push
(
this
.
debugService
.
onDidChangeState
(()
=>
{
this
.
update
();
}));
this
.
toDispose
.
push
(
this
.
actionBar
.
actionRunner
.
addListener2
(
events
.
EventType
.
RUN
,
(
e
:
any
)
=>
{
this
.
toDispose
.
push
(
this
.
actionBar
.
actionRunner
.
addListener2
(
EventType
.
RUN
,
(
e
:
any
)
=>
{
// check for error
if
(
e
.
error
&&
!
errors
.
isPromiseCanceledError
(
e
.
error
))
{
this
.
messageService
.
show
(
severity
.
Error
,
e
.
error
);
...
...
@@ -162,7 +162,7 @@ export class DebugActionsWidget implements wbext.IWorkbenchContribution {
this
.
$el
.
hide
();
}
private
getActions
(
instantiationService
:
IInstantiationService
,
state
:
debug
.
State
):
actions
.
IAction
[]
{
private
getActions
(
instantiationService
:
IInstantiationService
,
state
:
debug
.
State
):
IAction
[]
{
if
(
!
this
.
actions
)
{
this
.
continueAction
=
instantiationService
.
createInstance
(
ContinueAction
,
ContinueAction
.
ID
,
ContinueAction
.
LABEL
);
this
.
pauseAction
=
instantiationService
.
createInstance
(
PauseAction
,
PauseAction
.
ID
,
PauseAction
.
LABEL
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录