Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0a92f93a
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,发现更多精彩内容 >>
提交
0a92f93a
编写于
4月 20, 2020
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
view: use Codicon
上级
1b211553
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
6 deletion
+10
-6
src/vs/workbench/contrib/output/browser/output.contribution.ts
...s/workbench/contrib/output/browser/output.contribution.ts
+2
-1
src/vs/workbench/contrib/scm/browser/mainPane.ts
src/vs/workbench/contrib/scm/browser/mainPane.ts
+2
-2
src/vs/workbench/contrib/scm/browser/scm.contribution.ts
src/vs/workbench/contrib/scm/browser/scm.contribution.ts
+2
-1
src/vs/workbench/contrib/scm/browser/scmViewlet.ts
src/vs/workbench/contrib/scm/browser/scmViewlet.ts
+2
-1
src/vs/workbench/contrib/userDataSync/browser/userDataSyncView.ts
...orkbench/contrib/userDataSync/browser/userDataSyncView.ts
+2
-1
未找到文件。
src/vs/workbench/contrib/output/browser/output.contribution.ts
浏览文件 @
0a92f93a
...
...
@@ -32,6 +32,7 @@ import { assertIsDefined } from 'vs/base/common/types';
import
{
IWorkbenchLayoutService
}
from
'
vs/workbench/services/layout/browser/layoutService
'
;
import
{
ContextKeyEqualsExpr
,
ContextKeyExpr
,
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
ToggleViewAction
}
from
'
vs/workbench/browser/actions/layoutActions
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
// Register Service
registerSingleton
(
IOutputService
,
OutputService
);
...
...
@@ -70,7 +71,7 @@ const VIEW_CONTAINER: ViewContainer = Registry.as<IViewContainersRegistry>(ViewC
Registry
.
as
<
IViewsRegistry
>
(
ViewContainerExtensions
.
ViewsRegistry
).
registerViews
([{
id
:
OUTPUT_VIEW_ID
,
name
:
nls
.
localize
(
'
output
'
,
"
Output
"
),
containerIcon
:
'
codicon-output
'
,
containerIcon
:
Codicon
.
output
.
classNames
,
canMoveView
:
true
,
canToggleVisibility
:
false
,
ctorDescriptor
:
new
SyncDescriptor
(
OutputViewPane
),
...
...
src/vs/workbench/contrib/scm/browser/mainPane.ts
浏览文件 @
0a92f93a
...
...
@@ -25,7 +25,7 @@ import { ActionBar, ActionViewItem } from 'vs/base/browser/ui/actionbar/actionba
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
attachBadgeStyler
}
from
'
vs/platform/theme/common/styler
'
;
import
{
Command
}
from
'
vs/editor/common/modes
'
;
import
{
renderCodicons
}
from
'
vs/base/common/codicons
'
;
import
{
renderCodicons
,
Codicon
}
from
'
vs/base/common/codicons
'
;
import
{
escape
}
from
'
vs/base/common/strings
'
;
import
{
WorkbenchList
}
from
'
vs/platform/list/browser/listService
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
...
...
@@ -334,7 +334,7 @@ export class MainPaneDescriptor implements IViewDescriptor {
readonly
id
=
MainPane
.
ID
;
readonly
name
=
MainPane
.
TITLE
;
readonly
containerIcon
=
'
codicon-source-control
'
;
readonly
containerIcon
=
Codicon
.
sourceControl
.
classNames
;
readonly
ctorDescriptor
:
SyncDescriptor
<
MainPane
>
;
readonly
canToggleVisibility
=
true
;
readonly
hideByDefault
=
false
;
...
...
src/vs/workbench/contrib/scm/browser/scm.contribution.ts
浏览文件 @
0a92f93a
...
...
@@ -27,6 +27,7 @@ import { IViewContainersRegistry, ViewContainerLocation, Extensions as ViewConta
import
{
SCMViewPaneContainer
}
from
'
vs/workbench/contrib/scm/browser/scmViewlet
'
;
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
ModesRegistry
}
from
'
vs/editor/common/modes/modesRegistry
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
class
OpenSCMViewletAction
extends
ShowViewletAction
{
...
...
@@ -51,7 +52,7 @@ Registry.as<IViewContainersRegistry>(ViewContainerExtensions.ViewContainersRegis
id
:
VIEWLET_ID
,
name
:
localize
(
'
source control
'
,
"
Source Control
"
),
ctorDescriptor
:
new
SyncDescriptor
(
SCMViewPaneContainer
),
icon
:
'
codicon-source-control
'
,
icon
:
Codicon
.
sourceControl
.
classNames
,
order
:
2
},
ViewContainerLocation
.
Sidebar
);
...
...
src/vs/workbench/contrib/scm/browser/scmViewlet.ts
浏览文件 @
0a92f93a
...
...
@@ -34,6 +34,7 @@ import { debounce } from 'vs/base/common/decorators';
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
IOpenerService
}
from
'
vs/platform/opener/common/opener
'
;
import
{
addClass
}
from
'
vs/base/browser/dom
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
export
interface
ISpliceEvent
<
T
>
{
index
:
number
;
...
...
@@ -69,7 +70,7 @@ export class EmptyPane extends ViewPane {
export
class
EmptyPaneDescriptor
implements
IViewDescriptor
{
readonly
id
=
EmptyPane
.
ID
;
readonly
name
=
EmptyPane
.
TITLE
;
readonly
containerIcon
=
'
codicon-source-control
'
;
readonly
containerIcon
=
Codicon
.
sourceControl
.
classNames
;
readonly
ctorDescriptor
=
new
SyncDescriptor
(
EmptyPane
);
readonly
canToggleVisibility
=
true
;
readonly
hideByDefault
=
false
;
...
...
src/vs/workbench/contrib/userDataSync/browser/userDataSyncView.ts
浏览文件 @
0a92f93a
...
...
@@ -19,6 +19,7 @@ import { FolderThemeIcon } from 'vs/platform/theme/common/themeService';
import
{
fromNow
}
from
'
vs/base/common/date
'
;
import
{
pad
,
uppercaseFirstLetter
}
from
'
vs/base/common/strings
'
;
import
{
ViewPaneContainer
}
from
'
vs/workbench/browser/parts/views/viewPaneContainer
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
export
class
UserDataSyncViewContribution
implements
IWorkbenchContribution
{
...
...
@@ -41,7 +42,7 @@ export class UserDataSyncViewContribution implements IWorkbenchContribution {
ViewPaneContainer
,
[
'
workbench.view.sync
'
,
`workbench.view.sync.state`
,
{
mergeViewWithContainerWhenSingleView
:
true
}]
),
icon
:
'
codicon-sync
'
,
icon
:
Codicon
.
sync
.
classNames
,
hideIfEmpty
:
true
,
},
ViewContainerLocation
.
Sidebar
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录