Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
397b45b7
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,发现更多精彩内容 >>
提交
397b45b7
编写于
3月 31, 2018
作者:
A
André Weinand
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup breakpoint class hierarchy
上级
345ad41c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
47 addition
and
32 deletion
+47
-32
src/vs/workbench/parts/debug/common/debugModel.ts
src/vs/workbench/parts/debug/common/debugModel.ts
+47
-32
未找到文件。
src/vs/workbench/parts/debug/common/debugModel.ts
浏览文件 @
397b45b7
...
...
@@ -20,7 +20,7 @@ import { ISuggestion } from 'vs/editor/common/modes';
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
ITreeElement
,
IExpression
,
IExpressionContainer
,
IProcess
,
IStackFrame
,
IExceptionBreakpoint
,
IBreakpoint
,
IFunctionBreakpoint
,
IModel
,
IReplElementSource
,
IConfig
,
ISession
,
IThread
,
IRawModelUpdate
,
IScope
,
IRawStoppedDetails
,
IEnablement
,
IBreakpointData
,
IExceptionInfo
,
IReplElement
,
ProcessState
,
IBreakpointsChangeEvent
,
IBreakpointUpdateData
IConfig
,
ISession
,
IThread
,
IRawModelUpdate
,
IScope
,
IRawStoppedDetails
,
IEnablement
,
IBreakpointData
,
IExceptionInfo
,
IReplElement
,
ProcessState
,
IBreakpointsChangeEvent
,
IBreakpointUpdateData
,
IBaseBreakpoint
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
...
...
@@ -686,60 +686,75 @@ export class Process implements IProcess {
}
}
export
class
Breakpoint
implements
IBreakpoint
{
export
class
Enablement
implements
IEnablement
{
constructor
(
public
enabled
:
boolean
,
private
id
:
string
)
{
}
public
getId
():
string
{
return
this
.
id
;
}
}
export
class
BaseBreakpoint
extends
Enablement
implements
IBaseBreakpoint
{
public
verified
:
boolean
;
public
idFromAdapter
:
number
;
public
message
:
string
;
public
endLineNumber
:
number
;
public
endColumn
:
number
;
constructor
(
public
uri
:
uri
,
public
lineNumber
:
number
,
public
column
:
number
,
public
enabled
:
boolean
,
public
condition
:
string
,
enabled
:
boolean
,
public
hitCondition
:
string
,
public
condition
:
string
,
public
logMessage
:
string
,
public
adapterData
:
any
,
private
id
=
generateUuid
()
id
:
string
)
{
super
(
enabled
,
id
);
if
(
enabled
===
undefined
)
{
this
.
enabled
=
true
;
}
this
.
verified
=
false
;
}
public
getId
():
string
{
return
this
.
id
;
}
}
export
class
FunctionBreakpoint
implements
IFunction
Breakpoint
{
export
class
Breakpoint
extends
BaseBreakpoint
implements
I
Breakpoint
{
public
verified
:
boolean
;
public
idFromAdapter
:
number
;
constructor
(
public
name
:
string
,
public
enabled
:
boolean
,
public
hitCondition
:
string
,
public
condition
:
string
,
public
logMessage
:
string
,
private
id
=
generateUuid
())
{
this
.
verified
=
false
;
}
public
message
:
string
;
public
endLineNumber
:
number
;
public
endColumn
:
number
;
public
getId
():
string
{
return
this
.
id
;
constructor
(
public
uri
:
uri
,
public
lineNumber
:
number
,
public
column
:
number
,
enabled
:
boolean
,
condition
:
string
,
hitCondition
:
string
,
logMessage
:
string
,
public
adapterData
:
any
,
id
=
generateUuid
()
)
{
super
(
enabled
,
hitCondition
,
condition
,
logMessage
,
id
);
}
}
export
class
ExceptionBreakpoint
implements
IExceptionBreakpoint
{
private
id
:
string
;
export
class
FunctionBreakpoint
extends
BaseBreakpoint
implements
IFunctionBreakpoint
{
constructor
(
public
filter
:
string
,
public
label
:
string
,
public
enabled
:
boolean
)
{
this
.
id
=
generateUuid
();
constructor
(
public
name
:
string
,
enabled
:
boolean
,
hitCondition
:
string
,
condition
:
string
,
logMessage
:
string
,
id
=
generateUuid
())
{
super
(
enabled
,
hitCondition
,
condition
,
logMessage
,
id
);
}
}
public
getId
():
string
{
return
this
.
id
;
export
class
ExceptionBreakpoint
extends
Enablement
implements
IExceptionBreakpoint
{
constructor
(
public
filter
:
string
,
public
label
:
string
,
enabled
:
boolean
)
{
super
(
enabled
,
generateUuid
());
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录