Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c86de794
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 搜索 >>
提交
c86de794
编写于
5月 25, 2020
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sandbox - move main process service into electron-sandbox
上级
7f34cb53
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
73 addition
and
91 deletion
+73
-91
src/vs/code/electron-browser/issue/issueReporterMain.ts
src/vs/code/electron-browser/issue/issueReporterMain.ts
+1
-2
src/vs/code/electron-browser/sharedProcess/sharedProcessMain.ts
.../code/electron-browser/sharedProcess/sharedProcessMain.ts
+2
-2
src/vs/code/electron-main/app.ts
src/vs/code/electron-main/app.ts
+1
-2
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+0
-51
src/vs/platform/authentication/electron-browser/authenticationIpc.ts
...form/authentication/electron-browser/authenticationIpc.ts
+0
-1
src/vs/platform/driver/electron-browser/driver.ts
src/vs/platform/driver/electron-browser/driver.ts
+1
-1
src/vs/platform/ipc/common/mainProcessService.ts
src/vs/platform/ipc/common/mainProcessService.ts
+0
-18
src/vs/platform/ipc/electron-sandbox/mainProcessService.ts
src/vs/platform/ipc/electron-sandbox/mainProcessService.ts
+12
-1
src/vs/platform/windows/electron-main/windows.ts
src/vs/platform/windows/electron-main/windows.ts
+45
-1
src/vs/workbench/contrib/debug/electron-sandbox/extensionHostDebugService.ts
...ntrib/debug/electron-sandbox/extensionHostDebugService.ts
+1
-1
src/vs/workbench/electron-browser/desktop.main.ts
src/vs/workbench/electron-browser/desktop.main.ts
+1
-2
src/vs/workbench/services/electron/electron-sandbox/electronService.ts
...nch/services/electron/electron-sandbox/electronService.ts
+1
-1
src/vs/workbench/services/issue/electron-sandbox/issueService.ts
...workbench/services/issue/electron-sandbox/issueService.ts
+1
-1
src/vs/workbench/services/log/electron-browser/logService.ts
src/vs/workbench/services/log/electron-browser/logService.ts
+1
-1
src/vs/workbench/services/menubar/electron-sandbox/menubarService.ts
...bench/services/menubar/electron-sandbox/menubarService.ts
+1
-1
src/vs/workbench/services/sharedProcess/electron-browser/sharedProcessService.ts
...es/sharedProcess/electron-browser/sharedProcessService.ts
+1
-1
src/vs/workbench/services/update/electron-sandbox/updateService.ts
...rkbench/services/update/electron-sandbox/updateService.ts
+1
-1
src/vs/workbench/services/url/electron-sandbox/urlService.ts
src/vs/workbench/services/url/electron-sandbox/urlService.ts
+1
-1
src/vs/workbench/services/userDataSync/electron-sandbox/storageKeysSyncRegistryService.ts
...taSync/electron-sandbox/storageKeysSyncRegistryService.ts
+1
-1
src/vs/workbench/services/workspaces/electron-sandbox/workspacesService.ts
...services/workspaces/electron-sandbox/workspacesService.ts
+1
-1
未找到文件。
src/vs/code/electron-browser/issue/issueReporterMain.ts
浏览文件 @
c86de794
...
...
@@ -27,8 +27,7 @@ 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
}
from
'
vs/platform/ipc/common/mainProcessService
'
;
import
{
MainProcessService
}
from
'
vs/platform/ipc/electron-sandbox/mainProcessService
'
;
import
{
IMainProcessService
,
MainProcessService
}
from
'
vs/platform/ipc/electron-sandbox/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
浏览文件 @
c86de794
...
...
@@ -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/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/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
'
;
...
...
@@ -65,7 +65,7 @@ import { IStorageService } from 'vs/platform/storage/common/storage';
import
{
GlobalExtensionEnablementService
}
from
'
vs/platform/extensionManagement/common/extensionEnablementService
'
;
import
{
UserDataSyncEnablementService
}
from
'
vs/platform/userDataSync/common/userDataSyncEnablementService
'
;
import
{
IAuthenticationTokenService
,
AuthenticationTokenService
}
from
'
vs/platform/authentication/common/authentication
'
;
import
{
AuthenticationTokenServiceChannel
}
from
'
vs/platform/authentication/
common
/authenticationIpc
'
;
import
{
AuthenticationTokenServiceChannel
}
from
'
vs/platform/authentication/
electron-browser
/authenticationIpc
'
;
import
{
UserDataSyncBackupStoreService
}
from
'
vs/platform/userDataSync/common/userDataSyncBackupStoreService
'
;
import
{
IStorageKeysSyncRegistryService
}
from
'
vs/platform/userDataSync/common/storageKeys
'
;
import
{
ExtensionTipsService
}
from
'
vs/platform/extensionManagement/node/extensionTipsService
'
;
...
...
src/vs/code/electron-main/app.ts
浏览文件 @
c86de794
...
...
@@ -8,7 +8,6 @@ import { IProcessEnvironment, isWindows, isMacintosh } from 'vs/base/common/plat
import
{
WindowsMainService
}
from
'
vs/platform/windows/electron-main/windowsMainService
'
;
import
{
IWindowOpenable
}
from
'
vs/platform/windows/common/windows
'
;
import
{
OpenContext
}
from
'
vs/platform/windows/node/window
'
;
import
{
ActiveWindowManager
}
from
'
vs/code/electron-main/windows
'
;
import
{
ILifecycleMainService
,
LifecycleMainPhase
}
from
'
vs/platform/lifecycle/electron-main/lifecycleMainService
'
;
import
{
getShellEnvironment
}
from
'
vs/code/node/shellEnv
'
;
import
{
IUpdateService
}
from
'
vs/platform/update/common/update
'
;
...
...
@@ -36,7 +35,7 @@ import { getDelayedChannel, StaticRouter, createChannelReceiver } from 'vs/base/
import
product
from
'
vs/platform/product/common/product
'
;
import
{
ProxyAuthHandler
}
from
'
vs/code/electron-main/auth
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IWindowsMainService
,
ICodeWindow
}
from
'
vs/platform/windows/electron-main/windows
'
;
import
{
IWindowsMainService
,
ICodeWindow
,
ActiveWindowManager
}
from
'
vs/platform/windows/electron-main/windows
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
hasWorkspaceFileExtension
,
IWorkspacesService
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
WorkspacesService
}
from
'
vs/platform/workspaces/electron-main/workspacesService
'
;
...
...
src/vs/code/electron-main/windows.ts
已删除
100644 → 0
浏览文件 @
7f34cb53
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
DisposableStore
,
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
CancelablePromise
,
createCancelablePromise
}
from
'
vs/base/common/async
'
;
import
{
IElectronMainService
}
from
'
vs/platform/electron/electron-main/electronMainService
'
;
export
class
ActiveWindowManager
extends
Disposable
{
private
readonly
disposables
=
this
.
_register
(
new
DisposableStore
());
private
firstActiveWindowIdPromise
:
CancelablePromise
<
number
|
undefined
>
|
undefined
;
private
activeWindowId
:
number
|
undefined
;
constructor
(@
IElectronMainService
electronService
:
IElectronMainService
)
{
super
();
// remember last active window id upon events
const
onActiveWindowChange
=
Event
.
latch
(
Event
.
any
(
electronService
.
onWindowOpen
,
electronService
.
onWindowFocus
));
onActiveWindowChange
(
this
.
setActiveWindow
,
this
,
this
.
disposables
);
// resolve current active window
this
.
firstActiveWindowIdPromise
=
createCancelablePromise
(()
=>
electronService
.
getActiveWindowId
(
-
1
));
(
async
()
=>
{
try
{
const
windowId
=
await
this
.
firstActiveWindowIdPromise
;
this
.
activeWindowId
=
(
typeof
this
.
activeWindowId
===
'
number
'
)
?
this
.
activeWindowId
:
windowId
;
}
finally
{
this
.
firstActiveWindowIdPromise
=
undefined
;
}
})();
}
private
setActiveWindow
(
windowId
:
number
|
undefined
)
{
if
(
this
.
firstActiveWindowIdPromise
)
{
this
.
firstActiveWindowIdPromise
.
cancel
();
this
.
firstActiveWindowIdPromise
=
undefined
;
}
this
.
activeWindowId
=
windowId
;
}
async
getActiveClientId
():
Promise
<
string
|
undefined
>
{
const
id
=
this
.
firstActiveWindowIdPromise
?
(
await
this
.
firstActiveWindowIdPromise
)
:
this
.
activeWindowId
;
return
`window:
${
id
}
`
;
}
}
src/vs/platform/authentication/
common
/authenticationIpc.ts
→
src/vs/platform/authentication/
electron-browser
/authenticationIpc.ts
浏览文件 @
c86de794
...
...
@@ -7,7 +7,6 @@ import { IServerChannel } from 'vs/base/parts/ipc/common/ipc';
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
IAuthenticationTokenService
}
from
'
vs/platform/authentication/common/authentication
'
;
export
class
AuthenticationTokenServiceChannel
implements
IServerChannel
{
constructor
(
private
readonly
service
:
IAuthenticationTokenService
)
{
}
...
...
src/vs/platform/driver/electron-browser/driver.ts
浏览文件 @
c86de794
...
...
@@ -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
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
remote
}
from
'
electron
'
;
import
{
timeout
}
from
'
vs/base/common/async
'
;
import
{
BaseWindowDriver
}
from
'
vs/platform/driver/browser/baseDriver
'
;
...
...
src/vs/platform/ipc/common/mainProcessService.ts
已删除
100644 → 0
浏览文件 @
7f34cb53
/*---------------------------------------------------------------------------------------------
* 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
;
getChannel
(
channelName
:
string
):
IChannel
;
registerChannel
(
channelName
:
string
,
channel
:
IServerChannel
<
string
>
):
void
;
}
src/vs/platform/ipc/electron-sandbox/mainProcessService.ts
浏览文件 @
c86de794
...
...
@@ -3,10 +3,21 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
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
'
;
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
export
const
IMainProcessService
=
createDecorator
<
IMainProcessService
>
(
'
mainProcessService
'
);
export
interface
IMainProcessService
{
_serviceBrand
:
undefined
;
getChannel
(
channelName
:
string
):
IChannel
;
registerChannel
(
channelName
:
string
,
channel
:
IServerChannel
<
string
>
):
void
;
}
export
class
MainProcessService
extends
Disposable
implements
IMainProcessService
{
...
...
src/vs/platform/windows/electron-main/windows.ts
浏览文件 @
c86de794
...
...
@@ -13,7 +13,9 @@ import { IWorkspaceIdentifier } from 'vs/platform/workspaces/common/workspaces';
import
{
ISerializableCommandAction
}
from
'
vs/platform/actions/common/actions
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
Rectangle
,
BrowserWindow
}
from
'
electron
'
;
import
{
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IDisposable
,
Disposable
,
DisposableStore
}
from
'
vs/base/common/lifecycle
'
;
import
{
CancelablePromise
,
createCancelablePromise
}
from
'
vs/base/common/async
'
;
import
{
IElectronMainService
}
from
'
vs/platform/electron/electron-main/electronMainService
'
;
export
interface
IWindowState
{
width
?:
number
;
...
...
@@ -141,3 +143,45 @@ export interface IOpenConfiguration extends IBaseOpenConfiguration {
}
export
interface
IOpenEmptyConfiguration
extends
IBaseOpenConfiguration
{
}
export
class
ActiveWindowManager
extends
Disposable
{
private
readonly
disposables
=
this
.
_register
(
new
DisposableStore
());
private
firstActiveWindowIdPromise
:
CancelablePromise
<
number
|
undefined
>
|
undefined
;
private
activeWindowId
:
number
|
undefined
;
constructor
(@
IElectronMainService
electronService
:
IElectronMainService
)
{
super
();
// remember last active window id upon events
const
onActiveWindowChange
=
Event
.
latch
(
Event
.
any
(
electronService
.
onWindowOpen
,
electronService
.
onWindowFocus
));
onActiveWindowChange
(
this
.
setActiveWindow
,
this
,
this
.
disposables
);
// resolve current active window
this
.
firstActiveWindowIdPromise
=
createCancelablePromise
(()
=>
electronService
.
getActiveWindowId
(
-
1
));
(
async
()
=>
{
try
{
const
windowId
=
await
this
.
firstActiveWindowIdPromise
;
this
.
activeWindowId
=
(
typeof
this
.
activeWindowId
===
'
number
'
)
?
this
.
activeWindowId
:
windowId
;
}
finally
{
this
.
firstActiveWindowIdPromise
=
undefined
;
}
})();
}
private
setActiveWindow
(
windowId
:
number
|
undefined
)
{
if
(
this
.
firstActiveWindowIdPromise
)
{
this
.
firstActiveWindowIdPromise
.
cancel
();
this
.
firstActiveWindowIdPromise
=
undefined
;
}
this
.
activeWindowId
=
windowId
;
}
async
getActiveClientId
():
Promise
<
string
|
undefined
>
{
const
id
=
this
.
firstActiveWindowIdPromise
?
(
await
this
.
firstActiveWindowIdPromise
)
:
this
.
activeWindowId
;
return
`window:
${
id
}
`
;
}
}
src/vs/workbench/contrib/debug/electron-sandbox/extensionHostDebugService.ts
浏览文件 @
c86de794
...
...
@@ -5,7 +5,7 @@
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IExtensionHostDebugService
}
from
'
vs/platform/debug/common/extensionHostDebug
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
ExtensionHostDebugChannelClient
,
ExtensionHostDebugBroadcastChannel
}
from
'
vs/platform/debug/common/extensionHostDebugIpc
'
;
export
class
ExtensionHostDebugService
extends
ExtensionHostDebugChannelClient
{
...
...
src/vs/workbench/electron-browser/desktop.main.ts
浏览文件 @
c86de794
...
...
@@ -30,8 +30,7 @@ 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
{
IMainProcessService
}
from
'
vs/platform/ipc/common/mainProcessService
'
;
import
{
MainProcessService
}
from
'
vs/platform/ipc/electron-sandbox/mainProcessService
'
;
import
{
IMainProcessService
,
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
'
;
...
...
src/vs/workbench/services/electron/electron-sandbox/electronService.ts
浏览文件 @
c86de794
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IElectronService
}
from
'
vs/platform/electron/electron-sandbox/electron
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
export
class
ElectronService
{
...
...
src/vs/workbench/services/issue/electron-sandbox/issueService.ts
浏览文件 @
c86de794
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IIssueService
}
from
'
vs/platform/issue/common/issue
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
...
...
src/vs/workbench/services/log/electron-browser/logService.ts
浏览文件 @
c86de794
...
...
@@ -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
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/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
'
;
...
...
src/vs/workbench/services/menubar/electron-sandbox/menubarService.ts
浏览文件 @
c86de794
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IMenubarService
}
from
'
vs/platform/menubar/common/menubar
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
...
...
src/vs/workbench/services/sharedProcess/electron-browser/sharedProcessService.ts
浏览文件 @
c86de794
...
...
@@ -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
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/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
'
;
...
...
src/vs/workbench/services/update/electron-sandbox/updateService.ts
浏览文件 @
c86de794
...
...
@@ -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
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
export
class
NativeUpdateService
implements
IUpdateService
{
...
...
src/vs/workbench/services/url/electron-sandbox/urlService.ts
浏览文件 @
c86de794
...
...
@@ -5,7 +5,7 @@
import
{
IURLService
,
IURLHandler
,
IOpenURLOptions
}
from
'
vs/platform/url/common/url
'
;
import
{
URI
,
UriComponents
}
from
'
vs/base/common/uri
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
URLHandlerChannel
}
from
'
vs/platform/url/common/urlIpc
'
;
import
{
IOpenerService
,
IOpener
,
matchesScheme
}
from
'
vs/platform/opener/common/opener
'
;
import
product
from
'
vs/platform/product/common/product
'
;
...
...
src/vs/workbench/services/userDataSync/electron-sandbox/storageKeysSyncRegistryService.ts
浏览文件 @
c86de794
...
...
@@ -5,7 +5,7 @@
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IStorageKeysSyncRegistryService
}
from
'
vs/platform/userDataSync/common/storageKeys
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
StorageKeysSyncRegistryChannelClient
}
from
'
vs/platform/userDataSync/common/userDataSyncIpc
'
;
class
StorageKeysSyncRegistryService
extends
StorageKeysSyncRegistryChannelClient
implements
IStorageKeysSyncRegistryService
{
...
...
src/vs/workbench/services/workspaces/electron-sandbox/workspacesService.ts
浏览文件 @
c86de794
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
IWorkspacesService
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
common
/mainProcessService
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/
electron-sandbox
/mainProcessService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
createChannelSender
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
IElectronService
}
from
'
vs/platform/electron/electron-sandbox/electron
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录