Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
20356611
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,发现更多精彩内容 >>
提交
20356611
编写于
12月 23, 2015
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: plugin breakpoints widget
上级
4a6b7078
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
11 deletion
+17
-11
src/vs/workbench/parts/debug/browser/debugEditorContribution.ts
.../workbench/parts/debug/browser/debugEditorContribution.ts
+2
-2
src/vs/workbench/parts/debug/browser/debugViewer.ts
src/vs/workbench/parts/debug/browser/debugViewer.ts
+3
-3
src/vs/workbench/parts/debug/common/debug.ts
src/vs/workbench/parts/debug/common/debug.ts
+2
-1
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
...vs/workbench/parts/debug/electron-browser/debugActions.ts
+5
-4
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+5
-1
未找到文件。
src/vs/workbench/parts/debug/browser/debugEditorContribution.ts
浏览文件 @
20356611
...
...
@@ -45,7 +45,7 @@ export class DebugEditorContribution implements editorcommon.IEditorContribution
const
actions
=
[];
if
(
breakpoint
)
{
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
RemoveBreakpointAction
,
debugactions
.
RemoveBreakpointAction
.
ID
,
debugactions
.
RemoveBreakpointAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
EditConditionalBreakpointAction
,
debugactions
.
EditConditionalBreakpointAction
.
ID
,
debugactions
.
EditConditionalBreakpointAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
EditConditionalBreakpointAction
,
debugactions
.
EditConditionalBreakpointAction
.
ID
,
debugactions
.
EditConditionalBreakpointAction
.
LABEL
,
this
.
editor
,
lineNumber
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
ToggleEnablementAction
,
debugactions
.
ToggleEnablementAction
.
ID
,
debugactions
.
ToggleEnablementAction
.
LABEL
));
}
else
{
actions
.
push
(
new
Action
(
...
...
@@ -55,7 +55,7 @@ export class DebugEditorContribution implements editorcommon.IEditorContribution
true
,
()
=>
this
.
debugService
.
toggleBreakpoint
({
uri
,
lineNumber
})
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
AddConditionalBreakpointAction
,
debugactions
.
AddConditionalBreakpointAction
.
ID
,
debugactions
.
AddConditionalBreakpointAction
.
LABEL
));
actions
.
push
(
this
.
instantiationService
.
createInstance
(
debugactions
.
AddConditionalBreakpointAction
,
debugactions
.
AddConditionalBreakpointAction
.
ID
,
debugactions
.
AddConditionalBreakpointAction
.
LABEL
,
this
.
editor
,
lineNumber
));
}
return
TPromise
.
as
(
actions
);
...
...
src/vs/workbench/parts/debug/browser/debugViewer.ts
浏览文件 @
20356611
...
...
@@ -6,6 +6,7 @@
import
nls
=
require
(
'
vs/nls
'
);
import
{
Promise
,
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
lifecycle
=
require
(
'
vs/base/common/lifecycle
'
);
import
{
CommonKeybindings
}
from
'
vs/base/common/keyCodes
'
;
import
paths
=
require
(
'
vs/base/common/paths
'
);
import
async
=
require
(
'
vs/base/common/async
'
);
import
errors
=
require
(
'
vs/base/common/errors
'
);
...
...
@@ -29,7 +30,6 @@ import { IContextViewService, IContextMenuService } from 'vs/platform/contextvie
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IWorkspaceContextService
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
IMessageService
}
from
'
vs/platform/message/common/message
'
;
import
{
CommonKeybindings
}
from
'
vs/base/common/keyCodes
'
;
const
$
=
dom
.
emmet
;
const
booleanRegex
=
/^true|false$/i
;
...
...
@@ -108,8 +108,8 @@ function renderRenameBox(debugService: debug.IDebugService, contextViewService:
});
toDispose
.
push
(
dom
.
addStandardDisposableListener
(
inputBox
.
inputElement
,
'
keydown
'
,
(
e
:
dom
.
IKeyboardEvent
)
=>
{
le
t
isEscape
=
e
.
equals
(
CommonKeybindings
.
ESCAPE
);
le
t
isEnter
=
e
.
equals
(
CommonKeybindings
.
ENTER
);
cons
t
isEscape
=
e
.
equals
(
CommonKeybindings
.
ESCAPE
);
cons
t
isEnter
=
e
.
equals
(
CommonKeybindings
.
ENTER
);
if
(
isEscape
||
isEnter
)
{
wrapUp
(
isEnter
);
}
...
...
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
20356611
...
...
@@ -9,6 +9,7 @@ import ee = require('vs/base/common/eventEmitter');
import
severity
from
'
vs/base/common/severity
'
;
import
{
createDecorator
,
ServiceIdentifier
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
editor
=
require
(
'
vs/editor/common/editorCommon
'
);
import
editorbrowser
=
require
(
'
vs/editor/browser/editorBrowser
'
);
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
export
var
VIEWLET_ID
=
'
workbench.view.debug
'
;
...
...
@@ -230,7 +231,7 @@ export interface IDebugService extends ee.IEventEmitter {
toggleBreakpointsActivated
():
Promise
;
removeAllBreakpoints
():
Promise
;
sendAllBreakpoints
():
Promise
;
editBreakpoint
(
breakpoint
?:
IBreakpoint
):
Promise
;
editBreakpoint
(
editor
:
editorbrowser
.
ICodeEditor
,
lineNumber
:
number
):
Promise
;
addFunctionBreakpoint
(
functionName
?:
string
):
Promise
;
renameFunctionBreakpoint
(
id
:
string
,
newFunctionName
:
string
):
Promise
;
...
...
src/vs/workbench/parts/debug/electron-browser/debugActions.ts
浏览文件 @
20356611
...
...
@@ -8,6 +8,7 @@ import actions = require('vs/base/common/actions');
import
lifecycle
=
require
(
'
vs/base/common/lifecycle
'
);
import
{
Promise
,
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
editorCommon
=
require
(
'
vs/editor/common/editorCommon
'
);
import
editorbrowser
=
require
(
'
vs/editor/browser/editorBrowser
'
);
import
baseeditor
=
require
(
'
vs/workbench/browser/parts/editor/baseEditor
'
);
import
{
EditorAction
,
Behaviour
}
from
'
vs/editor/common/editorAction
'
;
import
platform
=
require
(
'
vs/platform/platform
'
);
...
...
@@ -396,12 +397,12 @@ export class AddConditionalBreakpointAction extends AbstractDebugAction {
static
ID
=
'
workbench.debug.viewlet.action.addConditionalBreakpointAction
'
;
static
LABEL
=
nls
.
localize
(
'
addConditionalBreakpoint
'
,
"
Add Conditional Breakpoint
"
);
constructor
(
id
:
string
,
label
:
string
,
@
IDebugService
debugService
:
IDebugService
,
@
IKeybindingService
keybindingService
:
IKeybindingService
)
{
constructor
(
id
:
string
,
label
:
string
,
private
editor
:
editorbrowser
.
ICodeEditor
,
private
lineNumber
:
number
,
@
IDebugService
debugService
:
IDebugService
,
@
IKeybindingService
keybindingService
:
IKeybindingService
)
{
super
(
id
,
label
,
null
,
debugService
,
keybindingService
);
}
public
run
():
Promise
{
return
this
.
debugService
.
editBreakpoint
();
return
this
.
debugService
.
editBreakpoint
(
this
.
editor
,
this
.
lineNumber
);
}
}
...
...
@@ -409,12 +410,12 @@ export class EditConditionalBreakpointAction extends AbstractDebugAction {
static
ID
=
'
workbench.debug.viewlet.action.editConditionalBreakpointAction
'
;
static
LABEL
=
nls
.
localize
(
'
editConditionalBreakpoint
'
,
"
Edit Breakpoint
"
);
constructor
(
id
:
string
,
label
:
string
,
@
IDebugService
debugService
:
IDebugService
,
@
IKeybindingService
keybindingService
:
IKeybindingService
)
{
constructor
(
id
:
string
,
label
:
string
,
private
editor
:
editorbrowser
.
ICodeEditor
,
private
lineNumber
:
number
,
@
IDebugService
debugService
:
IDebugService
,
@
IKeybindingService
keybindingService
:
IKeybindingService
)
{
super
(
id
,
label
,
null
,
debugService
,
keybindingService
);
}
public
run
(
breakpoint
:
debug
.
IBreakpoint
):
Promise
{
return
this
.
debugService
.
editBreakpoint
(
breakpoint
);
return
this
.
debugService
.
editBreakpoint
(
this
.
editor
,
this
.
lineNumber
);
}
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
20356611
...
...
@@ -22,6 +22,7 @@ import model = require('vs/workbench/parts/debug/common/debugModel');
import
debuginputs
=
require
(
'
vs/workbench/parts/debug/browser/debugEditorInputs
'
);
import
viewmodel
=
require
(
'
vs/workbench/parts/debug/common/debugViewModel
'
);
import
debugactions
=
require
(
'
vs/workbench/parts/debug/electron-browser/debugActions
'
);
import
{
BreakpointWidget
}
from
'
vs/workbench/parts/debug/browser/breakpointWidget
'
;
import
{
ConfigurationManager
}
from
'
vs/workbench/parts/debug/node/debugConfigurationManager
'
;
import
{
Repl
}
from
'
vs/workbench/parts/debug/browser/replEditor
'
;
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
...
...
@@ -421,7 +422,10 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
return
this
.
sendAllBreakpoints
();
}
public
editBreakpoint
(
breakpoint
?:
debug
.
IBreakpoint
):
Promise
{
public
editBreakpoint
(
editor
:
editorbrowser
.
ICodeEditor
,
lineNumber
:
number
):
Promise
{
const
breakpointWidget
=
this
.
instantiationService
.
createInstance
(
BreakpointWidget
,
editor
,
lineNumber
);
breakpointWidget
.
show
({
lineNumber
,
column
:
1
},
2
);
return
Promise
.
as
(
true
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录