Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0377434a
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,发现更多精彩内容 >>
提交
0377434a
编写于
3月 10, 2016
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
extensions status bar: bring back icon
上级
cb97ad61
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
16 deletion
+21
-16
src/vs/workbench/parts/extensions/electron-browser/extensions.contribution.ts
...ts/extensions/electron-browser/extensions.contribution.ts
+2
-2
src/vs/workbench/parts/extensions/electron-browser/extensionsWidgets.ts
...ch/parts/extensions/electron-browser/extensionsWidgets.ts
+0
-2
src/vs/workbench/parts/extensions/electron-browser/media/extensions-status.svg
...s/extensions/electron-browser/media/extensions-status.svg
+12
-0
src/vs/workbench/parts/extensions/electron-browser/media/extensions.css
...ch/parts/extensions/electron-browser/media/extensions.css
+7
-12
未找到文件。
src/vs/workbench/parts/extensions/electron-browser/extensions.contribution.ts
浏览文件 @
0377434a
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
'
vs/css!./extensions
'
;
import
'
vs/css!./
media/
extensions
'
;
import
platform
=
require
(
'
vs/platform/platform
'
);
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
statusbar
=
require
(
'
vs/workbench/browser/parts/statusbar/statusbar
'
);
...
...
@@ -25,5 +25,5 @@ registerSingleton(IGalleryService, GalleryService);
(
<
statusbar
.
IStatusbarRegistry
>
platform
.
Registry
.
as
(
statusbar
.
Extensions
.
Statusbar
)).
registerStatusbarItem
(
new
statusbar
.
StatusbarItemDescriptor
(
ExtensionsStatusbarItem
,
statusbar
.
StatusbarAlignment
.
LEFT
,
10
/* Low Priority */
10
000
));
src/vs/workbench/parts/extensions/electron-browser/extensionsWidgets.ts
浏览文件 @
0377434a
...
...
@@ -39,8 +39,6 @@ export class ExtensionsStatusbarItem implements statusbar.IStatusbarItem {
this
.
domNode
=
append
(
container
,
$
(
'
a.extensions-statusbar
'
));
this
.
domNode
.
onclick
=
()
=>
this
.
onClick
();
append
(
this
.
domNode
,
$
(
'
span.octicon.octicon-package
'
));
_
(
this
.
extensionService
.
onReady
()).
done
(()
=>
{
const
status
=
this
.
extensionService
.
getExtensionsStatus
();
const
errors
=
Object
.
keys
(
status
)
...
...
src/vs/workbench/parts/extensions/electron-browser/media/extensions-status.svg
0 → 100644
浏览文件 @
0377434a
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 60 60"
style=
"enable-background:new 0 0 60 60;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill:#FFFFFF;}
</style>
<g
id=
"iconBg"
>
<path
class=
"st0"
d=
"M12.9,47.1H30V60H0V0h25.7v12.9H12.9V47.1z M17.1,42.9h25.7V17.1H17.1V42.9z M30,0v12.9h8.6V8.6h12.9v12.9
h-4.3V30H60V0H30z M47.1,47.1H34.3V60H60V34.3H47.1V47.1z"
/>
</g>
</svg>
src/vs/workbench/parts/extensions/electron-browser/extensions.css
→
src/vs/workbench/parts/extensions/electron-browser/
media/
extensions.css
浏览文件 @
0377434a
...
...
@@ -135,26 +135,21 @@
/* Status bar */
.monaco-shell
.extensions-statusbar
{
padding
:
0
4px
;
}
.monaco-shell
.extensions-statusbar
span
:not
(
:first-child
)
{
padding-left
:
4px
;
}
.monaco-shell
.extensions-statusbar
>
.octicon
{
position
:
relative
;
font-size
:
14px
;
padding
:
0
5px
;
width
:
14px
;
background
:
url('extensions-status.svg')
center
center
no-repeat
;
background-size
:
14px
;
}
.monaco-shell
.extensions-statusbar.has-errors
>
.octicon
::after
{
.monaco-shell
.extensions-statusbar.has-errors
::after
{
content
:
''
;
width
:
6px
;
height
:
6px
;
background-color
:
#CC6633
;
position
:
absolute
;
top
:
0
;
right
:
0
;
top
:
2px
;
right
:
3px
;
border-radius
:
10px
;
border
:
1px
solid
white
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录