Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
eb9f03c4
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,发现更多精彩内容 >>
提交
eb9f03c4
编写于
2月 21, 2017
作者:
M
Michel Kaporin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polished exception widget.
上级
87eed209
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
5 deletion
+11
-5
src/vs/workbench/parts/debug/browser/exceptionWidget.ts
src/vs/workbench/parts/debug/browser/exceptionWidget.ts
+7
-1
src/vs/workbench/parts/debug/browser/media/exceptionWidget.css
...s/workbench/parts/debug/browser/media/exceptionWidget.css
+3
-3
src/vs/workbench/parts/debug/electron-browser/debugEditorContribution.ts
...h/parts/debug/electron-browser/debugEditorContribution.ts
+1
-1
未找到文件。
src/vs/workbench/parts/debug/browser/exceptionWidget.ts
浏览文件 @
eb9f03c4
...
...
@@ -6,6 +6,7 @@
import
'
vs/css!../browser/media/exceptionWidget
'
;
import
*
as
nls
from
'
vs/nls
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
strings
=
require
(
'
vs/base/common/strings
'
);
import
{
ZoneWidget
}
from
'
vs/editor/contrib/zoneWidget/browser/zoneWidget
'
;
import
{
ICodeEditor
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
IContextViewService
}
from
'
vs/platform/contextview/browser/contextView
'
;
...
...
@@ -27,7 +28,7 @@ export class ExceptionWidget extends ZoneWidget {
this
.
setCssClass
(
'
exception-widget
'
);
let
title
=
$
(
'
.title
'
);
title
.
textContent
=
nls
.
localize
(
'
exceptionThrown
'
,
'
Exception occured
.
'
);
title
.
textContent
=
nls
.
localize
(
'
exceptionThrown
'
,
'
Exception occured
'
);
dom
.
append
(
container
,
title
);
const
thread
=
this
.
debugService
.
getViewModel
().
focusedThread
;
...
...
@@ -37,4 +38,9 @@ export class ExceptionWidget extends ZoneWidget {
dom
.
append
(
container
,
msg
);
}
}
protected
_doLayout
(
heightInPixel
:
number
,
widthInPixel
:
number
):
void
{
const
fontSize
=
this
.
editor
.
getConfiguration
().
fontInfo
.
fontSize
;
this
.
container
.
style
.
height
=
strings
.
format
(
'
{0}px
'
,
fontSize
/
0.4
);
}
}
src/vs/workbench/parts/debug/browser/media/exceptionWidget.css
浏览文件 @
eb9f03c4
...
...
@@ -4,12 +4,12 @@
*--------------------------------------------------------------------------------------------*/
.monaco-editor
.zone-widget
.zone-widget-container.exception-widget
{
padding
:
8px
;
font-family
:
Monaco
,
Menlo
,
Consolas
,
"Droid Sans Mono"
,
"Inconsolata"
,
"Courier New"
,
monospace
,
"Droid Sans Fallback"
;
padding
:
8px
10px
;
}
.monaco-editor
.zone-widget
.zone-widget-container.exception-widget
.title
{
font-weight
:
bold
;
font-family
:
Monaco
,
Menlo
,
Consolas
,
"Droid Sans Mono"
,
"Inconsolata"
,
"Courier New"
,
monospace
,
"Droid Sans Fallback"
;
}
.monaco-editor
.zone-widget-arrow.below.exception-widget
{
...
...
@@ -19,7 +19,7 @@
/* Light and Dark Theming */
.monaco-editor
.zone-widget
.zone-widget-container.exception-widget
{
background-color
:
rgba
(
163
,
21
,
21
,
0.
2
5
);
background-color
:
rgba
(
163
,
21
,
21
,
0.
0
5
);
border-top-color
:
rgb
(
163
,
21
,
21
);
border-bottom-color
:
rgb
(
163
,
21
,
21
);
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugEditorContribution.ts
浏览文件 @
eb9f03c4
...
...
@@ -332,7 +332,7 @@ export class DebugEditorContribution implements IDebugEditorContribution {
}
this
.
exceptionWidget
=
this
.
instantiationService
.
createInstance
(
ExceptionWidget
,
this
.
editor
,
lineNumber
);
this
.
exceptionWidget
.
show
({
lineNumber
,
column
},
3
);
this
.
exceptionWidget
.
show
({
lineNumber
,
column
},
3
.5
);
}
private
closeExceptionWidget
():
void
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录