Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
3b3490c2
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,发现更多精彩内容 >>
提交
3b3490c2
编写于
8月 20, 2019
作者:
P
Peng Lyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Sort imports
上级
3d4e72b0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
6 deletion
+9
-6
src/vs/base/browser/ui/inputbox/inputBox.ts
src/vs/base/browser/ui/inputbox/inputBox.ts
+1
-0
src/vs/editor/contrib/find/findWidget.ts
src/vs/editor/contrib/find/findWidget.ts
+8
-6
未找到文件。
src/vs/base/browser/ui/inputbox/inputBox.ts
浏览文件 @
3b3490c2
...
...
@@ -178,6 +178,7 @@ export class InputBox extends Widget {
if
(
this
.
options
.
flexibleWidth
)
{
this
.
input
.
setAttribute
(
'
wrap
'
,
'
off
'
);
this
.
mirror
.
style
.
whiteSpace
=
'
pre
'
;
this
.
mirror
.
style
.
wordWrap
=
'
initial
'
;
}
dom
.
append
(
container
,
this
.
scrollableElement
.
getDomNode
());
...
...
src/vs/editor/contrib/find/findWidget.ts
浏览文件 @
3b3490c2
...
...
@@ -9,8 +9,10 @@ import * as dom from 'vs/base/browser/dom';
import
{
IKeyboardEvent
}
from
'
vs/base/browser/keyboardEvent
'
;
import
{
IMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
IContextViewProvider
}
from
'
vs/base/browser/ui/contextview/contextview
'
;
import
{
alert
as
alertFn
}
from
'
vs/base/browser/ui/aria/aria
'
;
import
{
FindInput
,
IFindInputStyles
}
from
'
vs/base/browser/ui/findinput/findInput
'
;
import
{
IMessage
as
InputBoxMessage
}
from
'
vs/base/browser/ui/inputbox/inputBox
'
;
import
{
ReplaceInput
}
from
'
vs/base/browser/ui/findinput/replaceInput
'
;
import
{
IHorizontalSashLayoutProvider
,
ISashEvent
,
Orientation
,
Sash
}
from
'
vs/base/browser/ui/sash/sash
'
;
import
{
Widget
}
from
'
vs/base/browser/ui/widget
'
;
import
{
Delayer
}
from
'
vs/base/common/async
'
;
...
...
@@ -31,8 +33,6 @@ import { contrastBorder, editorFindMatch, editorFindMatchBorder, editorFindMatch
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
'
;
import
{
alert
as
alertFn
}
from
'
vs/base/browser/ui/aria/aria
'
;
import
{
ReplaceInput
}
from
'
vs/base/browser/ui/findinput/replaceInput
'
;
export
interface
IFindController
{
replace
():
void
;
...
...
@@ -888,6 +888,8 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
}
private
_buildDomNode
():
void
{
const
flexibleHeight
=
platform
.
isNative
;
const
flexibleWidth
=
platform
.
isNative
;
// Find input
this
.
_findInput
=
this
.
_register
(
new
ContextScopedFindInput
(
null
,
this
.
_contextViewProvider
,
{
width
:
FIND_INPUT_AREA_WIDTH
,
...
...
@@ -908,8 +910,8 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
return
{
content
:
e
.
message
};
}
},
flexibleHeight
:
true
,
flexibleWidth
:
true
,
flexibleHeight
,
flexibleWidth
,
flexibleMaxHeight
:
118
},
this
.
_contextKeyService
,
true
));
this
.
_findInput
.
setRegex
(
!!
this
.
_state
.
isRegex
);
...
...
@@ -1035,8 +1037,8 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
label
:
NLS_REPLACE_INPUT_LABEL
,
placeholder
:
NLS_REPLACE_INPUT_PLACEHOLDER
,
history
:
[],
flexibleHeight
:
true
,
flexibleWidth
:
true
,
flexibleHeight
,
flexibleWidth
,
flexibleMaxHeight
:
118
},
this
.
_contextKeyService
,
true
));
this
.
_replaceInput
.
setPreserveCase
(
!!
this
.
_state
.
preserveCase
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录