Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
80d8aff4
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,发现更多精彩内容 >>
提交
80d8aff4
编写于
6月 18, 2020
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix layering issues
上级
2cda7ae1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
44 deletion
+34
-44
src/vs/platform/extensions/common/builtinExtensions.ts
src/vs/platform/extensions/common/builtinExtensions.ts
+0
-40
src/vs/workbench/services/extensionManagement/browser/extensionManagementServerService.ts
...ionManagement/browser/extensionManagementServerService.ts
+1
-1
src/vs/workbench/services/extensionManagement/browser/webExtensionManagementService.ts
...ensionManagement/browser/webExtensionManagementService.ts
+32
-2
src/vs/workbench/workbench.web.main.ts
src/vs/workbench/workbench.web.main.ts
+1
-1
未找到文件。
src/vs/platform/extensions/common/builtinExtensions.ts
已删除
100644 → 0
浏览文件 @
2cda7ae1
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
isWeb
}
from
'
vs/base/common/platform
'
;
import
{
IExtension
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
let
builtinExtensions
:
IExtension
[]
=
[];
// Web
if
(
isWeb
)
{
// Running out of sources
if
(
Object
.
keys
(
builtinExtensions
).
length
===
0
)
{
// Find builtin extensions by checking for DOM
const
builtinExtensionsElement
=
document
.
getElementById
(
'
vscode-workbench-builtin-extensions
'
);
const
builtinExtensionsElementAttribute
=
builtinExtensionsElement
?
builtinExtensionsElement
.
getAttribute
(
'
data-settings
'
)
:
undefined
;
if
(
builtinExtensionsElementAttribute
)
{
try
{
builtinExtensions
=
JSON
.
parse
(
builtinExtensionsElementAttribute
);
}
catch
(
error
)
{
/* ignore error*/
}
}
}
}
// Unknown
else
{
throw
new
Error
(
'
Unable to resolve builtin extensions
'
);
}
builtinExtensions
=
builtinExtensions
.
map
(
extension
=>
({
...
extension
,
location
:
URI
.
revive
(
extension
.
location
),
readmeUrl
:
URI
.
revive
(
extension
.
readmeUrl
),
changelogUrl
:
URI
.
revive
(
extension
.
changelogUrl
),
}));
export
default
builtinExtensions
;
src/vs/workbench/services/extensionManagement/
common
/extensionManagementServerService.ts
→
src/vs/workbench/services/extensionManagement/
browser
/extensionManagementServerService.ts
浏览文件 @
80d8aff4
...
...
@@ -13,7 +13,7 @@ import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import
{
ILabelService
}
from
'
vs/platform/label/common/label
'
;
import
{
isWeb
}
from
'
vs/base/common/platform
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
WebExtensionManagementService
}
from
'
vs/workbench/services/extensionManagement/
common
/webExtensionManagementService
'
;
import
{
WebExtensionManagementService
}
from
'
vs/workbench/services/extensionManagement/
browser
/webExtensionManagementService
'
;
import
{
IExtension
}
from
'
vs/platform/extensions/common/extensions
'
;
export
class
ExtensionManagementServerService
implements
IExtensionManagementServerService
{
...
...
src/vs/workbench/services/extensionManagement/
common
/webExtensionManagementService.ts
→
src/vs/workbench/services/extensionManagement/
browser
/webExtensionManagementService.ts
浏览文件 @
80d8aff4
...
...
@@ -3,12 +3,42 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
ExtensionType
,
IExtensionIdentifier
,
IExtensionManifest
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
ExtensionType
,
IExtensionIdentifier
,
IExtensionManifest
,
IExtension
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
IExtensionManagementService
,
ILocalExtension
,
InstallExtensionEvent
,
DidInstallExtensionEvent
,
DidUninstallExtensionEvent
,
IGalleryExtension
,
IReportedExtension
,
IGalleryMetadata
}
from
'
vs/platform/extensionManagement/common/extensionManagement
'
;
import
builtinExtensions
from
'
vs/platform/extensions/common/builtinExtensions
'
;
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
IWorkbenchEnvironmentService
}
from
'
vs/workbench/services/environment/common/environmentService
'
;
import
{
isWeb
}
from
'
vs/base/common/platform
'
;
let
builtinExtensions
:
IExtension
[]
=
[];
// Web
if
(
isWeb
)
{
// Running out of sources
if
(
Object
.
keys
(
builtinExtensions
).
length
===
0
)
{
// Find builtin extensions by checking for DOM
const
builtinExtensionsElement
=
document
.
getElementById
(
'
vscode-workbench-builtin-extensions
'
);
const
builtinExtensionsElementAttribute
=
builtinExtensionsElement
?
builtinExtensionsElement
.
getAttribute
(
'
data-settings
'
)
:
undefined
;
if
(
builtinExtensionsElementAttribute
)
{
try
{
builtinExtensions
=
JSON
.
parse
(
builtinExtensionsElementAttribute
);
}
catch
(
error
)
{
/* ignore error*/
}
}
}
}
// Unknown
else
{
throw
new
Error
(
'
Unable to resolve builtin extensions
'
);
}
builtinExtensions
=
builtinExtensions
.
map
(
extension
=>
({
...
extension
,
location
:
URI
.
revive
(
extension
.
location
),
readmeUrl
:
URI
.
revive
(
extension
.
readmeUrl
),
changelogUrl
:
URI
.
revive
(
extension
.
changelogUrl
),
}));
export
class
WebExtensionManagementService
implements
IExtensionManagementService
{
...
...
src/vs/workbench/workbench.web.main.ts
浏览文件 @
80d8aff4
...
...
@@ -34,7 +34,7 @@ import 'vs/workbench/services/output/common/outputChannelModelService';
import
'
vs/workbench/services/textfile/browser/browserTextFileService
'
;
import
'
vs/workbench/services/keybinding/browser/keymapService
'
;
import
'
vs/workbench/services/extensions/browser/extensionService
'
;
import
'
vs/workbench/services/extensionManagement/
common
/extensionManagementServerService
'
;
import
'
vs/workbench/services/extensionManagement/
browser
/extensionManagementServerService
'
;
import
'
vs/workbench/services/telemetry/browser/telemetryService
'
;
import
'
vs/workbench/services/configurationResolver/browser/configurationResolverService
'
;
import
'
vs/workbench/services/credentials/browser/credentialsService
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录