Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
fe646562
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,发现更多精彩内容 >>
提交
fe646562
编写于
1月 24, 2020
作者:
S
SteVen Batten
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
doing the same for outline
上级
d9e4100e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
3 deletion
+13
-3
src/vs/platform/list/browser/listService.ts
src/vs/platform/list/browser/listService.ts
+5
-0
src/vs/workbench/browser/parts/views/viewPaneContainer.ts
src/vs/workbench/browser/parts/views/viewPaneContainer.ts
+1
-1
src/vs/workbench/contrib/outline/browser/outlinePane.ts
src/vs/workbench/contrib/outline/browser/outlinePane.ts
+7
-2
未找到文件。
src/vs/platform/list/browser/listService.ts
浏览文件 @
fe646562
...
...
@@ -807,6 +807,11 @@ export class WorkbenchDataTree<TInput, T, TFilterData = void> extends DataTree<T
this
.
internals
=
new
WorkbenchTreeInternals
(
this
,
treeOptions
,
getAutomaticKeyboardNavigation
,
options
.
overrideStyles
,
contextKeyService
,
listService
,
themeService
,
configurationService
,
accessibilityService
);
this
.
disposables
.
add
(
this
.
internals
);
}
updateOptions
(
options
:
IWorkbenchAsyncDataTreeOptions
<
T
,
TFilterData
>
=
{}):
void
{
super
.
updateOptions
(
options
);
this
.
internals
.
updateStyleOverrides
(
options
.
overrideStyles
);
}
}
export
interface
IWorkbenchAsyncDataTreeOptions
<
T
,
TFilterData
>
extends
IAsyncDataTreeOptions
<
T
,
TFilterData
>
{
...
...
src/vs/workbench/browser/parts/views/viewPaneContainer.ts
浏览文件 @
fe646562
...
...
@@ -91,7 +91,7 @@ export abstract class ViewPane extends Pane implements IView {
@
IContextMenuService
protected
contextMenuService
:
IContextMenuService
,
@
IConfigurationService
protected
readonly
configurationService
:
IConfigurationService
,
@
IContextKeyService
contextKeyService
:
IContextKeyService
,
@
IViewDescriptorService
pr
ivate
viewDescriptorService
:
IViewDescriptorService
,
@
IViewDescriptorService
pr
otected
viewDescriptorService
:
IViewDescriptorService
,
@
IInstantiationService
protected
instantiationService
:
IInstantiationService
,
)
{
super
(
options
);
...
...
src/vs/workbench/contrib/outline/browser/outlinePane.ts
浏览文件 @
fe646562
...
...
@@ -47,7 +47,6 @@ import { basename } from 'vs/base/common/resources';
import
{
IDataSource
}
from
'
vs/base/browser/ui/tree/tree
'
;
import
{
IMarkerDecorationsService
}
from
'
vs/editor/common/services/markersDecorationService
'
;
import
{
MarkerSeverity
}
from
'
vs/platform/markers/common/markers
'
;
import
{
SIDE_BAR_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
IViewDescriptorService
}
from
'
vs/workbench/common/views
'
;
class
RequestState
{
...
...
@@ -335,13 +334,19 @@ export class OutlinePane extends ViewPane {
keyboardNavigationLabelProvider
:
new
OutlineNavigationLabelProvider
(),
hideTwistiesOfChildlessElements
:
true
,
overrideStyles
:
{
listBackground
:
SIDE_BAR_BACKGROUND
listBackground
:
this
.
getBackgroundColor
()
}
}
);
this
.
_disposables
.
push
(
this
.
_tree
);
this
.
_disposables
.
push
(
this
.
_outlineViewState
.
onDidChange
(
this
.
_onDidChangeUserState
,
this
));
this
.
_disposables
.
push
(
this
.
viewDescriptorService
.
onDidChangeLocation
(({
views
,
from
,
to
})
=>
{
if
(
views
.
some
(
v
=>
v
.
id
===
this
.
id
))
{
this
.
_tree
.
updateOptions
({
overrideStyles
:
{
listBackground
:
this
.
getBackgroundColor
()
}
});
}
}));
// override the globally defined behaviour
this
.
_tree
.
updateOptions
({
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录