Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
565938b6
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
565938b6
编写于
9月 19, 2018
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: Model -> DebugModel, IModel -> IDebugModel
上级
7f9b8561
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
32 addition
and
32 deletion
+32
-32
src/vs/workbench/parts/debug/browser/loadedScriptsView.ts
src/vs/workbench/parts/debug/browser/loadedScriptsView.ts
+2
-2
src/vs/workbench/parts/debug/common/debug.ts
src/vs/workbench/parts/debug/common/debug.ts
+2
-2
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/callStackView.ts
...s/workbench/parts/debug/electron-browser/callStackView.ts
+3
-3
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+5
-5
src/vs/workbench/parts/debug/electron-browser/debugSession.ts
...vs/workbench/parts/debug/electron-browser/debugSession.ts
+2
-2
src/vs/workbench/parts/debug/electron-browser/replViewer.ts
src/vs/workbench/parts/debug/electron-browser/replViewer.ts
+3
-3
src/vs/workbench/parts/debug/electron-browser/watchExpressionsView.ts
...ench/parts/debug/electron-browser/watchExpressionsView.ts
+8
-8
src/vs/workbench/parts/debug/test/common/mockDebug.ts
src/vs/workbench/parts/debug/test/common/mockDebug.ts
+2
-2
src/vs/workbench/parts/debug/test/electron-browser/debugModel.test.ts
...ench/parts/debug/test/electron-browser/debugModel.test.ts
+3
-3
未找到文件。
src/vs/workbench/parts/debug/browser/loadedScriptsView.ts
浏览文件 @
565938b6
...
...
@@ -16,7 +16,7 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
import
{
WorkbenchTree
,
TreeResourceNavigator
}
from
'
vs/platform/list/browser/listService
'
;
import
{
renderViewTree
,
twistiePixels
}
from
'
vs/workbench/parts/debug/browser/baseDebugView
'
;
import
{
IAccessibilityProvider
,
ITree
,
IRenderer
,
IDataSource
}
from
'
vs/base/parts/tree/browser/tree
'
;
import
{
IDebugSession
,
IDebugService
,
IModel
,
CONTEXT_LOADED_SCRIPTS_ITEM_TYPE
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
IDebugSession
,
IDebugService
,
I
Debug
Model
,
CONTEXT_LOADED_SCRIPTS_ITEM_TYPE
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
import
{
IWorkspaceContextService
,
IWorkspaceFolder
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
IEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
...
...
@@ -201,7 +201,7 @@ class RootFolderTreeItem extends BaseTreeItem {
class
RootTreeItem
extends
BaseTreeItem
{
constructor
(
private
_debugModel
:
IModel
,
private
_environmentService
:
IEnvironmentService
,
private
_contextService
:
IWorkspaceContextService
)
{
constructor
(
private
_debugModel
:
I
Debug
Model
,
private
_environmentService
:
IEnvironmentService
,
private
_contextService
:
IWorkspaceContextService
)
{
super
(
undefined
,
'
Root
'
);
this
.
_debugModel
.
getSessions
().
forEach
(
session
=>
{
this
.
add
(
session
);
...
...
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
565938b6
...
...
@@ -365,7 +365,7 @@ export interface IViewModel extends ITreeElement {
onDidSelectExpression
:
Event
<
IExpression
>
;
}
export
interface
IModel
extends
ITreeElement
{
export
interface
I
Debug
Model
extends
ITreeElement
{
getSessions
():
ReadonlyArray
<
IDebugSession
>
;
getBreakpoints
(
filter
?:
{
uri
?:
uri
,
lineNumber
?:
number
,
column
?:
number
,
enabledOnly
?:
boolean
}):
ReadonlyArray
<
IBreakpoint
>
;
areBreakpointsActivated
():
boolean
;
...
...
@@ -776,7 +776,7 @@ export interface IDebugService {
/**
* Gets the current debug model.
*/
getModel
():
IModel
;
getModel
():
I
Debug
Model
;
/**
* Gets the current view model.
...
...
src/vs/workbench/parts/debug/common/debugModel.ts
浏览文件 @
565938b6
...
...
@@ -16,7 +16,7 @@ import { isObject, isString, isUndefinedOrNull } from 'vs/base/common/types';
import
{
distinct
}
from
'
vs/base/common/arrays
'
;
import
{
Range
,
IRange
}
from
'
vs/editor/common/core/range
'
;
import
{
ITreeElement
,
IExpression
,
IExpressionContainer
,
IDebugSession
,
IStackFrame
,
IExceptionBreakpoint
,
IBreakpoint
,
IFunctionBreakpoint
,
IModel
,
IReplElementSource
,
ITreeElement
,
IExpression
,
IExpressionContainer
,
IDebugSession
,
IStackFrame
,
IExceptionBreakpoint
,
IBreakpoint
,
IFunctionBreakpoint
,
I
Debug
Model
,
IReplElementSource
,
IThread
,
IRawModelUpdate
,
IScope
,
IRawStoppedDetails
,
IEnablement
,
IBreakpointData
,
IExceptionInfo
,
IReplElement
,
IBreakpointsChangeEvent
,
IBreakpointUpdateData
,
IBaseBreakpoint
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
...
...
@@ -723,7 +723,7 @@ export class ThreadAndSessionIds implements ITreeElement {
}
}
export
class
Model
implements
I
Model
{
export
class
DebugModel
implements
IDebug
Model
{
private
sessions
:
IDebugSession
[];
private
toDispose
:
lifecycle
.
IDisposable
[];
...
...
src/vs/workbench/parts/debug/electron-browser/callStackView.ts
浏览文件 @
565938b6
...
...
@@ -9,7 +9,7 @@ import * as dom from 'vs/base/browser/dom';
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
TreeViewsViewletPanel
,
IViewletViewOptions
}
from
'
vs/workbench/browser/parts/views/viewsViewlet
'
;
import
{
IDebugService
,
State
,
IStackFrame
,
IDebugSession
,
IThread
,
CONTEXT_CALLSTACK_ITEM_TYPE
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Thread
,
StackFrame
,
ThreadAndSessionIds
,
Model
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
Thread
,
StackFrame
,
ThreadAndSessionIds
,
Debug
Model
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
IContextMenuService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
MenuId
}
from
'
vs/platform/actions/common/actions
'
;
...
...
@@ -313,14 +313,14 @@ class CallStackDataSource implements IDataSource {
}
public
hasChildren
(
tree
:
ITree
,
element
:
any
):
boolean
{
return
element
instanceof
Model
||
element
instanceof
DebugSession
||
(
element
instanceof
Thread
&&
(
<
Thread
>
element
).
stopped
);
return
element
instanceof
Debug
Model
||
element
instanceof
DebugSession
||
(
element
instanceof
Thread
&&
(
<
Thread
>
element
).
stopped
);
}
public
getChildren
(
tree
:
ITree
,
element
:
any
):
TPromise
<
any
>
{
if
(
element
instanceof
Thread
)
{
return
this
.
getThreadChildren
(
element
);
}
if
(
element
instanceof
Model
)
{
if
(
element
instanceof
Debug
Model
)
{
return
TPromise
.
as
(
element
.
getSessions
());
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
565938b6
...
...
@@ -22,7 +22,7 @@ import { FileChangesEvent, FileChangeType, IFileService } from 'vs/platform/file
import
{
IWindowService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
IStorageService
,
StorageScope
}
from
'
vs/platform/storage/common/storage
'
;
import
{
Model
,
ExceptionBreakpoint
,
FunctionBreakpoint
,
Breakpoint
,
Expression
,
RawObjectReplElement
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
Debug
Model
,
ExceptionBreakpoint
,
FunctionBreakpoint
,
Breakpoint
,
Expression
,
RawObjectReplElement
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
ViewModel
}
from
'
vs/workbench/parts/debug/common/debugViewModel
'
;
import
*
as
debugactions
from
'
vs/workbench/parts/debug/browser/debugActions
'
;
import
{
ConfigurationManager
}
from
'
vs/workbench/parts/debug/electron-browser/debugConfigurationManager
'
;
...
...
@@ -47,7 +47,7 @@ import { IAction, Action } from 'vs/base/common/actions';
import
{
deepClone
,
equals
}
from
'
vs/base/common/objects
'
;
import
{
DebugSession
}
from
'
vs/workbench/parts/debug/electron-browser/debugSession
'
;
import
{
dispose
,
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IDebugService
,
State
,
IDebugSession
,
CONTEXT_DEBUG_TYPE
,
CONTEXT_DEBUG_STATE
,
CONTEXT_IN_DEBUG_MODE
,
IThread
,
IDebugConfiguration
,
VIEWLET_ID
,
REPL_ID
,
IConfig
,
ILaunch
,
IViewModel
,
IConfigurationManager
,
IModel
,
IReplElementSource
,
IEnablement
,
IBreakpoint
,
IBreakpointData
,
IExpression
,
ICompound
,
IGlobalConfig
,
IStackFrame
,
AdapterEndEvent
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
IDebugService
,
State
,
IDebugSession
,
CONTEXT_DEBUG_TYPE
,
CONTEXT_DEBUG_STATE
,
CONTEXT_IN_DEBUG_MODE
,
IThread
,
IDebugConfiguration
,
VIEWLET_ID
,
REPL_ID
,
IConfig
,
ILaunch
,
IViewModel
,
IConfigurationManager
,
I
Debug
Model
,
IReplElementSource
,
IEnablement
,
IBreakpoint
,
IBreakpointData
,
IExpression
,
ICompound
,
IGlobalConfig
,
IStackFrame
,
AdapterEndEvent
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
isExtensionHostDebugging
}
from
'
vs/workbench/parts/debug/common/debugUtils
'
;
const
DEBUG_BREAKPOINTS_KEY
=
'
debug.breakpoint
'
;
...
...
@@ -63,7 +63,7 @@ export class DebugService implements IDebugService {
private
readonly
_onDidNewSession
:
Emitter
<
IDebugSession
>
;
private
readonly
_onWillNewSession
:
Emitter
<
IDebugSession
>
;
private
readonly
_onDidEndSession
:
Emitter
<
IDebugSession
>
;
private
model
:
Model
;
private
model
:
Debug
Model
;
private
viewModel
:
ViewModel
;
private
configurationManager
:
ConfigurationManager
;
private
allSessions
=
new
Map
<
string
,
IDebugSession
>
();
...
...
@@ -114,7 +114,7 @@ export class DebugService implements IDebugService {
this
.
debugState
=
CONTEXT_DEBUG_STATE
.
bindTo
(
contextKeyService
);
this
.
inDebugMode
=
CONTEXT_IN_DEBUG_MODE
.
bindTo
(
contextKeyService
);
this
.
model
=
new
Model
(
this
.
loadBreakpoints
(),
this
.
storageService
.
getBoolean
(
DEBUG_BREAKPOINTS_ACTIVATED_KEY
,
StorageScope
.
WORKSPACE
,
true
),
this
.
loadFunctionBreakpoints
(),
this
.
model
=
new
Debug
Model
(
this
.
loadBreakpoints
(),
this
.
storageService
.
getBoolean
(
DEBUG_BREAKPOINTS_ACTIVATED_KEY
,
StorageScope
.
WORKSPACE
,
true
),
this
.
loadFunctionBreakpoints
(),
this
.
loadExceptionBreakpoints
(),
this
.
loadWatchExpressions
(),
this
.
textFileService
);
this
.
toDispose
.
push
(
this
.
model
);
...
...
@@ -158,7 +158,7 @@ export class DebugService implements IDebugService {
return
this
.
allSessions
.
get
(
sessionId
);
}
getModel
():
IModel
{
getModel
():
I
Debug
Model
{
return
this
.
model
;
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugSession.ts
浏览文件 @
565938b6
...
...
@@ -16,7 +16,7 @@ import * as aria from 'vs/base/browser/ui/aria/aria';
import
{
IDebugSession
,
IConfig
,
IThread
,
IRawModelUpdate
,
IDebugService
,
IRawStoppedDetails
,
State
,
LoadedSourceEvent
,
IFunctionBreakpoint
,
IExceptionBreakpoint
,
ActualBreakpoints
,
IBreakpoint
,
IExceptionInfo
,
AdapterEndEvent
,
IDebugger
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
import
{
mixin
}
from
'
vs/base/common/objects
'
;
import
{
Thread
,
ExpressionContainer
,
Model
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
Thread
,
ExpressionContainer
,
Debug
Model
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
RawDebugSession
}
from
'
vs/workbench/parts/debug/electron-browser/rawDebugSession
'
;
import
product
from
'
vs/platform/node/product
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
...
...
@@ -49,7 +49,7 @@ export class DebugSession implements IDebugSession {
constructor
(
private
_configuration
:
{
resolved
:
IConfig
,
unresolved
:
IConfig
},
public
root
:
IWorkspaceFolder
,
private
model
:
Model
,
private
model
:
Debug
Model
,
@
INotificationService
private
notificationService
:
INotificationService
,
@
IDebugService
private
debugService
:
IDebugService
,
@
ITelemetryService
private
telemetryService
:
ITelemetryService
,
...
...
src/vs/workbench/parts/debug/electron-browser/replViewer.ts
浏览文件 @
565938b6
...
...
@@ -15,7 +15,7 @@ import { IMouseEvent } from 'vs/base/browser/mouseEvent';
import
{
ITree
,
IAccessibilityProvider
,
ContextMenuEvent
,
IDataSource
,
IRenderer
,
IActionProvider
}
from
'
vs/base/parts/tree/browser/tree
'
;
import
{
ICancelableEvent
}
from
'
vs/base/parts/tree/browser/treeDefaults
'
;
import
{
IExpressionContainer
,
IExpression
,
IReplElementSource
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Model
,
RawObjectReplElement
,
Expression
,
SimpleReplElement
,
Variable
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
Debug
Model
,
RawObjectReplElement
,
Expression
,
SimpleReplElement
,
Variable
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
renderVariable
,
renderExpressionValue
,
IVariableTemplateData
,
BaseDebugController
}
from
'
vs/workbench/parts/debug/browser/baseDebugView
'
;
import
{
ClearReplAction
,
ReplCollapseAllAction
}
from
'
vs/workbench/parts/debug/browser/debugActions
'
;
import
{
CopyAction
,
CopyAllAction
}
from
'
vs/workbench/parts/debug/electron-browser/electronDebugActions
'
;
...
...
@@ -34,11 +34,11 @@ export class ReplExpressionsDataSource implements IDataSource {
}
public
hasChildren
(
tree
:
ITree
,
element
:
any
):
boolean
{
return
element
instanceof
Model
||
(
<
IExpressionContainer
>
element
).
hasChildren
;
return
element
instanceof
Debug
Model
||
(
<
IExpressionContainer
>
element
).
hasChildren
;
}
public
getChildren
(
tree
:
ITree
,
element
:
any
):
TPromise
<
any
>
{
if
(
element
instanceof
Model
)
{
if
(
element
instanceof
Debug
Model
)
{
return
TPromise
.
as
(
element
.
getReplElements
());
}
if
(
element
instanceof
RawObjectReplElement
)
{
...
...
src/vs/workbench/parts/debug/electron-browser/watchExpressionsView.ts
浏览文件 @
565938b6
...
...
@@ -12,7 +12,7 @@ import { IActionProvider, ITree, IDataSource, IRenderer, IAccessibilityProvider,
import
{
CollapseAction
}
from
'
vs/workbench/browser/viewlet
'
;
import
{
TreeViewsViewletPanel
,
IViewletViewOptions
}
from
'
vs/workbench/browser/parts/views/viewsViewlet
'
;
import
{
IDebugService
,
IExpression
,
CONTEXT_WATCH_EXPRESSIONS_FOCUSED
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Expression
,
Variable
,
Model
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
Expression
,
Variable
,
Debug
Model
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
AddWatchExpressionAction
,
RemoveAllWatchExpressionsAction
,
EditWatchExpressionAction
,
RemoveWatchExpressionAction
}
from
'
vs/workbench/parts/debug/browser/debugActions
'
;
import
{
IContextMenuService
,
IContextViewService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
...
...
@@ -202,7 +202,7 @@ class WatchExpressionsDataSource implements IDataSource {
}
public
hasChildren
(
tree
:
ITree
,
element
:
any
):
boolean
{
if
(
element
instanceof
Model
)
{
if
(
element
instanceof
Debug
Model
)
{
return
true
;
}
...
...
@@ -211,7 +211,7 @@ class WatchExpressionsDataSource implements IDataSource {
}
public
getChildren
(
tree
:
ITree
,
element
:
any
):
TPromise
<
any
>
{
if
(
element
instanceof
Model
)
{
if
(
element
instanceof
Debug
Model
)
{
const
viewModel
=
this
.
debugService
.
getViewModel
();
return
TPromise
.
join
(
element
.
getWatchExpressions
().
map
(
we
=>
we
.
name
?
we
.
evaluate
(
viewModel
.
focusedSession
,
viewModel
.
focusedStackFrame
,
'
watch
'
).
then
(()
=>
we
)
:
TPromise
.
as
(
we
)));
...
...
@@ -344,7 +344,7 @@ class WatchExpressionsController extends BaseDebugController {
const
expression
=
<
IExpression
>
element
;
this
.
debugService
.
getViewModel
().
setSelectedExpression
(
expression
);
return
true
;
}
else
if
(
element
instanceof
Model
&&
event
.
detail
===
2
)
{
}
else
if
(
element
instanceof
Debug
Model
&&
event
.
detail
===
2
)
{
// Double click in watch panel triggers to add a new watch expression
this
.
debugService
.
addWatchExpression
();
return
true
;
...
...
@@ -376,8 +376,8 @@ class WatchExpressionsDragAndDrop extends DefaultDragAndDrop {
return
elements
[
0
].
name
;
}
public
onDragOver
(
tree
:
ITree
,
data
:
IDragAndDropData
,
target
:
Expression
|
Model
,
originalEvent
:
DragMouseEvent
):
IDragOverReaction
{
if
(
target
instanceof
Expression
||
target
instanceof
Model
)
{
public
onDragOver
(
tree
:
ITree
,
data
:
IDragAndDropData
,
target
:
Expression
|
Debug
Model
,
originalEvent
:
DragMouseEvent
):
IDragOverReaction
{
if
(
target
instanceof
Expression
||
target
instanceof
Debug
Model
)
{
return
{
accept
:
true
,
autoExpand
:
false
...
...
@@ -387,12 +387,12 @@ class WatchExpressionsDragAndDrop extends DefaultDragAndDrop {
return
DRAG_OVER_REJECT
;
}
public
drop
(
tree
:
ITree
,
data
:
IDragAndDropData
,
target
:
Expression
|
Model
,
originalEvent
:
DragMouseEvent
):
void
{
public
drop
(
tree
:
ITree
,
data
:
IDragAndDropData
,
target
:
Expression
|
Debug
Model
,
originalEvent
:
DragMouseEvent
):
void
{
const
draggedData
=
data
.
getData
();
if
(
Array
.
isArray
(
draggedData
))
{
const
draggedElement
=
<
Expression
>
draggedData
[
0
];
const
watches
=
this
.
debugService
.
getModel
().
getWatchExpressions
();
const
position
=
target
instanceof
Model
?
watches
.
length
-
1
:
watches
.
indexOf
(
target
);
const
position
=
target
instanceof
Debug
Model
?
watches
.
length
-
1
:
watches
.
indexOf
(
target
);
this
.
debugService
.
moveWatchExpression
(
draggedElement
.
getId
(),
position
);
}
}
...
...
src/vs/workbench/parts/debug/test/common/mockDebug.ts
浏览文件 @
565938b6
...
...
@@ -8,7 +8,7 @@ import { Event } from 'vs/base/common/event';
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
IWorkspaceFolder
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
ILaunch
,
IDebugService
,
State
,
IDebugSession
,
IConfigurationManager
,
IStackFrame
,
IBreakpointData
,
IBreakpointUpdateData
,
IConfig
,
IModel
,
IViewModel
,
IBreakpoint
,
LoadedSourceEvent
,
IThread
,
IRawModelUpdate
,
ActualBreakpoints
,
IFunctionBreakpoint
,
IExceptionBreakpoint
,
IDebugger
,
IExceptionInfo
,
AdapterEndEvent
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
ILaunch
,
IDebugService
,
State
,
IDebugSession
,
IConfigurationManager
,
IStackFrame
,
IBreakpointData
,
IBreakpointUpdateData
,
IConfig
,
I
Debug
Model
,
IViewModel
,
IBreakpoint
,
LoadedSourceEvent
,
IThread
,
IRawModelUpdate
,
ActualBreakpoints
,
IFunctionBreakpoint
,
IExceptionBreakpoint
,
IDebugger
,
IExceptionInfo
,
AdapterEndEvent
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
import
{
ISuggestion
}
from
'
vs/editor/common/modes
'
;
...
...
@@ -109,7 +109,7 @@ export class MockDebugService implements IDebugService {
return
TPromise
.
as
(
null
);
}
public
getModel
():
IModel
{
public
getModel
():
I
Debug
Model
{
return
null
;
}
...
...
src/vs/workbench/parts/debug/test/electron-browser/debugModel.test.ts
浏览文件 @
565938b6
...
...
@@ -6,18 +6,18 @@
import
*
as
assert
from
'
assert
'
;
import
{
URI
as
uri
}
from
'
vs/base/common/uri
'
;
import
severity
from
'
vs/base/common/severity
'
;
import
{
SimpleReplElement
,
Model
,
Expression
,
RawObjectReplElement
,
StackFrame
,
Thread
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
{
SimpleReplElement
,
Debug
Model
,
Expression
,
RawObjectReplElement
,
StackFrame
,
Thread
}
from
'
vs/workbench/parts/debug/common/debugModel
'
;
import
*
as
sinon
from
'
sinon
'
;
import
{
MockRawSession
}
from
'
vs/workbench/parts/debug/test/common/mockDebug
'
;
import
{
Source
}
from
'
vs/workbench/parts/debug/common/debugSource
'
;
import
{
DebugSession
}
from
'
vs/workbench/parts/debug/electron-browser/debugSession
'
;
suite
(
'
Debug - Model
'
,
()
=>
{
let
model
:
Model
;
let
model
:
Debug
Model
;
let
rawSession
:
MockRawSession
;
setup
(()
=>
{
model
=
new
Model
([],
true
,
[],
[],
[],
<
any
>
{
isDirty
:
(
e
:
any
)
=>
false
});
model
=
new
Debug
Model
([],
true
,
[],
[],
[],
<
any
>
{
isDirty
:
(
e
:
any
)
=>
false
});
rawSession
=
new
MockRawSession
();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录