Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
6cd919a5
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 搜索 >>
提交
6cd919a5
编写于
3月 21, 2019
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move remote services to start up
上级
7989e693
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
10 deletion
+13
-10
src/vs/workbench/electron-browser/main.ts
src/vs/workbench/electron-browser/main.ts
+10
-0
src/vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl.ts
...ervices/remote/electron-browser/remoteAgentServiceImpl.ts
+3
-6
src/vs/workbench/workbench.main.ts
src/vs/workbench/workbench.main.ts
+0
-3
src/vs/workbench/workbench.nodeless.main.ts
src/vs/workbench/workbench.nodeless.main.ts
+0
-1
未找到文件。
src/vs/workbench/electron-browser/main.ts
浏览文件 @
6cd919a5
...
...
@@ -39,6 +39,10 @@ import { IStorageService } from 'vs/platform/storage/common/storage';
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
registerWindowDriver
}
from
'
vs/platform/driver/electron-browser/driver
'
;
import
{
IMainProcessService
,
MainProcessService
}
from
'
vs/platform/ipc/electron-browser/mainProcessService
'
;
import
{
RemoteAuthorityResolverService
}
from
'
vs/platform/remote/electron-browser/remoteAuthorityResolverService
'
;
import
{
IRemoteAuthorityResolverService
}
from
'
vs/platform/remote/common/remoteAuthorityResolver
'
;
import
{
RemoteAgentService
}
from
'
vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl
'
;
import
{
IRemoteAgentService
}
from
'
vs/workbench/services/remote/common/remoteAgentService
'
;
class
CodeRendererMain
extends
Disposable
{
...
...
@@ -168,6 +172,12 @@ class CodeRendererMain extends Disposable {
const
logService
=
this
.
_register
(
this
.
createLogService
(
mainProcessService
,
environmentService
));
serviceCollection
.
set
(
ILogService
,
logService
);
// Remote
const
remoteAuthorityResolverService
=
new
RemoteAuthorityResolverService
();
serviceCollection
.
set
(
IRemoteAuthorityResolverService
,
remoteAuthorityResolverService
);
const
remoteAgentService
=
new
RemoteAgentService
(
this
.
configuration
,
environmentService
,
remoteAuthorityResolverService
);
serviceCollection
.
set
(
IRemoteAgentService
,
remoteAgentService
);
return
this
.
resolveWorkspaceInitializationPayload
(
environmentService
).
then
(
payload
=>
Promise
.
all
([
this
.
createWorkspaceService
(
payload
,
environmentService
,
logService
).
then
(
service
=>
{
...
...
src/vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl.ts
浏览文件 @
6cd919a5
...
...
@@ -8,10 +8,9 @@ import { getDelayedChannel } from 'vs/base/parts/ipc/node/ipc';
import
{
Client
}
from
'
vs/base/parts/ipc/node/ipc.net
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
connectRemoteAgentManagement
}
from
'
vs/platform/remote/node/remoteAgentConnection
'
;
import
{
IWindow
Service
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IWindow
Configuration
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IRemoteAgentConnection
,
IRemoteAgentService
}
from
'
vs/workbench/services/remote/common/remoteAgentService
'
;
import
{
IRemoteAuthorityResolverService
}
from
'
vs/platform/remote/common/remoteAuthorityResolver
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
LifecyclePhase
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
import
{
DialogChannel
}
from
'
vs/platform/dialogs/node/dialogIpc
'
;
import
{
DownloadServiceChannel
}
from
'
vs/platform/download/node/downloadIpc
'
;
...
...
@@ -34,12 +33,11 @@ export class RemoteAgentService extends Disposable implements IRemoteAgentServic
private
_environment
:
Promise
<
IRemoteAgentEnvironment
|
null
>
|
null
;
constructor
(
@
IWindowService
windowService
:
IWindowService
,
{
remoteAuthority
}:
IWindowConfiguration
,
@
IEnvironmentService
private
readonly
_environmentService
:
IEnvironmentService
,
@
IRemoteAuthorityResolverService
remoteAuthorityResolverService
:
IRemoteAuthorityResolverService
)
{
super
();
const
{
remoteAuthority
}
=
windowService
.
getConfiguration
();
if
(
remoteAuthority
)
{
this
.
_connection
=
this
.
_register
(
new
RemoteAgentConnection
(
remoteAuthority
,
_environmentService
,
remoteAuthorityResolverService
));
}
...
...
@@ -132,5 +130,4 @@ class RemoteConnectionFailureNotificationContribution implements IWorkbenchContr
const
workbenchRegistry
=
Registry
.
as
<
IWorkbenchContributionsRegistry
>
(
Extensions
.
Workbench
);
workbenchRegistry
.
registerWorkbenchContribution
(
RemoteChannelsContribution
,
LifecyclePhase
.
Ready
);
workbenchRegistry
.
registerWorkbenchContribution
(
RemoteConnectionFailureNotificationContribution
,
LifecyclePhase
.
Ready
);
registerSingleton
(
IRemoteAgentService
,
RemoteAgentService
);
\ No newline at end of file
workbenchRegistry
.
registerWorkbenchContribution
(
RemoteConnectionFailureNotificationContribution
,
LifecyclePhase
.
Ready
);
\ No newline at end of file
src/vs/workbench/workbench.main.ts
浏览文件 @
6cd919a5
...
...
@@ -74,8 +74,6 @@ import { ILifecycleService } from 'vs/platform/lifecycle/common/lifecycle';
import
{
ILocalizationsService
}
from
'
vs/platform/localizations/common/localizations
'
;
import
{
LocalizationsService
}
from
'
vs/platform/localizations/electron-browser/localizationsService
'
;
import
{
ISharedProcessService
,
SharedProcessService
}
from
'
vs/platform/ipc/electron-browser/sharedProcessService
'
;
import
{
RemoteAuthorityResolverService
}
from
'
vs/platform/remote/electron-browser/remoteAuthorityResolverService
'
;
import
{
IRemoteAuthorityResolverService
}
from
'
vs/platform/remote/common/remoteAuthorityResolver
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
TelemetryService
}
from
'
vs/platform/telemetry/electron-browser/telemetryService
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/product
'
;
...
...
@@ -154,7 +152,6 @@ registerSingleton(IRequestService, RequestService, true);
registerSingleton
(
ILifecycleService
,
LifecycleService
);
registerSingleton
(
ILocalizationsService
,
LocalizationsService
);
registerSingleton
(
ISharedProcessService
,
SharedProcessService
,
true
);
registerSingleton
(
IRemoteAuthorityResolverService
,
RemoteAuthorityResolverService
,
true
);
registerSingleton
(
ITelemetryService
,
TelemetryService
);
registerSingleton
(
IProductService
,
ProductService
,
true
);
registerSingleton
(
IWindowsService
,
WindowsService
);
...
...
src/vs/workbench/workbench.nodeless.main.ts
浏览文件 @
6cd919a5
...
...
@@ -159,7 +159,6 @@ registerSingleton(IContextViewService, ContextViewService, true);
// registerSingleton(ILifecycleService, LifecycleService);
// registerSingleton(ILocalizationsService, LocalizationsService);
// registerSingleton(ISharedProcessService, SharedProcessService, true);
// registerSingleton(IRemoteAuthorityResolverService, RemoteAuthorityResolverService, true);
// registerSingleton(ITelemetryService, TelemetryService);
// registerSingleton(IProductService, ProductService, true);
// registerSingleton(IWindowsService, WindowsService);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录