Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
23bbcfbf
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,发现更多精彩内容 >>
提交
23bbcfbf
编写于
5月 01, 2020
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - use [] over new Array
上级
ce850e02
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
src/vs/editor/contrib/suggest/completionModel.ts
src/vs/editor/contrib/suggest/completionModel.ts
+1
-1
src/vs/workbench/contrib/outline/browser/outlinePane.ts
src/vs/workbench/contrib/outline/browser/outlinePane.ts
+7
-7
未找到文件。
src/vs/editor/contrib/suggest/completionModel.ts
浏览文件 @
23bbcfbf
...
...
@@ -101,7 +101,7 @@ export class CompletionModel {
}
adopt
(
except
:
Set
<
CompletionItemProvider
>
):
CompletionItem
[]
{
let
res
=
new
Array
<
CompletionItem
>
()
;
let
res
:
CompletionItem
[]
=
[]
;
for
(
let
i
=
0
;
i
<
this
.
_items
.
length
;)
{
if
(
!
except
.
has
(
this
.
_items
[
i
].
provider
))
{
res
.
push
(
this
.
_items
[
i
]);
...
...
src/vs/workbench/contrib/outline/browser/outlinePane.ts
浏览文件 @
23bbcfbf
...
...
@@ -238,7 +238,7 @@ class OutlineViewState {
export
class
OutlinePane
extends
ViewPane
{
private
_disposables
=
new
Array
<
IDisposable
>
();
private
_disposables
=
new
DisposableStore
();
private
_editorDisposables
=
new
DisposableStore
();
private
_outlineViewState
=
new
OutlineViewState
();
...
...
@@ -277,8 +277,8 @@ export class OutlinePane extends ViewPane {
this
.
_outlineViewState
.
restore
(
this
.
_storageService
);
this
.
_contextKeyFocused
=
OutlineViewFocused
.
bindTo
(
contextKeyService
);
this
.
_contextKeyFiltered
=
OutlineViewFiltered
.
bindTo
(
contextKeyService
);
this
.
_disposables
.
push
(
this
.
onDidFocus
(
_
=>
this
.
_contextKeyFocused
.
set
(
true
)));
this
.
_disposables
.
push
(
this
.
onDidBlur
(
_
=>
this
.
_contextKeyFocused
.
set
(
false
)));
this
.
_disposables
.
add
(
this
.
onDidFocus
(
_
=>
this
.
_contextKeyFocused
.
set
(
true
)));
this
.
_disposables
.
add
(
this
.
onDidBlur
(
_
=>
this
.
_contextKeyFocused
.
set
(
false
)));
}
dispose
():
void
{
...
...
@@ -349,9 +349,9 @@ export class OutlinePane extends ViewPane {
);
this
.
_disposables
.
push
(
this
.
_tree
);
this
.
_disposables
.
push
(
this
.
_outlineViewState
.
onDidChange
(
this
.
_onDidChangeUserState
,
this
));
this
.
_disposables
.
push
(
this
.
viewDescriptorService
.
onDidChangeLocation
(({
views
})
=>
{
this
.
_disposables
.
add
(
this
.
_tree
);
this
.
_disposables
.
add
(
this
.
_outlineViewState
.
onDidChange
(
this
.
_onDidChangeUserState
,
this
));
this
.
_disposables
.
add
(
this
.
viewDescriptorService
.
onDidChangeLocation
(({
views
})
=>
{
if
(
views
.
some
(
v
=>
v
.
id
===
this
.
id
))
{
this
.
_tree
.
updateOptions
({
overrideStyles
:
{
listBackground
:
this
.
getBackgroundColor
()
}
});
}
...
...
@@ -526,7 +526,7 @@ export class OutlinePane extends ViewPane {
handle
=
undefined
;
resolve
(
true
);
},
2000
);
this
.
_disposables
.
push
({
this
.
_disposables
.
add
({
dispose
()
{
clearTimeout
(
handle
);
resolve
(
false
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录