Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
96e0edcd
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,体验更适合开发者的 AI 搜索 >>
提交
96e0edcd
编写于
8月 09, 2019
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iconLabel: supportOcticons by defaul should be false
#77747
上级
cd6ed7bc
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
src/vs/base/browser/ui/iconLabel/iconLabel.ts
src/vs/base/browser/ui/iconLabel/iconLabel.ts
+3
-3
src/vs/base/parts/quickopen/browser/quickOpenModel.ts
src/vs/base/parts/quickopen/browser/quickOpenModel.ts
+1
-1
src/vs/editor/contrib/suggest/suggestWidget.ts
src/vs/editor/contrib/suggest/suggestWidget.ts
+1
-1
src/vs/workbench/browser/parts/quickinput/quickInputList.ts
src/vs/workbench/browser/parts/quickinput/quickInputList.ts
+1
-1
src/vs/workbench/browser/parts/views/customView.ts
src/vs/workbench/browser/parts/views/customView.ts
+1
-1
src/vs/workbench/contrib/files/browser/views/explorerViewer.ts
...s/workbench/contrib/files/browser/views/explorerViewer.ts
+1
-1
未找到文件。
src/vs/base/browser/ui/iconLabel/iconLabel.ts
浏览文件 @
96e0edcd
...
...
@@ -12,7 +12,7 @@ import { Disposable } from 'vs/base/common/lifecycle';
export
interface
IIconLabelCreationOptions
{
supportHighlights
?:
boolean
;
supportDescriptionHighlights
?:
boolean
;
donotS
upportOcticons
?:
boolean
;
s
upportOcticons
?:
boolean
;
}
export
interface
IIconLabelValueOptions
{
...
...
@@ -100,13 +100,13 @@ export class IconLabel extends Disposable {
this
.
labelDescriptionContainer
=
this
.
_register
(
new
FastLabelNode
(
dom
.
append
(
this
.
domNode
.
element
,
dom
.
$
(
'
.monaco-icon-label-description-container
'
))));
if
(
options
&&
options
.
supportHighlights
)
{
this
.
labelNode
=
new
HighlightedLabel
(
dom
.
append
(
this
.
labelDescriptionContainer
.
element
,
dom
.
$
(
'
a.label-name
'
)),
!
options
.
donotS
upportOcticons
);
this
.
labelNode
=
new
HighlightedLabel
(
dom
.
append
(
this
.
labelDescriptionContainer
.
element
,
dom
.
$
(
'
a.label-name
'
)),
!
!
options
.
s
upportOcticons
);
}
else
{
this
.
labelNode
=
this
.
_register
(
new
FastLabelNode
(
dom
.
append
(
this
.
labelDescriptionContainer
.
element
,
dom
.
$
(
'
a.label-name
'
))));
}
if
(
options
&&
options
.
supportDescriptionHighlights
)
{
this
.
descriptionNodeFactory
=
()
=>
new
HighlightedLabel
(
dom
.
append
(
this
.
labelDescriptionContainer
.
element
,
dom
.
$
(
'
span.label-description
'
)),
!
options
.
donotS
upportOcticons
);
this
.
descriptionNodeFactory
=
()
=>
new
HighlightedLabel
(
dom
.
append
(
this
.
labelDescriptionContainer
.
element
,
dom
.
$
(
'
span.label-description
'
)),
!
!
options
.
s
upportOcticons
);
}
else
{
this
.
descriptionNodeFactory
=
()
=>
this
.
_register
(
new
FastLabelNode
(
dom
.
append
(
this
.
labelDescriptionContainer
.
element
,
dom
.
$
(
'
span.label-description
'
))));
}
...
...
src/vs/base/parts/quickopen/browser/quickOpenModel.ts
浏览文件 @
96e0edcd
...
...
@@ -352,7 +352,7 @@ class Renderer implements IRenderer<QuickOpenEntry> {
row1
.
appendChild
(
icon
);
// Label
const
label
=
new
IconLabel
(
row1
,
{
supportHighlights
:
true
,
supportDescriptionHighlights
:
true
});
const
label
=
new
IconLabel
(
row1
,
{
supportHighlights
:
true
,
supportDescriptionHighlights
:
true
,
supportOcticons
:
true
});
// Keybinding
const
keybindingContainer
=
document
.
createElement
(
'
span
'
);
...
...
src/vs/editor/contrib/suggest/suggestWidget.ts
浏览文件 @
96e0edcd
...
...
@@ -115,7 +115,7 @@ class Renderer implements IListRenderer<CompletionItem, ISuggestionTemplateData>
const
text
=
append
(
container
,
$
(
'
.contents
'
));
const
main
=
append
(
text
,
$
(
'
.main
'
));
data
.
iconLabel
=
new
IconLabel
(
main
,
{
supportHighlights
:
true
});
data
.
iconLabel
=
new
IconLabel
(
main
,
{
supportHighlights
:
true
,
supportOcticons
:
true
});
data
.
disposables
.
add
(
data
.
iconLabel
);
data
.
typeLabel
=
append
(
main
,
$
(
'
span.type-label
'
));
...
...
src/vs/workbench/browser/parts/quickinput/quickInputList.ts
浏览文件 @
96e0edcd
...
...
@@ -114,7 +114,7 @@ class ListElementRenderer implements IListRenderer<ListElement, IListElementTemp
const
row2
=
dom
.
append
(
rows
,
$
(
'
.quick-input-list-row
'
));
// Label
data
.
label
=
new
IconLabel
(
row1
,
{
supportHighlights
:
true
,
supportDescriptionHighlights
:
true
});
data
.
label
=
new
IconLabel
(
row1
,
{
supportHighlights
:
true
,
supportDescriptionHighlights
:
true
,
supportOcticons
:
true
});
// Detail
const
detailContainer
=
dom
.
append
(
row2
,
$
(
'
.quick-input-list-label-meta
'
));
...
...
src/vs/workbench/browser/parts/views/customView.ts
浏览文件 @
96e0edcd
...
...
@@ -726,7 +726,7 @@ class TreeRenderer extends Disposable implements ITreeRenderer<ITreeItem, FuzzyS
const
icon
=
DOM
.
append
(
container
,
DOM
.
$
(
'
.custom-view-tree-node-item-icon
'
));
const
resourceLabel
=
this
.
labels
.
create
(
container
,
{
supportHighlights
:
true
,
donotSupportOcticons
:
true
});
const
resourceLabel
=
this
.
labels
.
create
(
container
,
{
supportHighlights
:
true
});
const
actionsContainer
=
DOM
.
append
(
resourceLabel
.
element
,
DOM
.
$
(
'
.actions
'
));
const
actionBar
=
new
ActionBar
(
actionsContainer
,
{
actionViewItemProvider
:
this
.
actionViewItemProvider
...
...
src/vs/workbench/contrib/files/browser/views/explorerViewer.ts
浏览文件 @
96e0edcd
...
...
@@ -141,7 +141,7 @@ export class FilesRenderer implements ITreeRenderer<ExplorerItem, FuzzyScore, IF
renderTemplate
(
container
:
HTMLElement
):
IFileTemplateData
{
const
elementDisposable
=
Disposable
.
None
;
const
label
=
this
.
labels
.
create
(
container
,
{
supportHighlights
:
true
,
donotSupportOcticons
:
true
});
const
label
=
this
.
labels
.
create
(
container
,
{
supportHighlights
:
true
});
return
{
elementDisposable
,
label
,
container
};
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录