Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
f024f256
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,发现更多精彩内容 >>
提交
f024f256
编写于
5月 28, 2018
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Pass unregsitered views to super update views
上级
3ac58daa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
11 deletion
+13
-11
src/vs/workbench/common/views.ts
src/vs/workbench/common/views.ts
+1
-1
src/vs/workbench/parts/extensions/electron-browser/extensionsViewlet.ts
...ch/parts/extensions/electron-browser/extensionsViewlet.ts
+12
-10
未找到文件。
src/vs/workbench/common/views.ts
浏览文件 @
f024f256
...
...
@@ -125,9 +125,9 @@ export const ViewsRegistry: IViewsRegistry = new class implements IViewsRegistry
this
.
_views
.
delete
(
location
);
this
.
_viewLocations
.
splice
(
this
.
_viewLocations
.
indexOf
(
location
),
1
);
}
this
.
_onViewsDeregistered
.
fire
(
viewsToDeregister
);
}
this
.
_onViewsDeregistered
.
fire
(
viewsToDeregister
);
}
getViews
(
loc
:
ViewLocation
):
IViewDescriptor
[]
{
...
...
src/vs/workbench/parts/extensions/electron-browser/extensionsViewlet.ts
浏览文件 @
f024f256
...
...
@@ -93,7 +93,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
marketPlace
'
,
"
Marketplace
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
ExtensionsListView
,
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
has
(
'
searchExtensions
'
),
ContextKeyExpr
.
not
(
'
searchInstalledExtensions
'
),
ContextKeyExpr
.
not
(
'
searchBuiltInExtensions
'
),
ContextKeyExpr
.
not
(
'
recommendedExtensions
'
)),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
has
(
'
searchExtensions
'
),
ContextKeyExpr
.
not
(
'
searchInstalledExtensions
'
),
ContextKeyExpr
.
not
(
'
searchBuiltInExtensions
'
),
ContextKeyExpr
.
not
(
'
recommendedExtensions
'
)),
weight
:
100
};
}
...
...
@@ -104,7 +104,8 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
installedExtensions
'
,
"
Installed
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
InstalledExtensionsView
,
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
searchExtensions
'
)),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
not
(
'
searchExtensions
'
)),
order
:
1
,
weight
:
30
};
}
...
...
@@ -115,7 +116,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
searchInstalledExtensions
'
,
"
Installed
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
InstalledExtensionsView
,
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
has
(
'
searchInstalledExtensions
'
)),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
has
(
'
searchInstalledExtensions
'
)),
weight
:
100
};
}
...
...
@@ -126,8 +127,9 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
recommendedExtensions
'
,
"
Recommended
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
RecommendedExtensionsView
,
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
searchExtensions
'
),
ContextKeyExpr
.
has
(
'
defaultRecommendedExtensions
'
)),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
not
(
'
searchExtensions
'
),
ContextKeyExpr
.
has
(
'
defaultRecommendedExtensions
'
)),
weight
:
70
,
order
:
2
,
canToggleVisibility
:
true
};
}
...
...
@@ -138,7 +140,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
otherRecommendedExtensions
'
,
"
Other Recommendations
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
RecommendedExtensionsView
,
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
has
(
'
recommendedExtensions
'
)),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
has
(
'
recommendedExtensions
'
)),
weight
:
50
,
canToggleVisibility
:
true
,
order
:
2
...
...
@@ -151,7 +153,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
workspaceRecommendedExtensions
'
,
"
Workspace Recommendations
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
WorkspaceRecommendedExtensionsView
,
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
has
(
'
recommendedExtensions
'
),
ContextKeyExpr
.
has
(
'
nonEmptyWorkspace
'
)),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
has
(
'
recommendedExtensions
'
),
ContextKeyExpr
.
has
(
'
nonEmptyWorkspace
'
)),
weight
:
50
,
canToggleVisibility
:
true
,
order
:
1
...
...
@@ -164,7 +166,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
builtInExtensions
'
,
"
Features
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
BuiltInExtensionsView
,
when
:
ContextKeyExpr
.
has
(
'
searchBuiltInExtensions
'
),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
has
(
'
searchBuiltInExtensions
'
)
),
weight
:
100
,
canToggleVisibility
:
true
};
...
...
@@ -176,7 +178,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
builtInThemesExtensions
'
,
"
Themes
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
BuiltInThemesExtensionsView
,
when
:
ContextKeyExpr
.
has
(
'
searchBuiltInExtensions
'
),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
has
(
'
searchBuiltInExtensions
'
)
),
weight
:
100
,
canToggleVisibility
:
true
};
...
...
@@ -188,7 +190,7 @@ export class ExtensionsViewletViewsContribution implements IWorkbenchContributio
name
:
localize
(
'
builtInBasicsExtensions
'
,
"
Programming Languages
"
),
location
:
ViewLocation
.
Extensions
,
ctor
:
BuiltInBasicsExtensionsView
,
when
:
ContextKeyExpr
.
has
(
'
searchBuiltInExtensions
'
),
when
:
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
donotshowExtensions
'
),
ContextKeyExpr
.
has
(
'
searchBuiltInExtensions
'
)
),
weight
:
100
,
canToggleVisibility
:
true
};
...
...
@@ -392,7 +394,7 @@ export class ExtensionsViewlet extends PersistentViewsViewlet implements IExtens
}
protected
async
updateViews
(
unregisteredViews
:
IViewDescriptor
[]
=
[],
showAll
=
false
):
TPromise
<
ViewsViewletPanel
[]
>
{
const
created
=
await
super
.
updateViews
();
const
created
=
await
super
.
updateViews
(
unregisteredViews
);
const
toShow
=
showAll
?
this
.
views
:
created
;
if
(
toShow
.
length
)
{
await
this
.
progress
(
TPromise
.
join
(
toShow
.
map
(
view
=>
(
<
ExtensionsListView
>
view
).
show
(
this
.
searchBox
.
value
))));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录