Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
9b1f263a
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,发现更多精彩内容 >>
提交
9b1f263a
编写于
1月 30, 2019
作者:
R
Rob Lourens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix #67587
上级
9a766eaa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
11 deletion
+19
-11
src/vs/workbench/parts/preferences/electron-browser/media/settingsEditor2.css
...ts/preferences/electron-browser/media/settingsEditor2.css
+11
-2
src/vs/workbench/parts/preferences/electron-browser/settingsEditor2.ts
...nch/parts/preferences/electron-browser/settingsEditor2.ts
+8
-9
未找到文件。
src/vs/workbench/parts/preferences/electron-browser/media/settingsEditor2.css
浏览文件 @
9b1f263a
...
...
@@ -99,7 +99,7 @@
position
:
relative
;
}
.settings-editor
>
.settings-body
>
.no-results
{
.settings-editor
>
.settings-body
>
.no-results
-message
{
display
:
none
;
max-width
:
1000px
;
margin
:
auto
;
...
...
@@ -109,7 +109,16 @@
box-sizing
:
border-box
;
}
.settings-editor
>
.settings-body
>
.no-results
a
.prominent
{
.settings-editor.no-results
>
.settings-body
.settings-toc-container
,
.settings-editor.no-results
>
.settings-body
.settings-tree-container
{
display
:
none
;
}
.settings-editor.no-results
>
.settings-body
>
.no-results-message
{
display
:
block
;
}
.settings-editor
>
.settings-body
>
.no-results-message
a
.prominent
{
text-decoration
:
underline
;
}
...
...
src/vs/workbench/parts/preferences/electron-browser/settingsEditor2.ts
浏览文件 @
9b1f263a
...
...
@@ -455,7 +455,7 @@ export class SettingsEditor2 extends BaseEditor {
private
createBody
(
parent
:
HTMLElement
):
void
{
const
bodyContainer
=
DOM
.
append
(
parent
,
$
(
'
.settings-body
'
));
this
.
noResultsMessage
=
DOM
.
append
(
bodyContainer
,
$
(
'
.no-results
'
));
this
.
noResultsMessage
=
DOM
.
append
(
bodyContainer
,
$
(
'
.no-results
-message
'
));
this
.
noResultsMessage
.
innerText
=
localize
(
'
noResults
'
,
"
No Settings Found
"
);
...
...
@@ -950,6 +950,8 @@ export class SettingsEditor2 extends BaseEditor {
}
}
this
.
renderResultCountMessages
();
if
(
key
)
{
const
elements
=
this
.
currentSettingsModel
.
getElementsByName
(
key
);
if
(
elements
&&
elements
.
length
)
{
...
...
@@ -1034,13 +1036,13 @@ export class SettingsEditor2 extends BaseEditor {
// Added a filter model
this
.
tocTree
.
setSelection
([]);
this
.
tocTree
.
expandAll
();
this
.
refreshTree
();
this
.
renderResultCountMessages
();
this
.
refreshTree
();
}
else
{
// Leaving search mode
this
.
tocTree
.
collapseAll
();
this
.
refreshTree
();
this
.
renderResultCountMessages
();
this
.
refreshTree
();
}
this
.
refreshTOCTree
();
...
...
@@ -1147,9 +1149,7 @@ export class SettingsEditor2 extends BaseEditor {
return
Promise
.
all
([
this
.
filterOrSearchPreferences
(
query
,
SearchResultIdx
.
Remote
,
remoteSearchProvider
,
token
),
this
.
filterOrSearchPreferences
(
query
,
SearchResultIdx
.
NewExtensions
,
newExtSearchProvider
,
token
)
]).
then
(()
=>
{
this
.
renderResultCountMessages
();
});
]).
then
(()
=>
{
});
}
private
filterOrSearchPreferences
(
query
:
string
,
type
:
SearchResultIdx
,
searchProvider
:
ISearchProvider
,
token
?:
CancellationToken
):
Promise
<
ISearchResult
>
{
...
...
@@ -1164,7 +1164,6 @@ export class SettingsEditor2 extends BaseEditor {
this
.
searchResultModel
.
setResult
(
type
,
result
);
this
.
tocTreeModel
.
currentSearchModel
=
this
.
searchResultModel
;
this
.
onSearchModeToggled
();
this
.
refreshTree
();
}
else
{
this
.
searchResultModel
.
setResult
(
type
,
result
);
this
.
tocTreeModel
.
update
();
...
...
@@ -1174,7 +1173,7 @@ export class SettingsEditor2 extends BaseEditor {
this
.
viewState
.
filterToCategory
=
null
;
this
.
tocTree
.
expandAll
();
return
this
.
renderTree
().
then
(()
=>
result
);
return
this
.
renderTree
(
undefined
,
true
).
then
(()
=>
result
);
});
}
...
...
@@ -1192,7 +1191,7 @@ export class SettingsEditor2 extends BaseEditor {
}
this
.
countElement
.
style
.
display
=
'
block
'
;
this
.
noResultsMessage
.
style
.
display
=
count
===
0
?
'
block
'
:
'
none
'
;
DOM
.
toggleClass
(
this
.
rootElement
,
'
no-results
'
,
count
===
0
)
;
this
.
clearFilterLinkContainer
.
style
.
display
=
this
.
viewState
.
tagFilters
&&
this
.
viewState
.
tagFilters
.
size
>
0
?
'
initial
'
:
'
none
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录