Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e558dc6e
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,发现更多精彩内容 >>
提交
e558dc6e
编写于
8月 21, 2019
作者:
P
Peng Lyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Support multiline find widget in monaco.
上级
962158e1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
3 deletion
+17
-3
src/vs/base/browser/ui/inputbox/inputBox.css
src/vs/base/browser/ui/inputbox/inputBox.css
+2
-0
src/vs/editor/contrib/find/findWidget.css
src/vs/editor/contrib/find/findWidget.css
+5
-0
src/vs/editor/contrib/find/findWidget.ts
src/vs/editor/contrib/find/findWidget.ts
+10
-3
未找到文件。
src/vs/base/browser/ui/inputbox/inputBox.css
浏览文件 @
e558dc6e
...
...
@@ -60,6 +60,8 @@
display
:
block
;
-ms-overflow-style
:
none
;
/* IE 10+ */
overflow
:
-moz-scrollbars-none
;
/* Firefox */
scrollbar-width
:
none
;
/* Firefox ^64 */
outline
:
none
;
}
.monaco-inputbox
>
.wrapper
>
textarea
.input
::-webkit-scrollbar
{
...
...
src/vs/editor/contrib/find/findWidget.css
浏览文件 @
e558dc6e
...
...
@@ -71,6 +71,11 @@
bottom
:
unset
;
}
.monaco-editor
.find-widget
.monaco-inputbox.synthetic-focus
{
outline
:
1px
solid
-webkit-focus-ring-color
;
outline-offset
:
-1px
;
}
.monaco-editor
.find-widget
.monaco-inputbox
.input
{
background-color
:
transparent
;
/* Style to compensate for //winjs */
...
...
src/vs/editor/contrib/find/findWidget.ts
浏览文件 @
e558dc6e
...
...
@@ -29,7 +29,7 @@ import { CONTEXT_FIND_INPUT_FOCUSED, CONTEXT_REPLACE_INPUT_FOCUSED, FIND_IDS, MA
import
{
FindReplaceState
,
FindReplaceStateChangedEvent
}
from
'
vs/editor/contrib/find/findState
'
;
import
{
IContextKey
,
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
IKeybindingService
}
from
'
vs/platform/keybinding/common/keybinding
'
;
import
{
contrastBorder
,
editorFindMatch
,
editorFindMatchBorder
,
editorFindMatchHighlight
,
editorFindMatchHighlightBorder
,
editorFindRangeHighlight
,
editorFindRangeHighlightBorder
,
editorWidgetBackground
,
editorWidgetBorder
,
editorWidgetResizeBorder
,
errorForeground
,
inputActiveOptionBorder
,
inputActiveOptionBackground
,
inputBackground
,
inputBorder
,
inputForeground
,
inputValidationErrorBackground
,
inputValidationErrorBorder
,
inputValidationErrorForeground
,
inputValidationInfoBackground
,
inputValidationInfoBorder
,
inputValidationInfoForeground
,
inputValidationWarningBackground
,
inputValidationWarningBorder
,
inputValidationWarningForeground
,
widgetShadow
,
editorWidgetForeground
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
contrastBorder
,
editorFindMatch
,
editorFindMatchBorder
,
editorFindMatchHighlight
,
editorFindMatchHighlightBorder
,
editorFindRangeHighlight
,
editorFindRangeHighlightBorder
,
editorWidgetBackground
,
editorWidgetBorder
,
editorWidgetResizeBorder
,
errorForeground
,
inputActiveOptionBorder
,
inputActiveOptionBackground
,
inputBackground
,
inputBorder
,
inputForeground
,
inputValidationErrorBackground
,
inputValidationErrorBorder
,
inputValidationErrorForeground
,
inputValidationInfoBackground
,
inputValidationInfoBorder
,
inputValidationInfoForeground
,
inputValidationWarningBackground
,
inputValidationWarningBorder
,
inputValidationWarningForeground
,
widgetShadow
,
editorWidgetForeground
,
focusBorder
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
ITheme
,
IThemeService
,
registerThemingParticipant
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
ContextScopedFindInput
,
ContextScopedReplaceInput
}
from
'
vs/platform/browser/contextScopedHistoryWidget
'
;
import
{
AccessibilitySupport
}
from
'
vs/platform/accessibility/common/accessibility
'
;
...
...
@@ -894,8 +894,8 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
}
private
_buildDomNode
():
void
{
const
flexibleHeight
=
platform
.
isNativ
e
;
const
flexibleWidth
=
platform
.
isNativ
e
;
const
flexibleHeight
=
tru
e
;
const
flexibleWidth
=
tru
e
;
// Find input
this
.
_findInput
=
this
.
_register
(
new
ContextScopedFindInput
(
null
,
this
.
_contextViewProvider
,
{
width
:
FIND_INPUT_AREA_WIDTH
,
...
...
@@ -1402,4 +1402,11 @@ registerThemingParticipant((theme, collector) => {
if
(
inputActiveBackground
)
{
collector
.
addRule
(
`.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { background-color:
${
inputActiveBackground
.
toString
()}
; }`
);
}
// This rule is used to override the outline color for synthetic-focus find input.
const
focusOutline
=
theme
.
getColor
(
focusBorder
);
if
(
focusOutline
)
{
collector
.
addRule
(
`.monaco-workbench .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color:
${
focusOutline
}
; }`
);
}
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录