Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
8f19ff42
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,发现更多精彩内容 >>
提交
8f19ff42
编写于
7月 09, 2020
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
extract extHost.common.services and have node- and worker-services for specifics
上级
e9bb126a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
55 addition
and
54 deletion
+55
-54
src/vs/workbench/api/common/extHost.common.services.ts
src/vs/workbench/api/common/extHost.common.services.ts
+11
-19
src/vs/workbench/api/node/extHost.node.services.ts
src/vs/workbench/api/node/extHost.node.services.ts
+19
-33
src/vs/workbench/api/worker/extHost.worker.services.ts
src/vs/workbench/api/worker/extHost.worker.services.ts
+19
-0
src/vs/workbench/services/extensions/node/extensionHostProcessSetup.ts
...nch/services/extensions/node/extensionHostProcessSetup.ts
+3
-1
src/vs/workbench/services/extensions/worker/extensionHostWorker.ts
...rkbench/services/extensions/worker/extensionHostWorker.ts
+3
-1
未找到文件。
src/vs/workbench/
services/extensions/worker/extHost
.services.ts
→
src/vs/workbench/
api/common/extHost.common
.services.ts
浏览文件 @
8f19ff42
...
...
@@ -15,33 +15,25 @@ import { IExtHostTask, WorkerExtHostTask } from 'vs/workbench/api/common/extHost
import
{
IExtHostDebugService
,
WorkerExtHostDebugService
}
from
'
vs/workbench/api/common/extHostDebugService
'
;
import
{
IExtHostSearch
,
ExtHostSearch
}
from
'
vs/workbench/api/common/extHostSearch
'
;
import
{
IExtensionStoragePaths
,
ExtensionStoragePaths
}
from
'
vs/workbench/api/common/extHostStoragePaths
'
;
import
{
IExtHostExtensionService
}
from
'
vs/workbench/api/common/extHostExtensionService
'
;
import
{
IExtHostStorage
,
ExtHostStorage
}
from
'
vs/workbench/api/common/extHostStorage
'
;
import
{
ExtHostExtensionService
}
from
'
vs/workbench/api/worker/extHostExtensionService
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/worker/extHostLogService
'
;
import
{
IExtHostTunnelService
,
ExtHostTunnelService
}
from
'
vs/workbench/api/common/extHostTunnelService
'
;
import
{
IExtHostApiDeprecationService
,
ExtHostApiDeprecationService
,
}
from
'
vs/workbench/api/common/extHostApiDeprecationService
'
;
import
{
IExtHostWindow
,
ExtHostWindow
}
from
'
vs/workbench/api/common/extHostWindow
'
;
import
{
ExtHostConsumerFileSystem
,
IExtHostConsumerFileSystem
}
from
'
vs/workbench/api/common/extHostFileSystemConsumer
'
;
// register singleton services
registerSingleton
(
ILogService
,
ExtHostLogService
);
registerSingleton
(
IExtensionStoragePaths
,
ExtensionStoragePaths
);
registerSingleton
(
IExtHostApiDeprecationService
,
ExtHostApiDeprecationService
);
registerSingleton
(
IExtHostOutputService
,
ExtHostOutputService
);
registerSingleton
(
IExtHostWorkspace
,
ExtHostWorkspace
);
registerSingleton
(
IExtHostWindow
,
ExtHostWindow
);
registerSingleton
(
IExtHostDecorations
,
ExtHostDecorations
);
registerSingleton
(
IExtHostConfiguration
,
ExtHostConfiguration
);
registerSingleton
(
IExtHostCommands
,
ExtHostCommands
);
registerSingleton
(
IExtHostConfiguration
,
ExtHostConfiguration
);
registerSingleton
(
IExtHostConsumerFileSystem
,
ExtHostConsumerFileSystem
);
registerSingleton
(
IExtHostDebugService
,
WorkerExtHostDebugService
);
registerSingleton
(
IExtHostDecorations
,
ExtHostDecorations
);
registerSingleton
(
IExtHostDocumentsAndEditors
,
ExtHostDocumentsAndEditors
);
registerSingleton
(
IExtHostStorage
,
ExtHostStorage
);
registerSingleton
(
IExtHostExtensionService
,
ExtHostExtensionService
);
registerSingleton
(
IExtHostOutputService
,
ExtHostOutputService
);
registerSingleton
(
IExtHostSearch
,
ExtHostSearch
);
registerSingleton
(
IExtHostTunnelService
,
ExtHostTunnelService
);
registerSingleton
(
IExtHostConsumerFileSystem
,
ExtHostConsumerFileSystem
);
registerSingleton
(
IExtensionStoragePaths
,
ExtensionStoragePaths
);
registerSingleton
(
IExtHostTerminalService
,
WorkerExtHostTerminalService
);
registerSingleton
(
IExtHostStorage
,
ExtHostStorage
);
registerSingleton
(
IExtHostTask
,
WorkerExtHostTask
);
registerSingleton
(
IExtHostDebugService
,
WorkerExtHostDebugService
);
registerSingleton
(
IExtHostTerminalService
,
WorkerExtHostTerminalService
);
registerSingleton
(
IExtHostTunnelService
,
ExtHostTunnelService
);
registerSingleton
(
IExtHostWindow
,
ExtHostWindow
);
registerSingleton
(
IExtHostWorkspace
,
ExtHostWorkspace
);
src/vs/workbench/api/node/extHost.services.ts
→
src/vs/workbench/api/node/extHost.
node.
services.ts
浏览文件 @
8f19ff42
...
...
@@ -4,49 +4,35 @@
*--------------------------------------------------------------------------------------------*/
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IExtHostOutputService
}
from
'
vs/workbench/api/common/extHostOutput
'
;
import
{
ExtHostOutputService2
}
from
'
vs/workbench/api/node/extHostOutputService
'
;
import
{
IExtHostWorkspace
,
ExtHostWorkspace
}
from
'
vs/workbench/api/common/extHostWorkspace
'
;
import
{
IExtHostDecorations
,
ExtHostDecorations
}
from
'
vs/workbench/api/common/extHostDecorations
'
;
import
{
IExtHostConfiguration
,
ExtHostConfiguration
}
from
'
vs/workbench/api/common/extHostConfiguration
'
;
import
{
IExtHostCommands
,
ExtHostCommands
}
from
'
vs/workbench/api/common/extHostCommands
'
;
import
{
IExtHostDocumentsAndEditors
,
ExtHostDocumentsAndEditors
}
from
'
vs/workbench/api/common/extHostDocumentsAndEditors
'
;
import
{
ExtHostTerminalService
}
from
'
vs/workbench/api/node/extHostTerminalService
'
;
import
{
IExtHostTerminalService
}
from
'
vs/workbench/api/common/extHostTerminalService
'
;
import
{
IExtHostTask
}
from
'
vs/workbench/api/common/extHostTask
'
;
import
{
ExtHostTask
}
from
'
vs/workbench/api/node/extHostTask
'
;
import
{
ExtHostDebugService
}
from
'
vs/workbench/api/node/extHostDebugService
'
;
import
{
IExtHostDebugService
}
from
'
vs/workbench/api/common/extHostDebugService
'
;
import
{
IExtHostSearch
}
from
'
vs/workbench/api/common/extHostSearch
'
;
import
{
NativeExtHostSearch
}
from
'
vs/workbench/api/node/extHostSearch
'
;
import
{
IExtensionStoragePaths
,
ExtensionStoragePaths
}
from
'
vs/workbench/api/common/extHostStoragePaths
'
;
import
{
IExtHostExtensionService
}
from
'
vs/workbench/api/common/extHostExtensionService
'
;
import
{
ExtHostExtensionService
}
from
'
vs/workbench/api/node/extHostExtensionService
'
;
import
{
IExtHostStorage
,
ExtHostStorage
}
from
'
vs/workbench/api/common/extHostStorage
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/node/extHostLogService
'
;
import
{
IExtHostTunnelService
}
from
'
vs/workbench/api/common/extHostTunnelService
'
;
import
{
ExtHostTunnelService
}
from
'
vs/workbench/api/node/extHostTunnelService
'
;
import
{
IExtHostApiDeprecationService
,
ExtHostApiDeprecationService
}
from
'
vs/workbench/api/common/extHostApiDeprecationService
'
;
import
{
IExtHostWindow
,
ExtHostWindow
}
from
'
vs/workbench/api/common/extHostWindow
'
;
import
{
IExtHostConsumerFileSystem
,
ExtHostConsumerFileSystem
}
from
'
vs/workbench/api/common/extHostFileSystemConsumer
'
;
import
{
IExtHostDebugService
}
from
'
vs/workbench/api/common/extHostDebugService
'
;
import
{
IExtHostExtensionService
}
from
'
vs/workbench/api/common/extHostExtensionService
'
;
import
{
IExtHostOutputService
}
from
'
vs/workbench/api/common/extHostOutput
'
;
import
{
IExtHostSearch
}
from
'
vs/workbench/api/common/extHostSearch
'
;
import
{
IExtHostTask
}
from
'
vs/workbench/api/common/extHostTask
'
;
import
{
IExtHostTerminalService
}
from
'
vs/workbench/api/common/extHostTerminalService
'
;
import
{
IExtHostTunnelService
}
from
'
vs/workbench/api/common/extHostTunnelService
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
// #########################################################################
// ### ###
// ### !!! PLEASE ADD COMMON IMPORTS INTO extHost.common.services.ts !!! ###
// ### ###
// #########################################################################
// register singleton services
registerSingleton
(
IExtHostExtensionService
,
ExtHostExtensionService
);
registerSingleton
(
ILogService
,
ExtHostLogService
);
registerSingleton
(
IExtHostApiDeprecationService
,
ExtHostApiDeprecationService
);
registerSingleton
(
IExtHostOutputService
,
ExtHostOutputService2
);
registerSingleton
(
IExtHostWorkspace
,
ExtHostWorkspace
);
registerSingleton
(
IExtHostWindow
,
ExtHostWindow
);
registerSingleton
(
IExtHostDecorations
,
ExtHostDecorations
);
registerSingleton
(
IExtHostConfiguration
,
ExtHostConfiguration
);
registerSingleton
(
IExtHostCommands
,
ExtHostCommands
);
registerSingleton
(
IExtHostDocumentsAndEditors
,
ExtHostDocumentsAndEditors
);
registerSingleton
(
IExtHostTerminalService
,
ExtHostTerminalService
);
registerSingleton
(
IExtHostTask
,
ExtHostTask
);
registerSingleton
(
IExtHostDebugService
,
ExtHostDebugService
);
registerSingleton
(
IExtHostOutputService
,
ExtHostOutputService2
);
registerSingleton
(
IExtHostSearch
,
NativeExtHostSearch
);
registerSingleton
(
IExtHostConsumerFileSystem
,
ExtHostConsumerFileSystem
);
registerSingleton
(
IExtensionStoragePaths
,
ExtensionStoragePaths
);
registerSingleton
(
IExtHostExtensionService
,
ExtHostExtensionService
);
registerSingleton
(
IExtHostStorage
,
ExtHostStorage
);
registerSingleton
(
IExtHostTask
,
ExtHostTask
);
registerSingleton
(
IExtHostTerminalService
,
ExtHostTerminalService
);
registerSingleton
(
IExtHostTunnelService
,
ExtHostTunnelService
);
src/vs/workbench/api/worker/extHost.worker.services.ts
0 → 100644
浏览文件 @
8f19ff42
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
IExtHostExtensionService
}
from
'
vs/workbench/api/common/extHostExtensionService
'
;
import
{
ExtHostExtensionService
}
from
'
vs/workbench/api/worker/extHostExtensionService
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/worker/extHostLogService
'
;
// #########################################################################
// ### ###
// ### !!! PLEASE ADD COMMON IMPORTS INTO extHost.common.services.ts !!! ###
// ### ###
// #########################################################################
registerSingleton
(
IExtHostExtensionService
,
ExtHostExtensionService
);
registerSingleton
(
ILogService
,
ExtHostLogService
);
src/vs/workbench/services/extensions/node/extensionHostProcessSetup.ts
浏览文件 @
8f19ff42
...
...
@@ -20,9 +20,11 @@ import { IURITransformer, URITransformer, IRawURITransformer } from 'vs/base/com
import
{
exists
}
from
'
vs/base/node/pfs
'
;
import
{
realpath
}
from
'
vs/base/node/extpath
'
;
import
{
IHostUtils
}
from
'
vs/workbench/api/common/extHostExtensionService
'
;
import
'
vs/workbench/api/node/extHost.services
'
;
import
{
RunOnceScheduler
}
from
'
vs/base/common/async
'
;
import
'
vs/workbench/api/common/extHost.common.services
'
;
import
'
vs/workbench/api/node/extHost.node.services
'
;
interface
ParsedExtHostArgs
{
uriTransformerPath
?:
string
;
useHostProxy
?:
string
;
...
...
src/vs/workbench/services/extensions/worker/extensionHostWorker.ts
浏览文件 @
8f19ff42
...
...
@@ -10,7 +10,9 @@ import { isMessageOfType, MessageType, createMessageOfType } from 'vs/workbench/
import
{
IInitData
}
from
'
vs/workbench/api/common/extHost.protocol
'
;
import
{
ExtensionHostMain
}
from
'
vs/workbench/services/extensions/common/extensionHostMain
'
;
import
{
IHostUtils
}
from
'
vs/workbench/api/common/extHostExtensionService
'
;
import
'
vs/workbench/services/extensions/worker/extHost.services
'
;
import
'
vs/workbench/api/common/extHost.common.services
'
;
import
'
vs/workbench/api/worker/extHost.worker.services
'
;
//#region --- Define, capture, and override some globals
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录