Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
68842a0c
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,发现更多精彩内容 >>
提交
68842a0c
编写于
3月 07, 2019
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - declarative extension & extension enablement service
上级
3bc9424a
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
9 addition
and
12 deletion
+9
-12
src/vs/platform/extensionManagement/common/extensionEnablementService.ts
.../extensionManagement/common/extensionEnablementService.ts
+1
-2
src/vs/workbench/electron-browser/workbench.ts
src/vs/workbench/electron-browser/workbench.ts
+1
-10
src/vs/workbench/services/extensions/electron-browser/extensionService.ts
.../services/extensions/electron-browser/extensionService.ts
+3
-0
src/vs/workbench/workbench.main.ts
src/vs/workbench/workbench.main.ts
+4
-0
未找到文件。
src/vs/platform/extensionManagement/common/extensionEnablementService.ts
浏览文件 @
68842a0c
...
@@ -385,5 +385,4 @@ class StorageManager extends Disposable {
...
@@ -385,5 +385,4 @@ class StorageManager extends Disposable {
this
.
storageService
.
remove
(
key
,
scope
);
this
.
storageService
.
remove
(
key
,
scope
);
}
}
}
}
}
}
src/vs/workbench/electron-browser/workbench.ts
浏览文件 @
68842a0c
...
@@ -65,10 +65,8 @@ import { ILabelService } from 'vs/platform/label/common/label';
...
@@ -65,10 +65,8 @@ import { ILabelService } from 'vs/platform/label/common/label';
import
{
LabelService
}
from
'
vs/workbench/services/label/common/labelService
'
;
import
{
LabelService
}
from
'
vs/workbench/services/label/common/labelService
'
;
import
{
ITelemetryServiceConfig
,
TelemetryService
}
from
'
vs/platform/telemetry/common/telemetryService
'
;
import
{
ITelemetryServiceConfig
,
TelemetryService
}
from
'
vs/platform/telemetry/common/telemetryService
'
;
import
{
combinedAppender
,
LogAppender
,
NullTelemetryService
}
from
'
vs/platform/telemetry/common/telemetryUtils
'
;
import
{
combinedAppender
,
LogAppender
,
NullTelemetryService
}
from
'
vs/platform/telemetry/common/telemetryUtils
'
;
import
{
IExtensionGalleryService
,
IExtensionManagementServerService
,
IExtensionManagementService
,
IExtensionEnablementService
}
from
'
vs/platform/extensionManagement/common/extensionManagement
'
;
import
{
IExtensionGalleryService
,
IExtensionManagementServerService
,
IExtensionManagementService
}
from
'
vs/platform/extensionManagement/common/extensionManagement
'
;
import
{
IRemoteAuthorityResolverService
}
from
'
vs/platform/remote/common/remoteAuthorityResolver
'
;
import
{
IRemoteAuthorityResolverService
}
from
'
vs/platform/remote/common/remoteAuthorityResolver
'
;
import
{
ExtensionEnablementService
}
from
'
vs/platform/extensionManagement/common/extensionEnablementService
'
;
import
{
IExtensionService
}
from
'
vs/workbench/services/extensions/common/extensions
'
;
import
{
ILocalizationsService
}
from
'
vs/platform/localizations/common/localizations
'
;
import
{
ILocalizationsService
}
from
'
vs/platform/localizations/common/localizations
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/product
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/product
'
;
import
{
WorkbenchContextKeysHandler
}
from
'
vs/workbench/browser/contextkeys
'
;
import
{
WorkbenchContextKeysHandler
}
from
'
vs/workbench/browser/contextkeys
'
;
...
@@ -98,7 +96,6 @@ import { LifecycleService } from 'vs/platform/lifecycle/electron-browser/lifecyc
...
@@ -98,7 +96,6 @@ import { LifecycleService } from 'vs/platform/lifecycle/electron-browser/lifecyc
import
{
WindowService
}
from
'
vs/platform/windows/electron-browser/windowService
'
;
import
{
WindowService
}
from
'
vs/platform/windows/electron-browser/windowService
'
;
import
{
RemoteAuthorityResolverService
}
from
'
vs/platform/remote/electron-browser/remoteAuthorityResolverService
'
;
import
{
RemoteAuthorityResolverService
}
from
'
vs/platform/remote/electron-browser/remoteAuthorityResolverService
'
;
import
{
RemoteAgentService
}
from
'
vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl
'
;
import
{
RemoteAgentService
}
from
'
vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl
'
;
import
{
ExtensionService
}
from
'
vs/workbench/services/extensions/electron-browser/extensionService
'
;
import
{
RequestService
}
from
'
vs/platform/request/electron-browser/requestService
'
;
import
{
RequestService
}
from
'
vs/platform/request/electron-browser/requestService
'
;
enum
Settings
{
enum
Settings
{
...
@@ -363,12 +360,6 @@ export class Workbench extends Disposable implements IWorkbenchLayoutService {
...
@@ -363,12 +360,6 @@ export class Workbench extends Disposable implements IWorkbenchLayoutService {
serviceCollection
.
set
(
IExtensionManagementServerService
,
new
SyncDescriptor
(
ExtensionManagementServerService
,
[
extensionManagementChannelClient
]));
serviceCollection
.
set
(
IExtensionManagementServerService
,
new
SyncDescriptor
(
ExtensionManagementServerService
,
[
extensionManagementChannelClient
]));
serviceCollection
.
set
(
IExtensionManagementService
,
new
SyncDescriptor
(
MultiExtensionManagementService
));
serviceCollection
.
set
(
IExtensionManagementService
,
new
SyncDescriptor
(
MultiExtensionManagementService
));
// Extension Enablement
serviceCollection
.
set
(
IExtensionEnablementService
,
new
SyncDescriptor
(
ExtensionEnablementService
,
undefined
,
true
));
// Extensions
serviceCollection
.
set
(
IExtensionService
,
new
SyncDescriptor
(
ExtensionService
));
// Localization
// Localization
const
localizationsChannel
=
getDelayedChannel
(
sharedProcess
.
then
(
c
=>
c
.
getChannel
(
'
localizations
'
)));
const
localizationsChannel
=
getDelayedChannel
(
sharedProcess
.
then
(
c
=>
c
.
getChannel
(
'
localizations
'
)));
serviceCollection
.
set
(
ILocalizationsService
,
new
SyncDescriptor
(
LocalizationsChannelClient
,
[
localizationsChannel
]));
serviceCollection
.
set
(
ILocalizationsService
,
new
SyncDescriptor
(
LocalizationsChannelClient
,
[
localizationsChannel
]));
...
...
src/vs/workbench/services/extensions/electron-browser/extensionService.ts
浏览文件 @
68842a0c
...
@@ -31,6 +31,7 @@ import { CachedExtensionScanner, Logger } from 'vs/workbench/services/extensions
...
@@ -31,6 +31,7 @@ import { CachedExtensionScanner, Logger } from 'vs/workbench/services/extensions
import
{
ExtensionHostProcessManager
}
from
'
vs/workbench/services/extensions/electron-browser/extensionHostProcessManager
'
;
import
{
ExtensionHostProcessManager
}
from
'
vs/workbench/services/extensions/electron-browser/extensionHostProcessManager
'
;
import
{
ExtensionIdentifier
,
IExtension
,
ExtensionType
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
ExtensionIdentifier
,
IExtension
,
ExtensionType
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
const
hasOwnProperty
=
Object
.
hasOwnProperty
;
const
hasOwnProperty
=
Object
.
hasOwnProperty
;
const
NO_OP_VOID_PROMISE
=
Promise
.
resolve
<
void
>
(
undefined
);
const
NO_OP_VOID_PROMISE
=
Promise
.
resolve
<
void
>
(
undefined
);
...
@@ -843,3 +844,5 @@ export class ExtensionService extends Disposable implements IExtensionService {
...
@@ -843,3 +844,5 @@ export class ExtensionService extends Disposable implements IExtensionService {
this
.
_onDidChangeExtensionsStatus
.
fire
([
extensionId
]);
this
.
_onDidChangeExtensionsStatus
.
fire
([
extensionId
]);
}
}
}
}
registerSingleton
(
IExtensionService
,
ExtensionService
);
\ No newline at end of file
src/vs/workbench/workbench.main.ts
浏览文件 @
68842a0c
...
@@ -62,6 +62,8 @@ import { ITextResourceConfigurationService } from 'vs/editor/common/services/res
...
@@ -62,6 +62,8 @@ import { ITextResourceConfigurationService } from 'vs/editor/common/services/res
import
{
TextResourceConfigurationService
}
from
'
vs/editor/common/services/resourceConfigurationImpl
'
;
import
{
TextResourceConfigurationService
}
from
'
vs/editor/common/services/resourceConfigurationImpl
'
;
import
{
IAccessibilityService
}
from
'
vs/platform/accessibility/common/accessibility
'
;
import
{
IAccessibilityService
}
from
'
vs/platform/accessibility/common/accessibility
'
;
import
{
AccessibilityService
}
from
'
vs/platform/accessibility/node/accessibilityService
'
;
import
{
AccessibilityService
}
from
'
vs/platform/accessibility/node/accessibilityService
'
;
import
{
IExtensionEnablementService
}
from
'
vs/platform/extensionManagement/common/extensionManagement
'
;
import
{
ExtensionEnablementService
}
from
'
vs/platform/extensionManagement/common/extensionEnablementService
'
;
import
'
vs/workbench/services/bulkEdit/browser/bulkEditService
'
;
import
'
vs/workbench/services/bulkEdit/browser/bulkEditService
'
;
import
'
vs/workbench/services/integrity/node/integrityService
'
;
import
'
vs/workbench/services/integrity/node/integrityService
'
;
...
@@ -94,6 +96,7 @@ import 'vs/workbench/services/textfile/node/textResourcePropertiesService';
...
@@ -94,6 +96,7 @@ import 'vs/workbench/services/textfile/node/textResourcePropertiesService';
import
'
vs/workbench/services/mode/common/workbenchModeService
'
;
import
'
vs/workbench/services/mode/common/workbenchModeService
'
;
import
'
vs/workbench/services/commands/common/commandService
'
;
import
'
vs/workbench/services/commands/common/commandService
'
;
import
'
vs/workbench/services/themes/browser/workbenchThemeService
'
;
import
'
vs/workbench/services/themes/browser/workbenchThemeService
'
;
import
'
vs/workbench/services/extensions/electron-browser/extensionService
'
;
registerSingleton
(
IMenuService
,
MenuService
,
true
);
registerSingleton
(
IMenuService
,
MenuService
,
true
);
registerSingleton
(
IListService
,
ListService
,
true
);
registerSingleton
(
IListService
,
ListService
,
true
);
...
@@ -107,6 +110,7 @@ registerSingleton(IContextKeyService, ContextKeyService);
...
@@ -107,6 +110,7 @@ registerSingleton(IContextKeyService, ContextKeyService);
registerSingleton
(
IModelService
,
ModelServiceImpl
,
true
);
registerSingleton
(
IModelService
,
ModelServiceImpl
,
true
);
registerSingleton
(
ITextResourceConfigurationService
,
TextResourceConfigurationService
);
registerSingleton
(
ITextResourceConfigurationService
,
TextResourceConfigurationService
);
registerSingleton
(
IAccessibilityService
,
AccessibilityService
,
true
);
registerSingleton
(
IAccessibilityService
,
AccessibilityService
,
true
);
registerSingleton
(
IExtensionEnablementService
,
ExtensionEnablementService
,
true
);
//#endregion
//#endregion
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录