Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2748fc81
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,发现更多精彩内容 >>
提交
2748fc81
编写于
11月 11, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into tyriar/hot_exit/14068_load_backups_on_main_process
上级
1558036e
d9d5c198
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
7 deletion
+12
-7
src/vs/code/electron-main/menus.ts
src/vs/code/electron-main/menus.ts
+1
-0
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+7
-0
src/vs/workbench/browser/layout.ts
src/vs/workbench/browser/layout.ts
+3
-4
src/vs/workbench/browser/parts/activitybar/media/activityaction.css
...kbench/browser/parts/activitybar/media/activityaction.css
+1
-2
src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css
...bench/browser/parts/activitybar/media/activitybarpart.css
+0
-1
未找到文件。
src/vs/code/electron-main/menus.ts
浏览文件 @
2748fc81
...
...
@@ -92,6 +92,7 @@ export class VSCodeMenu {
});
// Listen to some events from window service
this
.
windowsService
.
onPathOpen
(
path
=>
this
.
updateMenu
());
this
.
windowsService
.
onRecentPathsChange
(
paths
=>
this
.
updateMenu
());
this
.
windowsService
.
onWindowClose
(
_
=>
this
.
onClose
(
this
.
windowsService
.
getWindowCount
()));
...
...
src/vs/code/electron-main/windows.ts
浏览文件 @
2748fc81
...
...
@@ -90,6 +90,7 @@ export interface IWindowsMainService {
// events
onWindowReady
:
CommonEvent
<
VSCodeWindow
>
;
onWindowClose
:
CommonEvent
<
number
>
;
onPathOpen
:
CommonEvent
<
IPath
>
;
onRecentPathsChange
:
CommonEvent
<
void
>
;
// methods
...
...
@@ -143,6 +144,9 @@ export class WindowsManager implements IWindowsMainService {
private
_onWindowClose
=
new
Emitter
<
number
>
();
onWindowClose
:
CommonEvent
<
number
>
=
this
.
_onWindowClose
.
event
;
private
_onPathOpen
=
new
Emitter
<
IPath
>
();
onPathOpen
:
CommonEvent
<
IPath
>
=
this
.
_onPathOpen
.
event
;
constructor
(
@
IInstantiationService
private
instantiationService
:
IInstantiationService
,
@
ILogService
private
logService
:
ILogService
,
...
...
@@ -509,6 +513,9 @@ export class WindowsManager implements IWindowsMainService {
// Register new paths for backup
this
.
backupService
.
pushWorkspaceBackupPathsSync
(
iPathsToOpen
.
filter
(
p
=>
p
.
workspacePath
).
map
(
p
=>
Uri
.
file
(
p
.
workspacePath
)));
// Emit events
iPathsToOpen
.
forEach
(
iPath
=>
this
.
_onPathOpen
.
fire
(
iPath
));
return
arrays
.
distinct
(
usedWindows
);
}
...
...
src/vs/workbench/browser/layout.ts
浏览文件 @
2748fc81
...
...
@@ -91,7 +91,7 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
@
IEditorGroupService
private
editorGroupService
:
IEditorGroupService
,
@
IPartService
private
partService
:
IPartService
,
@
IViewletService
private
viewletService
:
IViewletService
,
@
IThemeService
themeService
:
IThemeService
,
@
IThemeService
themeService
:
IThemeService
)
{
this
.
parent
=
parent
;
this
.
workbenchContainer
=
workbenchContainer
;
...
...
@@ -358,7 +358,7 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
let
sidebarSize
=
new
Dimension
(
sidebarWidth
,
this
.
sidebarHeight
);
// Activity Bar
this
.
activitybarWidth
=
isActivityBarHidden
?
0
:
this
.
initialComputedStyles
.
activitybar
.
width
/
getZoomFactor
();
// adjust for zoom prevention
this
.
activitybarWidth
=
isActivityBarHidden
?
0
:
this
.
computedStyles
.
activitybar
.
width
;
let
activityBarSize
=
new
Dimension
(
this
.
activitybarWidth
,
sidebarSize
.
height
);
// Panel part
...
...
@@ -478,8 +478,7 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
}
// Activity Bar Part
this
.
activitybar
.
getContainer
().
size
(
activityBarSize
.
width
,
activityBarSize
.
height
);
this
.
activitybar
.
getContainer
().
size
(
null
,
activityBarSize
.
height
);
if
(
sidebarPosition
===
Position
.
LEFT
)
{
this
.
activitybar
.
getContainer
().
getHTMLElement
().
style
.
right
=
''
;
this
.
activitybar
.
getContainer
().
position
(
this
.
titlebarHeight
,
null
,
0
,
0
);
...
...
src/vs/workbench/browser/parts/activitybar/media/activityaction.css
浏览文件 @
2748fc81
...
...
@@ -17,13 +17,12 @@
margin-right
:
0
;
padding
:
0
0
0
50px
;
box-sizing
:
border-box
;
background-position
:
center
center
;
background-position
:
9px
center
;
background-repeat
:
no-repeat
;
opacity
:
0.6
;
font-size
:
15px
;
color
:
white
;
text-shadow
:
0
1px
0
rgba
(
0
,
0
,
0
,
0.8
);
zoom
:
reset
;
/* prevent zooming */
}
.monaco-workbench
>
.activitybar
>
.content
.monaco-action-bar
.action-item
.action-label
:focus:before
{
...
...
src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css
浏览文件 @
2748fc81
...
...
@@ -14,7 +14,6 @@
.monaco-workbench
>
.activitybar
>
.content
.monaco-action-bar
{
text-align
:
left
;
background-color
:
inherit
;
zoom
:
reset
;
/* prevent zooming */
}
.vs
.monaco-workbench
>
.activitybar
>
.content
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录