Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
7338daac
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,发现更多精彩内容 >>
未验证
提交
7338daac
编写于
4月 10, 2020
作者:
R
Robert Rossmann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: add theming support to debug REPL
上级
48d1b4df
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
19 deletion
+25
-19
src/vs/workbench/contrib/debug/browser/media/repl.css
src/vs/workbench/contrib/debug/browser/media/repl.css
+12
-17
src/vs/workbench/contrib/debug/browser/repl.ts
src/vs/workbench/contrib/debug/browser/repl.ts
+13
-2
未找到文件。
src/vs/workbench/contrib/debug/browser/media/repl.css
浏览文件 @
7338daac
...
...
@@ -81,7 +81,6 @@
.repl
.repl-input-wrapper
{
display
:
flex
;
align-items
:
center
;
border-top
:
1px
solid
rgba
(
128
,
128
,
128
,
0.35
);
}
/* Only show 'stale expansion' info when the element gets expanded. */
...
...
@@ -89,10 +88,6 @@
content
:
''
;
}
.hc-black
.repl
.repl-input-wrapper
{
border-top-color
:
#6FC3DF
;
}
.repl
.repl-input-wrapper
.repl-input-chevron
{
padding
:
0
6px
0
8px
;
width
:
16px
;
...
...
@@ -108,18 +103,6 @@
font-style
:
italic
;
}
.vs
.repl
.repl-tree
.output.expression
>
.warn
{
color
:
#cd9731
;
}
.vs-dark
.repl
.repl-tree
.output.expression
>
.warn
{
color
:
#cd9731
;
}
.hc-black
.repl
.repl-tree
.output.expression
>
.warn
{
color
:
#008000
;
}
.vs
.repl
.repl-tree
.output.expression
>
.annotation
{
color
:
#007ACC
;
}
...
...
@@ -132,6 +115,18 @@
color
:
#0000FF
;
}
.vs
.repl
.repl-tree
.output.expression
>
.warn
{
color
:
#cd9731
;
}
.vs-dark
.repl
.repl-tree
.output.expression
>
.warn
{
color
:
#cd9731
;
}
.hc-black
.repl
.repl-tree
.output.expression
>
.warn
{
color
:
#008000
;
}
/* ANSI Codes */
.monaco-workbench
.repl
.repl-tree
.output.expression
.code-bold
{
font-weight
:
bold
;
}
.monaco-workbench
.repl
.repl-tree
.output.expression
.code-italic
{
font-style
:
italic
;
}
...
...
src/vs/workbench/contrib/debug/browser/repl.ts
浏览文件 @
7338daac
...
...
@@ -5,6 +5,7 @@
import
'
vs/css!./media/repl
'
;
import
{
URI
as
uri
}
from
'
vs/base/common/uri
'
;
import
{
Color
}
from
'
vs/base/common/color
'
;
import
{
IAction
,
IActionViewItem
,
Action
}
from
'
vs/base/common/actions
'
;
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
*
as
aria
from
'
vs/base/browser/ui/aria/aria
'
;
...
...
@@ -20,7 +21,7 @@ import { ServiceCollection } from 'vs/platform/instantiation/common/serviceColle
import
{
IContextKeyService
,
IContextKey
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IStorageService
,
StorageScope
}
from
'
vs/platform/storage/common/storage
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
IThemeService
,
registerThemingParticipant
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
ICodeEditor
,
isCodeEditor
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
memoize
}
from
'
vs/base/common/decorators
'
;
import
{
dispose
,
IDisposable
,
Disposable
}
from
'
vs/base/common/lifecycle
'
;
...
...
@@ -33,7 +34,7 @@ import { createAndBindHistoryNavigationWidgetScopedContextKeyService } from 'vs/
import
{
KeybindingWeight
}
from
'
vs/platform/keybinding/common/keybindingsRegistry
'
;
import
{
getSimpleEditorOptions
,
getSimpleCodeEditorWidgetOptions
}
from
'
vs/workbench/contrib/codeEditor/browser/simpleEditorOptions
'
;
import
{
IDecorationOptions
}
from
'
vs/editor/common/editorCommon
'
;
import
{
transparent
,
editorForeground
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
transparent
,
editorForeground
,
inputBorder
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
ICodeEditorService
}
from
'
vs/editor/browser/services/codeEditorService
'
;
import
{
FocusSessionActionViewItem
}
from
'
vs/workbench/contrib/debug/browser/debugActionViewItems
'
;
import
{
CompletionContext
,
CompletionList
,
CompletionProviderRegistry
,
CompletionItem
,
completionKindFromString
,
CompletionItemKind
,
CompletionItemInsertTextRule
}
from
'
vs/editor/common/modes
'
;
...
...
@@ -811,3 +812,13 @@ export class ClearReplAction extends Action {
function
getReplView
(
viewsService
:
IViewsService
):
Repl
|
undefined
{
return
viewsService
.
getActiveViewWithId
(
REPL_VIEW_ID
)
as
Repl
??
undefined
;
}
registerThemingParticipant
((
theme
,
collector
)
=>
{
const
inputBorderColor
=
theme
.
getColor
(
inputBorder
)
||
Color
.
fromHex
(
'
#80808060
'
);
collector
.
addRule
(
`
.repl .repl-input-wrapper {
border-top: 1px solid
${
inputBorderColor
}
;
}
`
);
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录