Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
1fe6d3da
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,发现更多精彩内容 >>
提交
1fe6d3da
编写于
6月 19, 2017
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
A hint on a Source is a pure presentation style
fixes #28938
上级
240bf96f
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
10 addition
and
12 deletion
+10
-12
src/vs/workbench/parts/debug/browser/debugContentProvider.ts
src/vs/workbench/parts/debug/browser/debugContentProvider.ts
+1
-1
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/common/debugSource.ts
src/vs/workbench/parts/debug/common/debugSource.ts
+2
-4
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+2
-2
src/vs/workbench/parts/debug/test/common/mockDebug.ts
src/vs/workbench/parts/debug/test/common/mockDebug.ts
+1
-1
未找到文件。
src/vs/workbench/parts/debug/browser/debugContentProvider.ts
浏览文件 @
1fe6d3da
...
...
@@ -51,7 +51,7 @@ export class DebugContentProvider implements IWorkbenchContribution, ITextModelC
return
model
;
},
(
err
:
DebugProtocol
.
ErrorResponse
)
=>
{
this
.
debugService
.
deemphasizeSourc
e
(
resource
);
this
.
debugService
.
sourceIsNotAvailabl
e
(
resource
);
const
modePromise
=
this
.
modeService
.
getOrCreateMode
(
MIME_TEXT
);
const
model
=
this
.
modelService
.
createModel
(
err
.
message
,
modePromise
,
resource
);
...
...
src/vs/workbench/parts/debug/common/debug.ts
浏览文件 @
1fe6d3da
...
...
@@ -539,9 +539,9 @@ export interface IDebugService {
stopProcess
(
process
:
IProcess
):
TPromise
<
any
>
;
/**
*
Deemphasizes
all sources with the passed uri. Source will appear as grayed out in callstack view.
*
Makes unavailable
all sources with the passed uri. Source will appear as grayed out in callstack view.
*/
deemphasizeSourc
e
(
uri
:
uri
):
void
;
sourceIsNotAvailabl
e
(
uri
:
uri
):
void
;
/**
* Gets the current debug model.
...
...
src/vs/workbench/parts/debug/common/debugModel.ts
浏览文件 @
1fe6d3da
...
...
@@ -1054,10 +1054,10 @@ export class Model implements IModel {
this
.
_onDidChangeWatchExpressions
.
fire
();
}
public
deemphasizeSourc
e
(
uri
:
uri
):
void
{
public
sourceIsNotAvailabl
e
(
uri
:
uri
):
void
{
this
.
processes
.
forEach
(
p
=>
{
if
(
p
.
sources
.
has
(
uri
.
toString
()))
{
p
.
sources
.
get
(
uri
.
toString
()).
presentationHint
=
'
deemphasize
'
;
p
.
sources
.
get
(
uri
.
toString
()).
available
=
false
;
}
});
this
.
_onDidChangeCallStack
.
fire
();
...
...
src/vs/workbench/parts/debug/common/debugSource.ts
浏览文件 @
1fe6d3da
...
...
@@ -12,12 +12,14 @@ const UNKNOWN_SOURCE_LABEL = nls.localize('unknownSource', "Unknown Source");
export
class
Source
{
public
uri
:
uri
;
public
available
:
boolean
;
constructor
(
public
raw
:
DebugProtocol
.
Source
,
public
presentationHint
:
string
)
{
if
(
!
raw
)
{
this
.
raw
=
{
name
:
UNKNOWN_SOURCE_LABEL
};
}
const
path
=
this
.
raw
.
path
||
this
.
raw
.
name
;
this
.
available
=
this
.
raw
.
name
!==
UNKNOWN_SOURCE_LABEL
;
this
.
uri
=
this
.
raw
.
sourceReference
>
0
?
uri
.
parse
(
`
${
DEBUG_SCHEME
}
:
${
path
}
`
)
:
uri
.
file
(
path
);
}
...
...
@@ -33,10 +35,6 @@ export class Source {
return
this
.
raw
.
sourceReference
;
}
public
get
available
()
{
return
this
.
raw
.
name
!==
UNKNOWN_SOURCE_LABEL
&&
this
.
presentationHint
!==
'
deemphasize
'
;
}
public
get
inMemory
()
{
return
this
.
uri
.
toString
().
indexOf
(
`
${
DEBUG_SCHEME
}
:`
)
===
0
;
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
1fe6d3da
...
...
@@ -894,8 +894,8 @@ export class DebugService implements debug.IDebugService {
});
}
public
deemphasizeSourc
e
(
uri
:
uri
):
void
{
this
.
model
.
deemphasizeSourc
e
(
uri
);
public
sourceIsNotAvailabl
e
(
uri
:
uri
):
void
{
this
.
model
.
sourceIsNotAvailabl
e
(
uri
);
}
public
restartProcess
(
process
:
debug
.
IProcess
,
restartData
?:
any
):
TPromise
<
any
>
{
...
...
src/vs/workbench/parts/debug/test/common/mockDebug.ts
浏览文件 @
1fe6d3da
...
...
@@ -97,7 +97,7 @@ export class MockDebugService implements debug.IDebugService {
public
logToRepl
(
value
:
string
):
void
{
}
public
deemphasizeSourc
e
(
uri
:
uri
):
void
{
}
public
sourceIsNotAvailabl
e
(
uri
:
uri
):
void
{
}
}
export
class
MockSession
implements
debug
.
ISession
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录