Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
92b16d8f
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,体验更适合开发者的 AI 搜索 >>
提交
92b16d8f
编写于
2月 12, 2019
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - polish main.ts
上级
d3b57e3b
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
224 addition
and
199 deletion
+224
-199
src/vs/code/electron-browser/workbench/workbench.js
src/vs/code/electron-browser/workbench/workbench.js
+1
-1
src/vs/workbench/electron-browser/main.contribution.ts
src/vs/workbench/electron-browser/main.contribution.ts
+0
-0
src/vs/workbench/electron-browser/main.ts
src/vs/workbench/electron-browser/main.ts
+204
-183
src/vs/workbench/electron-browser/workbench.ts
src/vs/workbench/electron-browser/workbench.ts
+18
-14
src/vs/workbench/workbench.main.ts
src/vs/workbench/workbench.main.ts
+1
-1
未找到文件。
src/vs/code/electron-browser/workbench/workbench.js
浏览文件 @
92b16d8f
...
...
@@ -27,7 +27,7 @@ bootstrapWindow.load([
perf
.
mark
(
'
main/startup
'
);
// @ts-ignore
return
require
(
'
vs/workbench/electron-browser/main
'
).
startup
(
configuration
);
return
require
(
'
vs/workbench/electron-browser/main
'
).
main
(
configuration
);
});
},
{
removeDeveloperKeybindingsAfterLoad
:
true
,
...
...
src/vs/workbench/electron-browser/
shell
.contribution.ts
→
src/vs/workbench/electron-browser/
main
.contribution.ts
浏览文件 @
92b16d8f
文件已移动
src/vs/workbench/electron-browser/main.ts
浏览文件 @
92b16d8f
此差异已折叠。
点击以展开。
src/vs/workbench/electron-browser/workbench.ts
浏览文件 @
92b16d8f
...
...
@@ -59,7 +59,7 @@ import { ProgressService2 } from 'vs/workbench/services/progress/browser/progres
import
{
TextModelResolverService
}
from
'
vs/workbench/services/textmodelResolver/common/textModelResolverService
'
;
import
{
ITextModelService
}
from
'
vs/editor/common/services/resolverService
'
;
import
{
ServiceCollection
}
from
'
vs/platform/instantiation/common/serviceCollection
'
;
import
{
LifecyclePhase
,
StartupKind
,
ILifecycleService
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
import
{
LifecyclePhase
,
StartupKind
,
ILifecycleService
,
WillShutdownEvent
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
import
{
IWindowService
,
IWindowConfiguration
,
IPath
,
MenuBarVisibility
,
getTitleBarStyle
,
IWindowsService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IStatusbarService
}
from
'
vs/platform/statusbar/common/statusbar
'
;
import
{
IMenuService
,
SyncActionDescriptor
}
from
'
vs/platform/actions/common/actions
'
;
...
...
@@ -146,7 +146,7 @@ import { WorkspaceService, DefaultConfigurationExportHelper } from 'vs/workbench
import
{
JSONEditingService
}
from
'
vs/workbench/services/configuration/node/jsonEditingService
'
;
import
{
WorkspaceEditingService
}
from
'
vs/workbench/services/workspace/node/workspaceEditingService
'
;
import
{
IPCClient
,
getDelayedChannel
}
from
'
vs/base/parts/ipc/node/ipc
'
;
import
{
LogStorageAction
,
StorageService
}
from
'
vs/platform/storage/node/storageService
'
;
import
{
LogStorageAction
}
from
'
vs/platform/storage/node/storageService
'
;
import
{
HashService
}
from
'
vs/workbench/services/hash/node/hashService
'
;
import
{
connect
as
connectNet
}
from
'
vs/base/parts/ipc/node/ipc.net
'
;
import
{
DialogChannel
}
from
'
vs/platform/dialogs/node/dialogIpc
'
;
...
...
@@ -260,6 +260,12 @@ export class Workbench extends Disposable implements IPartService {
private
static
readonly
closeWhenEmptyConfigurationKey
=
'
window.closeWhenEmpty
'
;
private
static
readonly
fontAliasingConfigurationKey
=
'
workbench.fontAliasing
'
;
private
readonly
_onShutdown
=
this
.
_register
(
new
Emitter
<
void
>
());
get
onShutdown
():
Event
<
void
>
{
return
this
.
_onShutdown
.
event
;
}
private
readonly
_onWillShutdown
=
this
.
_register
(
new
Emitter
<
WillShutdownEvent
>
());
get
onWillShutdown
():
Event
<
WillShutdownEvent
>
{
return
this
.
_onWillShutdown
.
event
;
}
_serviceBrand
:
any
;
private
previousErrorValue
:
string
;
...
...
@@ -336,7 +342,7 @@ export class Workbench extends Disposable implements IPartService {
private
mainProcessClient
:
IPCClient
,
@
IInstantiationService
private
readonly
instantiationService
:
IInstantiationService
,
@
IWorkspaceContextService
private
readonly
contextService
:
IWorkspaceContextService
,
@
IStorageService
private
readonly
storageService
:
StorageService
,
@
IStorageService
private
readonly
storageService
:
I
StorageService
,
@
IConfigurationService
private
readonly
configurationService
:
WorkspaceService
,
@
IEnvironmentService
private
readonly
environmentService
:
IEnvironmentService
,
@
ILogService
private
readonly
logService
:
ILogService
,
...
...
@@ -351,10 +357,6 @@ export class Workbench extends Disposable implements IPartService {
(
configuration
.
filesToOpen
&&
configuration
.
filesToOpen
.
length
>
0
)
||
(
configuration
.
filesToDiff
&&
configuration
.
filesToDiff
.
length
>
0
);
// TODO@Ben debt
this
.
_register
(
mainProcessClient
);
this
.
_register
(
logService
);
this
.
registerErrorHandler
();
}
...
...
@@ -410,6 +412,9 @@ export class Workbench extends Disposable implements IPartService {
private
doStartup
():
Promise
<
void
>
{
this
.
workbenchStarted
=
true
;
// Logging
this
.
logService
.
trace
(
'
workbench configuration
'
,
JSON
.
stringify
(
this
.
configuration
));
// ARIA
setARIAContainer
(
document
.
body
);
...
...
@@ -554,8 +559,11 @@ export class Workbench extends Disposable implements IPartService {
serviceCollection
.
set
(
ILifecycleService
,
this
.
lifecycleService
);
this
.
_register
(
this
.
lifecycleService
.
onWillShutdown
(
event
=>
event
.
join
(
this
.
storageService
.
close
())));
this
.
_register
(
this
.
lifecycleService
.
onShutdown
(()
=>
this
.
dispose
()));
this
.
_register
(
this
.
lifecycleService
.
onWillShutdown
(
event
=>
this
.
_onWillShutdown
.
fire
(
event
)));
this
.
_register
(
this
.
lifecycleService
.
onShutdown
(()
=>
{
this
.
_onShutdown
.
fire
();
this
.
dispose
();
}));
// Request Service
serviceCollection
.
set
(
IRequestService
,
new
SyncDescriptor
(
RequestService
,
undefined
,
true
));
...
...
@@ -779,7 +787,7 @@ export class Workbench extends Disposable implements IPartService {
this
.
instantiationService
.
createInstance
(
DefaultConfigurationExportHelper
);
this
.
configurationService
.
acquireInstantiationService
(
this
.
getInstantiationService
()
);
this
.
configurationService
.
acquireInstantiationService
(
this
.
instantiationService
);
}
//#region event handling
...
...
@@ -1547,10 +1555,6 @@ export class Workbench extends Disposable implements IPartService {
registerNotificationCommands
(
this
.
notificationsCenter
,
this
.
notificationsToasts
);
}
getInstantiationService
():
IInstantiationService
{
return
this
.
instantiationService
;
}
private
saveState
(
e
:
IWillSaveStateEvent
):
void
{
if
(
this
.
zenMode
.
active
)
{
this
.
storageService
.
store
(
Workbench
.
zenModeActiveStorageKey
,
true
,
StorageScope
.
WORKSPACE
);
...
...
src/vs/workbench/workbench.main.ts
浏览文件 @
92b16d8f
...
...
@@ -9,7 +9,7 @@ import 'vs/editor/editor.all';
import
'
vs/workbench/api/electron-browser/extensionHost.contribution
'
;
import
'
vs/workbench/electron-browser/
shell
.contribution
'
;
import
'
vs/workbench/electron-browser/
main
.contribution
'
;
import
'
vs/workbench/browser/workbench.contribution
'
;
import
'
vs/workbench/electron-browser/main
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录