Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
5e4f976a
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,发现更多精彩内容 >>
提交
5e4f976a
编写于
11月 27, 2015
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: remove all breakpoint removes also function breakpoints.
上级
11bc6762
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
8 addition
and
8 deletion
+8
-8
src/vs/workbench/parts/debug/browser/debugActions.ts
src/vs/workbench/parts/debug/browser/debugActions.ts
+1
-1
src/vs/workbench/parts/debug/browser/debugViewer.ts
src/vs/workbench/parts/debug/browser/debugViewer.ts
+2
-2
src/vs/workbench/parts/debug/common/debug.ts
src/vs/workbench/parts/debug/common/debug.ts
+1
-1
src/vs/workbench/parts/debug/common/debugModel.ts
src/vs/workbench/parts/debug/common/debugModel.ts
+2
-2
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+2
-2
未找到文件。
src/vs/workbench/parts/debug/browser/debugActions.ts
浏览文件 @
5e4f976a
...
...
@@ -280,7 +280,7 @@ export class RemoveAllBreakpointsAction extends AbstractDebugAction {
}
public
run
():
Promise
{
return
this
.
debugService
.
removeBreakpoints
(
);
return
Promise
.
join
([
this
.
debugService
.
removeBreakpoints
(),
this
.
debugService
.
removeFunctionBreakpoints
()]
);
}
protected
isEnabled
():
boolean
{
...
...
src/vs/workbench/parts/debug/browser/debugViewer.ts
浏览文件 @
5e4f976a
...
...
@@ -93,7 +93,7 @@ function renderRenameBox(debugService: debug.IDebugService, contextViewService:
}
else
if
(
element
instanceof
model
.
FunctionBreakpoint
&&
renamed
&&
inputBox
.
value
)
{
debugService
.
renameFunctionBreakpoint
(
element
.
getId
(),
inputBox
.
value
).
done
(
null
,
errors
.
onUnexpectedError
);
}
else
if
(
element
instanceof
model
.
FunctionBreakpoint
&&
!
element
.
name
)
{
debugService
.
removeFunctionBreakpoint
(
element
.
getId
()).
done
(
null
,
errors
.
onUnexpectedError
);
debugService
.
removeFunctionBreakpoint
s
(
element
.
getId
()).
done
(
null
,
errors
.
onUnexpectedError
);
}
tree
.
clearHighlight
();
...
...
@@ -905,7 +905,7 @@ export class BreakpointsController extends BaseDebugController {
return
true
;
}
else
if
(
element
instanceof
model
.
FunctionBreakpoint
)
{
const
fbp
=
<
model
.
FunctionBreakpoint
>
element
;
this
.
debugService
.
removeFunctionBreakpoint
(
fbp
.
getId
()).
done
(
null
,
errors
.
onUnexpectedError
);
this
.
debugService
.
removeFunctionBreakpoint
s
(
fbp
.
getId
()).
done
(
null
,
errors
.
onUnexpectedError
);
return
true
;
}
...
...
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
5e4f976a
...
...
@@ -225,7 +225,7 @@ export interface IDebugService extends ee.IEventEmitter {
addFunctionBreakpoint
(
functionName
?:
string
):
Promise
;
renameFunctionBreakpoint
(
id
:
string
,
newFunctionName
:
string
):
Promise
;
removeFunctionBreakpoint
(
id
:
string
):
Promise
;
removeFunctionBreakpoint
s
(
id
?
:
string
):
Promise
;
addReplExpression
(
name
:
string
):
Promise
;
clearReplExpressions
():
void
;
...
...
src/vs/workbench/parts/debug/common/debugModel.ts
浏览文件 @
5e4f976a
...
...
@@ -437,8 +437,8 @@ export class Model extends ee.EventEmitter implements debug.IModel {
}
}
public
removeFunctionBreakpoint
(
id
:
string
):
void
{
this
.
functionBreakpoints
=
this
.
functionBreakpoints
.
filter
(
fbp
=>
fbp
.
getId
()
!=
id
)
;
public
removeFunctionBreakpoint
s
(
id
?
:
string
):
void
{
this
.
functionBreakpoints
=
id
?
this
.
functionBreakpoints
.
filter
(
fbp
=>
fbp
.
getId
()
!=
id
)
:
[]
;
this
.
emit
(
debug
.
ModelEvents
.
BREAKPOINTS_UPDATED
);
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
5e4f976a
...
...
@@ -418,8 +418,8 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
return
Promise
.
as
(
true
);
}
public
removeFunctionBreakpoint
(
id
:
string
):
Promise
{
this
.
model
.
removeFunctionBreakpoint
(
id
);
public
removeFunctionBreakpoint
s
(
id
?
:
string
):
Promise
{
this
.
model
.
removeFunctionBreakpoint
s
(
id
);
// TODO@Isidor send updated function breakpoints
return
Promise
.
as
(
true
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录