Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2c2750be
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 搜索 >>
提交
2c2750be
编写于
5月 23, 2020
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sandbox - get rid of IMainProcessService2
上级
a5554716
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
61 addition
and
58 deletion
+61
-58
src/vs/code/electron-browser/issue/issueReporterMain.ts
src/vs/code/electron-browser/issue/issueReporterMain.ts
+2
-1
src/vs/code/electron-browser/sharedProcess/sharedProcessMain.ts
.../code/electron-browser/sharedProcess/sharedProcessMain.ts
+8
-3
src/vs/platform/driver/electron-browser/driver.ts
src/vs/platform/driver/electron-browser/driver.ts
+2
-2
src/vs/platform/ipc/common/mainProcessService.ts
src/vs/platform/ipc/common/mainProcessService.ts
+20
-0
src/vs/platform/ipc/electron-browser/mainProcessService.ts
src/vs/platform/ipc/electron-browser/mainProcessService.ts
+2
-13
src/vs/platform/ipc/electron-sandbox/mainProcessService.ts
src/vs/platform/ipc/electron-sandbox/mainProcessService.ts
+2
-15
src/vs/workbench/contrib/debug/electron-sandbox/extensionHostDebugService.ts
...ntrib/debug/electron-sandbox/extensionHostDebugService.ts
+2
-2
src/vs/workbench/electron-browser/desktop.main.ts
src/vs/workbench/electron-browser/desktop.main.ts
+5
-4
src/vs/workbench/services/electron/electron-browser/electronService.ts
...nch/services/electron/electron-browser/electronService.ts
+2
-2
src/vs/workbench/services/issue/electron-sandbox/issueService.ts
...workbench/services/issue/electron-sandbox/issueService.ts
+2
-2
src/vs/workbench/services/log/electron-browser/logService.ts
src/vs/workbench/services/log/electron-browser/logService.ts
+2
-2
src/vs/workbench/services/menubar/electron-sandbox/menubarService.ts
...bench/services/menubar/electron-sandbox/menubarService.ts
+2
-2
src/vs/workbench/services/sharedProcess/electron-browser/sharedProcessService.ts
...es/sharedProcess/electron-browser/sharedProcessService.ts
+2
-2
src/vs/workbench/services/update/electron-sandbox/updateService.ts
...rkbench/services/update/electron-sandbox/updateService.ts
+2
-2
src/vs/workbench/services/url/electron-browser/urlService.ts
src/vs/workbench/services/url/electron-browser/urlService.ts
+2
-2
src/vs/workbench/services/userDataSync/electron-sandbox/storageKeysSyncRegistryService.ts
...taSync/electron-sandbox/storageKeysSyncRegistryService.ts
+2
-2
src/vs/workbench/services/workspaces/electron-sandbox/workspacesService.ts
...services/workspaces/electron-sandbox/workspacesService.ts
+2
-2
未找到文件。
src/vs/code/electron-browser/issue/issueReporterMain.ts
浏览文件 @
2c2750be
...
...
@@ -26,7 +26,8 @@ import { isRemoteDiagnosticError, SystemInfo } from 'vs/platform/diagnostics/com
import
{
EnvironmentService
,
INativeEnvironmentService
}
from
'
vs/platform/environment/node/environmentService
'
;
import
{
InstantiationService
}
from
'
vs/platform/instantiation/common/instantiationService
'
;
import
{
ServiceCollection
}
from
'
vs/platform/instantiation/common/serviceCollection
'
;
import
{
IMainProcessService
,
MainProcessService
}
from
'
vs/platform/ipc/electron-browser/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common/mainProcessService
'
;
import
{
MainProcessService
}
from
'
vs/platform/ipc/electron-browser/mainProcessService
'
;
import
{
ISharedProcessService
}
from
'
vs/platform/ipc/electron-browser/sharedProcessService
'
;
import
{
ISettingsSearchIssueReporterData
,
IssueReporterData
,
IssueReporterExtensionData
,
IssueReporterFeatures
,
IssueReporterStyles
,
IssueType
}
from
'
vs/platform/issue/common/issue
'
;
import
{
getLogLevel
,
ILogService
}
from
'
vs/platform/log/common/log
'
;
...
...
src/vs/code/electron-browser/sharedProcess/sharedProcessMain.ts
浏览文件 @
2c2750be
...
...
@@ -40,7 +40,7 @@ import { NodeCachedDataCleaner } from 'vs/code/electron-browser/sharedProcess/co
import
{
LanguagePackCachedDataCleaner
}
from
'
vs/code/electron-browser/sharedProcess/contrib/languagePackCachedDataCleaner
'
;
import
{
StorageDataCleaner
}
from
'
vs/code/electron-browser/sharedProcess/contrib/storageDataCleaner
'
;
import
{
LogsDataCleaner
}
from
'
vs/code/electron-browser/sharedProcess/contrib/logsDataCleaner
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-browser
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
SpdLogService
}
from
'
vs/platform/log/node/spdlogService
'
;
import
{
DiagnosticsService
,
IDiagnosticsService
}
from
'
vs/platform/diagnostics/node/diagnosticsService
'
;
import
{
DiagnosticsChannel
}
from
'
vs/platform/diagnostics/node/diagnosticsIpc
'
;
...
...
@@ -89,7 +89,12 @@ interface ISharedProcessInitData {
const
eventPrefix
=
'
monacoworkbench
'
;
class
MainProcessService
implements
IMainProcessService
{
constructor
(
private
server
:
Server
,
private
mainRouter
:
StaticRouter
)
{
}
constructor
(
public
readonly
windowId
:
number
,
private
server
:
Server
,
private
mainRouter
:
StaticRouter
)
{
}
_serviceBrand
:
undefined
;
...
...
@@ -121,7 +126,7 @@ async function main(server: Server, initData: ISharedProcessInitData, configurat
disposables
.
add
(
logService
);
logService
.
info
(
'
main
'
,
JSON
.
stringify
(
configuration
));
const
mainProcessService
=
new
MainProcessService
(
server
,
mainRouter
);
const
mainProcessService
=
new
MainProcessService
(
configuration
.
windowId
,
server
,
mainRouter
);
services
.
set
(
IMainProcessService
,
mainProcessService
);
// Files
...
...
src/vs/platform/driver/electron-browser/driver.ts
浏览文件 @
2c2750be
...
...
@@ -6,7 +6,7 @@
import
{
IDisposable
,
toDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
WindowDriverChannel
,
WindowDriverRegistryChannelClient
}
from
'
vs/platform/driver/node/driver
'
;
import
{
IInstantiationService
,
ServicesAccessor
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
*
as
electron
from
'
electron
'
;
import
{
timeout
}
from
'
vs/base/common/async
'
;
import
{
BaseWindowDriver
}
from
'
vs/platform/driver/browser/baseDriver
'
;
...
...
@@ -47,7 +47,7 @@ class WindowDriver extends BaseWindowDriver {
export
async
function
registerWindowDriver
(
accessor
:
ServicesAccessor
,
windowId
:
number
):
Promise
<
IDisposable
>
{
const
instantiationService
=
accessor
.
get
(
IInstantiationService
);
const
mainProcessService
=
accessor
.
get
(
IMainProcessService
2
);
const
mainProcessService
=
accessor
.
get
(
IMainProcessService
);
const
windowDriver
=
instantiationService
.
createInstance
(
WindowDriver
);
const
windowDriverChannel
=
new
WindowDriverChannel
(
windowDriver
);
...
...
src/vs/platform/ipc/common/mainProcessService.ts
0 → 100644
浏览文件 @
2c2750be
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IChannel
,
IServerChannel
}
from
'
vs/base/parts/ipc/common/ipc
'
;
export
const
IMainProcessService
=
createDecorator
<
IMainProcessService
>
(
'
mainProcessService
'
);
export
interface
IMainProcessService
{
_serviceBrand
:
undefined
;
readonly
windowId
:
number
;
getChannel
(
channelName
:
string
):
IChannel
;
registerChannel
(
channelName
:
string
,
channel
:
IServerChannel
<
string
>
):
void
;
}
src/vs/platform/ipc/electron-browser/mainProcessService.ts
浏览文件 @
2c2750be
...
...
@@ -3,21 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IChannel
,
IServerChannel
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
Client
}
from
'
vs/base/parts/ipc/electron-browser/ipc.electron-browser
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
export
const
IMainProcessService
=
createDecorator
<
IMainProcessService
>
(
'
mainProcessService
'
);
export
interface
IMainProcessService
{
_serviceBrand
:
undefined
;
getChannel
(
channelName
:
string
):
IChannel
;
registerChannel
(
channelName
:
string
,
channel
:
IServerChannel
<
string
>
):
void
;
}
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common/mainProcessService
'
;
export
class
MainProcessService
extends
Disposable
implements
IMainProcessService
{
...
...
@@ -26,7 +15,7 @@ export class MainProcessService extends Disposable implements IMainProcessServic
private
mainProcessConnection
:
Client
;
constructor
(
windowId
:
number
public
readonly
windowId
:
number
)
{
super
();
...
...
src/vs/platform/ipc/electron-sandbox/mainProcessService.ts
浏览文件 @
2c2750be
...
...
@@ -3,25 +3,12 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common/mainProcessService
'
;
import
{
IChannel
,
IServerChannel
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
Client
}
from
'
vs/base/parts/ipc/electron-sandbox/ipc.electron-sandbox
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
export
const
IMainProcessService2
=
createDecorator
<
IMainProcessService2
>
(
'
mainProcessService2
'
);
export
interface
IMainProcessService2
{
_serviceBrand
:
undefined
;
readonly
windowId
:
number
;
getChannel
(
channelName
:
string
):
IChannel
;
registerChannel
(
channelName
:
string
,
channel
:
IServerChannel
<
string
>
):
void
;
}
export
class
MainProcessService2
extends
Disposable
implements
IMainProcessService2
{
export
class
MainProcessService
extends
Disposable
implements
IMainProcessService
{
_serviceBrand
:
undefined
;
...
...
src/vs/workbench/contrib/debug/electron-sandbox/extensionHostDebugService.ts
浏览文件 @
2c2750be
...
...
@@ -5,13 +5,13 @@
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IExtensionHostDebugService
}
from
'
vs/platform/debug/common/extensionHostDebug
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
ExtensionHostDebugChannelClient
,
ExtensionHostDebugBroadcastChannel
}
from
'
vs/platform/debug/common/extensionHostDebugIpc
'
;
export
class
ExtensionHostDebugService
extends
ExtensionHostDebugChannelClient
{
constructor
(
@
IMainProcessService
2
readonly
mainProcessService
:
IMainProcessService2
@
IMainProcessService
readonly
mainProcessService
:
IMainProcessService
)
{
super
(
mainProcessService
.
getChannel
(
ExtensionHostDebugBroadcastChannel
.
ChannelName
));
}
...
...
src/vs/workbench/electron-browser/desktop.main.ts
浏览文件 @
2c2750be
...
...
@@ -30,7 +30,8 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
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
{
IMainProcessService2
,
MainProcessService2
}
from
'
vs/platform/ipc/electron-sandbox/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common/mainProcessService
'
;
import
{
MainProcessService
}
from
'
vs/platform/ipc/electron-sandbox/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
'
;
...
...
@@ -170,8 +171,8 @@ class DesktopMain extends Disposable {
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// Main Process
const
mainProcessService
=
this
.
_register
(
new
MainProcessService
2
(
this
.
configuration
.
windowId
));
serviceCollection
.
set
(
IMainProcessService
2
,
mainProcessService
);
const
mainProcessService
=
this
.
_register
(
new
MainProcessService
(
this
.
configuration
.
windowId
));
serviceCollection
.
set
(
IMainProcessService
,
mainProcessService
);
// Environment
serviceCollection
.
set
(
IWorkbenchEnvironmentService
,
this
.
environmentService
);
...
...
@@ -297,7 +298,7 @@ class DesktopMain extends Disposable {
}
}
private
async
createStorageService
(
payload
:
IWorkspaceInitializationPayload
,
logService
:
ILogService
,
mainProcessService
:
IMainProcessService
2
):
Promise
<
NativeStorageService
>
{
private
async
createStorageService
(
payload
:
IWorkspaceInitializationPayload
,
logService
:
ILogService
,
mainProcessService
:
IMainProcessService
):
Promise
<
NativeStorageService
>
{
const
globalStorageDatabase
=
new
GlobalStorageDatabaseChannelClient
(
mainProcessService
.
getChannel
(
'
storage
'
));
const
storageService
=
new
NativeStorageService
(
globalStorageDatabase
,
logService
,
this
.
environmentService
);
...
...
src/vs/workbench/services/electron/electron-browser/electronService.ts
浏览文件 @
2c2750be
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IElectronService
}
from
'
vs/platform/electron/node/electron
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
INativeWorkbenchEnvironmentService
}
from
'
vs/workbench/services/environment/electron-browser/environmentService
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
...
...
@@ -15,7 +15,7 @@ export class ElectronService {
_serviceBrand
:
undefined
;
constructor
(
@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
,
@
IMainProcessService
mainProcessService
:
IMainProcessService
,
@
IWorkbenchEnvironmentService
environmentService
:
INativeWorkbenchEnvironmentService
)
{
return
createChannelSender
<
IElectronService
>
(
mainProcessService
.
getChannel
(
'
electron
'
),
{
context
:
environmentService
.
configuration
.
windowId
});
...
...
src/vs/workbench/services/issue/electron-sandbox/issueService.ts
浏览文件 @
2c2750be
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IIssueService
}
from
'
vs/platform/issue/common/issue
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
...
...
@@ -12,7 +12,7 @@ export class IssueService {
_serviceBrand
:
undefined
;
constructor
(@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
)
{
constructor
(@
IMainProcessService
mainProcessService
:
IMainProcessService
)
{
return
createChannelSender
<
IIssueService
>
(
mainProcessService
.
getChannel
(
'
issue
'
));
}
}
...
...
src/vs/workbench/services/log/electron-browser/logService.ts
浏览文件 @
2c2750be
...
...
@@ -6,7 +6,7 @@
import
{
DelegatedLogService
,
ILogService
,
ConsoleLogInMainService
,
ConsoleLogService
,
MultiplexLogService
}
from
'
vs/platform/log/common/log
'
;
import
{
BufferLogService
}
from
'
vs/platform/log/common/bufferLog
'
;
import
{
NativeWorkbenchEnvironmentService
}
from
'
vs/workbench/services/environment/electron-browser/environmentService
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
LoggerChannelClient
,
FollowerLogService
}
from
'
vs/platform/log/common/logIpc
'
;
import
{
SpdLogService
}
from
'
vs/platform/log/node/spdlogService
'
;
import
{
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
...
...
@@ -20,7 +20,7 @@ export class DesktopLogService extends DelegatedLogService {
private
readonly
windowId
:
number
;
private
readonly
environmentService
:
NativeWorkbenchEnvironmentService
;
constructor
(
windowId
:
number
,
mainProcessService
:
IMainProcessService
2
,
environmentService
:
NativeWorkbenchEnvironmentService
)
{
constructor
(
windowId
:
number
,
mainProcessService
:
IMainProcessService
,
environmentService
:
NativeWorkbenchEnvironmentService
)
{
const
disposables
=
new
DisposableStore
();
const
loggerClient
=
new
LoggerChannelClient
(
mainProcessService
.
getChannel
(
'
logger
'
));
...
...
src/vs/workbench/services/menubar/electron-sandbox/menubarService.ts
浏览文件 @
2c2750be
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IMenubarService
}
from
'
vs/platform/menubar/common/menubar
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
...
...
@@ -12,7 +12,7 @@ export class MenubarService {
_serviceBrand
:
undefined
;
constructor
(@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
)
{
constructor
(@
IMainProcessService
mainProcessService
:
IMainProcessService
)
{
return
createChannelSender
<
IMenubarService
>
(
mainProcessService
.
getChannel
(
'
menubar
'
));
}
}
...
...
src/vs/workbench/services/sharedProcess/electron-browser/sharedProcessService.ts
浏览文件 @
2c2750be
...
...
@@ -6,7 +6,7 @@
import
{
Client
}
from
'
vs/base/parts/ipc/common/ipc.net
'
;
import
{
connect
}
from
'
vs/base/parts/ipc/node/ipc.net
'
;
import
{
IChannel
,
IServerChannel
,
getDelayedChannel
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
ISharedProcessService
}
from
'
vs/platform/ipc/electron-browser/sharedProcessService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IWorkbenchEnvironmentService
}
from
'
vs/workbench/services/environment/common/environmentService
'
;
...
...
@@ -20,7 +20,7 @@ export class SharedProcessService implements ISharedProcessService {
private
sharedProcessMainChannel
:
IChannel
;
constructor
(
@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
,
@
IMainProcessService
mainProcessService
:
IMainProcessService
,
@
IWorkbenchEnvironmentService
environmentService
:
INativeWorkbenchEnvironmentService
)
{
this
.
sharedProcessMainChannel
=
mainProcessService
.
getChannel
(
'
sharedProcess
'
);
...
...
src/vs/workbench/services/update/electron-sandbox/updateService.ts
浏览文件 @
2c2750be
...
...
@@ -6,7 +6,7 @@
import
{
IChannel
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
IUpdateService
,
State
}
from
'
vs/platform/update/common/update
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
export
class
NativeUpdateService
implements
IUpdateService
{
...
...
@@ -21,7 +21,7 @@ export class NativeUpdateService implements IUpdateService {
private
channel
:
IChannel
;
constructor
(@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
)
{
constructor
(@
IMainProcessService
mainProcessService
:
IMainProcessService
)
{
this
.
channel
=
mainProcessService
.
getChannel
(
'
update
'
);
// always set this._state as the state changes
...
...
src/vs/workbench/services/url/electron-browser/urlService.ts
浏览文件 @
2c2750be
...
...
@@ -5,7 +5,7 @@
import
{
IURLService
,
IURLHandler
,
IOpenURLOptions
}
from
'
vs/platform/url/common/url
'
;
import
{
URI
,
UriComponents
}
from
'
vs/base/common/uri
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
URLHandlerChannel
}
from
'
vs/platform/url/common/urlIpc
'
;
import
{
URLService
}
from
'
vs/platform/url/node/urlService
'
;
import
{
IOpenerService
,
IOpener
,
matchesScheme
}
from
'
vs/platform/opener/common/opener
'
;
...
...
@@ -26,7 +26,7 @@ export class RelayURLService extends URLService implements IURLHandler, IOpener
private
urlService
:
IURLService
;
constructor
(
@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
,
@
IMainProcessService
mainProcessService
:
IMainProcessService
,
@
IOpenerService
openerService
:
IOpenerService
,
@
IWorkbenchEnvironmentService
private
readonly
environmentService
:
INativeWorkbenchEnvironmentService
,
@
IElectronService
private
electronService
:
IElectronService
...
...
src/vs/workbench/services/userDataSync/electron-sandbox/storageKeysSyncRegistryService.ts
浏览文件 @
2c2750be
...
...
@@ -5,13 +5,13 @@
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IStorageKeysSyncRegistryService
}
from
'
vs/platform/userDataSync/common/storageKeys
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
StorageKeysSyncRegistryChannelClient
}
from
'
vs/platform/userDataSync/common/userDataSyncIpc
'
;
class
StorageKeysSyncRegistryService
extends
StorageKeysSyncRegistryChannelClient
implements
IStorageKeysSyncRegistryService
{
constructor
(
@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
@
IMainProcessService
mainProcessService
:
IMainProcessService
)
{
super
(
mainProcessService
.
getChannel
(
'
storageKeysSyncRegistryService
'
));
}
...
...
src/vs/workbench/services/workspaces/electron-sandbox/workspacesService.ts
浏览文件 @
2c2750be
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IWorkspacesService
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IMainProcessService
2
}
from
'
vs/platform/ipc/electron-sandbox
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/common
/mainProcessService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
...
...
@@ -13,7 +13,7 @@ export class NativeWorkspacesService {
_serviceBrand
:
undefined
;
constructor
(
@
IMainProcessService
2
mainProcessService
:
IMainProcessService2
@
IMainProcessService
mainProcessService
:
IMainProcessService
)
{
return
createChannelSender
<
IWorkspacesService
>
(
mainProcessService
.
getChannel
(
'
workspaces
'
),
{
context
:
mainProcessService
.
windowId
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录