Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0e37dde2
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,发现更多精彩内容 >>
未验证
提交
0e37dde2
编写于
6月 26, 2019
作者:
J
Johannes Rieken
提交者:
GitHub
6月 26, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #75971 from jeanp413/fix-75969
Delete breadcrumbs.filterOnType unused setting.
上级
ffed70a3
8b9005ed
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
21 deletion
+2
-21
src/vs/workbench/browser/parts/editor/breadcrumbs.ts
src/vs/workbench/browser/parts/editor/breadcrumbs.ts
+1
-7
src/vs/workbench/browser/parts/editor/breadcrumbsPicker.ts
src/vs/workbench/browser/parts/editor/breadcrumbsPicker.ts
+1
-14
未找到文件。
src/vs/workbench/browser/parts/editor/breadcrumbs.ts
浏览文件 @
0e37dde2
...
@@ -71,7 +71,6 @@ export abstract class BreadcrumbsConfig<T> {
...
@@ -71,7 +71,6 @@ export abstract class BreadcrumbsConfig<T> {
static
FilePath
=
BreadcrumbsConfig
.
_stub
<
'
on
'
|
'
off
'
|
'
last
'
>
(
'
breadcrumbs.filePath
'
);
static
FilePath
=
BreadcrumbsConfig
.
_stub
<
'
on
'
|
'
off
'
|
'
last
'
>
(
'
breadcrumbs.filePath
'
);
static
SymbolPath
=
BreadcrumbsConfig
.
_stub
<
'
on
'
|
'
off
'
|
'
last
'
>
(
'
breadcrumbs.symbolPath
'
);
static
SymbolPath
=
BreadcrumbsConfig
.
_stub
<
'
on
'
|
'
off
'
|
'
last
'
>
(
'
breadcrumbs.symbolPath
'
);
static
SymbolSortOrder
=
BreadcrumbsConfig
.
_stub
<
'
position
'
|
'
name
'
|
'
type
'
>
(
'
breadcrumbs.symbolSortOrder
'
);
static
SymbolSortOrder
=
BreadcrumbsConfig
.
_stub
<
'
position
'
|
'
name
'
|
'
type
'
>
(
'
breadcrumbs.symbolSortOrder
'
);
static
FilterOnType
=
BreadcrumbsConfig
.
_stub
<
boolean
>
(
'
breadcrumbs.filterOnType
'
);
static
FileExcludes
=
BreadcrumbsConfig
.
_stub
<
glob
.
IExpression
>
(
'
files.exclude
'
);
static
FileExcludes
=
BreadcrumbsConfig
.
_stub
<
glob
.
IExpression
>
(
'
files.exclude
'
);
...
@@ -161,12 +160,7 @@ Registry.as<IConfigurationRegistry>(Extensions.Configuration).registerConfigurat
...
@@ -161,12 +160,7 @@ Registry.as<IConfigurationRegistry>(Extensions.Configuration).registerConfigurat
localize
(
'
symbolSortOrder.name
'
,
"
Show symbol outline in alphabetical order.
"
),
localize
(
'
symbolSortOrder.name
'
,
"
Show symbol outline in alphabetical order.
"
),
localize
(
'
symbolSortOrder.type
'
,
"
Show symbol outline in symbol type order.
"
),
localize
(
'
symbolSortOrder.type
'
,
"
Show symbol outline in symbol type order.
"
),
]
]
},
}
// 'breadcrumbs.filterOnType': {
// description: localize('filterOnType', "Controls whether the breadcrumb picker filters or highlights when typing."),
// type: 'boolean',
// default: false
// },
}
}
});
});
...
...
src/vs/workbench/browser/parts/editor/breadcrumbsPicker.ts
浏览文件 @
0e37dde2
...
@@ -15,7 +15,7 @@ import { basename, dirname, isEqual } from 'vs/base/common/resources';
...
@@ -15,7 +15,7 @@ import { basename, dirname, isEqual } from 'vs/base/common/resources';
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
'
vs/css!./media/breadcrumbscontrol
'
;
import
'
vs/css!./media/breadcrumbscontrol
'
;
import
{
OutlineElement
,
OutlineModel
,
TreeElement
}
from
'
vs/editor/contrib/documentSymbols/outlineModel
'
;
import
{
OutlineElement
,
OutlineModel
,
TreeElement
}
from
'
vs/editor/contrib/documentSymbols/outlineModel
'
;
import
{
IConfigurationService
,
ConfigurationTarget
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
FileKind
,
IFileService
,
IFileStat
}
from
'
vs/platform/files/common/files
'
;
import
{
FileKind
,
IFileService
,
IFileStat
}
from
'
vs/platform/files/common/files
'
;
import
{
IConstructorSignature1
,
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IConstructorSignature1
,
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
WorkbenchDataTree
,
WorkbenchAsyncDataTree
}
from
'
vs/platform/list/browser/listService
'
;
import
{
WorkbenchDataTree
,
WorkbenchAsyncDataTree
}
from
'
vs/platform/list/browser/listService
'
;
...
@@ -102,10 +102,6 @@ export abstract class BreadcrumbsPicker {
...
@@ -102,10 +102,6 @@ export abstract class BreadcrumbsPicker {
this
.
_treeContainer
.
style
.
boxShadow
=
`0px 5px 8px
${
this
.
_themeService
.
getTheme
().
getColor
(
widgetShadow
)}
`
;
this
.
_treeContainer
.
style
.
boxShadow
=
`0px 5px 8px
${
this
.
_themeService
.
getTheme
().
getColor
(
widgetShadow
)}
`
;
this
.
_domNode
.
appendChild
(
this
.
_treeContainer
);
this
.
_domNode
.
appendChild
(
this
.
_treeContainer
);
const
filterConfig
=
BreadcrumbsConfig
.
FilterOnType
.
bindTo
(
this
.
_configurationService
);
this
.
_disposables
.
push
(
filterConfig
);
this
.
_layoutInfo
=
{
maxHeight
,
width
,
arrowSize
,
arrowOffset
,
inputHeight
:
0
};
this
.
_layoutInfo
=
{
maxHeight
,
width
,
arrowSize
,
arrowOffset
,
inputHeight
:
0
};
this
.
_tree
=
this
.
_createTree
(
this
.
_treeContainer
);
this
.
_tree
=
this
.
_createTree
(
this
.
_treeContainer
);
...
@@ -129,13 +125,6 @@ export abstract class BreadcrumbsPicker {
...
@@ -129,13 +125,6 @@ export abstract class BreadcrumbsPicker {
this
.
_layout
();
this
.
_layout
();
}));
}));
// filter on type: state
const
cfgFilterOnType
=
BreadcrumbsConfig
.
FilterOnType
.
bindTo
(
this
.
_configurationService
);
this
.
_tree
.
updateOptions
({
filterOnType
:
cfgFilterOnType
.
getValue
()
});
this
.
_disposables
.
push
(
this
.
_tree
.
onDidUpdateOptions
(
e
=>
{
this
.
_configurationService
.
updateValue
(
cfgFilterOnType
.
name
,
e
.
filterOnType
,
ConfigurationTarget
.
MEMORY
);
}));
this
.
_domNode
.
focus
();
this
.
_domNode
.
focus
();
this
.
_setInput
(
input
).
then
(()
=>
{
this
.
_setInput
(
input
).
then
(()
=>
{
...
@@ -389,7 +378,6 @@ export class BreadcrumbsFilePicker extends BreadcrumbsPicker {
...
@@ -389,7 +378,6 @@ export class BreadcrumbsFilePicker extends BreadcrumbsPicker {
this
.
_disposables
.
push
(
labels
);
this
.
_disposables
.
push
(
labels
);
return
this
.
_instantiationService
.
createInstance
(
WorkbenchAsyncDataTree
,
container
,
new
FileVirtualDelegate
(),
[
this
.
_instantiationService
.
createInstance
(
FileRenderer
,
labels
)],
this
.
_instantiationService
.
createInstance
(
FileDataSource
),
{
return
this
.
_instantiationService
.
createInstance
(
WorkbenchAsyncDataTree
,
container
,
new
FileVirtualDelegate
(),
[
this
.
_instantiationService
.
createInstance
(
FileRenderer
,
labels
)],
this
.
_instantiationService
.
createInstance
(
FileDataSource
),
{
filterOnType
:
true
,
multipleSelectionSupport
:
false
,
multipleSelectionSupport
:
false
,
sorter
:
new
FileSorter
(),
sorter
:
new
FileSorter
(),
filter
:
this
.
_instantiationService
.
createInstance
(
FileFilter
),
filter
:
this
.
_instantiationService
.
createInstance
(
FileFilter
),
...
@@ -467,7 +455,6 @@ export class BreadcrumbsOutlinePicker extends BreadcrumbsPicker {
...
@@ -467,7 +455,6 @@ export class BreadcrumbsOutlinePicker extends BreadcrumbsPicker {
[
new
OutlineGroupRenderer
(),
this
.
_instantiationService
.
createInstance
(
OutlineElementRenderer
)],
[
new
OutlineGroupRenderer
(),
this
.
_instantiationService
.
createInstance
(
OutlineElementRenderer
)],
new
OutlineDataSource
(),
new
OutlineDataSource
(),
{
{
filterOnType
:
true
,
expandOnlyOnTwistieClick
:
true
,
expandOnlyOnTwistieClick
:
true
,
multipleSelectionSupport
:
false
,
multipleSelectionSupport
:
false
,
sorter
:
new
OutlineItemComparator
(
this
.
_getOutlineItemCompareType
()),
sorter
:
new
OutlineItemComparator
(
this
.
_getOutlineItemCompareType
()),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录