Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
54442c1c
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,发现更多精彩内容 >>
提交
54442c1c
编写于
4月 06, 2020
作者:
J
João Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move built-in extensions to product.json
上级
0074066c
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
95 addition
and
87 deletion
+95
-87
build/builtInExtensions.json
build/builtInExtensions.json
+0
-62
build/builtin/browser-main.js
build/builtin/browser-main.js
+3
-3
build/lib/builtInExtensions.js
build/lib/builtInExtensions.js
+1
-1
build/lib/extensions.js
build/lib/extensions.js
+1
-4
build/lib/extensions.ts
build/lib/extensions.ts
+1
-1
product.json
product.json
+77
-0
src/vs/platform/extensionManagement/node/extensionManagementService.ts
...rm/extensionManagement/node/extensionManagementService.ts
+2
-13
src/vs/platform/product/common/productService.ts
src/vs/platform/product/common/productService.ts
+9
-0
src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts
...ces/extensions/electron-browser/cachedExtensionScanner.ts
+1
-3
未找到文件。
build/builtInExtensions.json
已删除
100644 → 0
浏览文件 @
0074066c
[
{
"name"
:
"ms-vscode.node-debug"
,
"version"
:
"1.44.4"
,
"repo"
:
"https://github.com/Microsoft/vscode-node-debug"
,
"metadata"
:
{
"id"
:
"b6ded8fb-a0a0-4c1c-acbd-ab2a3bc995a6"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
},
{
"name"
:
"ms-vscode.node-debug2"
,
"version"
:
"1.42.1"
,
"repo"
:
"https://github.com/Microsoft/vscode-node-debug2"
,
"metadata"
:
{
"id"
:
"36d19e17-7569-4841-a001-947eb18602b2"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
},
{
"name"
:
"ms-vscode.references-view"
,
"version"
:
"0.0.50"
,
"repo"
:
"https://github.com/Microsoft/vscode-reference-view"
,
"metadata"
:
{
"id"
:
"dc489f46-520d-4556-ae85-1f9eab3c412d"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
},
{
"name"
:
"ms-vscode.js-debug-companion"
,
"version"
:
"0.0.4"
,
"repo"
:
"https://github.com/microsoft/vscode-js-debug-companion"
,
"metadata"
:
{
"id"
:
"99cb0b7f-7354-4278-b8da-6cc79972169d"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
}
]
build/builtin/browser-main.js
浏览文件 @
54442c1c
...
...
@@ -9,7 +9,7 @@ const os = require('os');
const
{
remote
}
=
require
(
'
electron
'
);
const
dialog
=
remote
.
dialog
;
const
builtInExtensionsPath
=
path
.
join
(
__dirname
,
'
..
'
,
'
builtInExtensions
.json
'
);
const
builtInExtensionsPath
=
path
.
join
(
__dirname
,
'
..
'
,
'
..
'
,
'
product
.json
'
);
const
controlFilePath
=
path
.
join
(
os
.
homedir
(),
'
.vscode-oss-dev
'
,
'
extensions
'
,
'
control.json
'
);
function
readJson
(
filePath
)
{
...
...
@@ -110,7 +110,7 @@ function render(el, state) {
function
main
()
{
const
el
=
document
.
getElementById
(
'
extensions
'
);
const
builtin
=
readJson
(
builtInExtensionsPath
);
const
builtin
=
readJson
(
builtInExtensionsPath
)
.
builtInExtensions
;
let
control
;
try
{
...
...
@@ -122,4 +122,4 @@ function main() {
render
(
el
,
{
builtin
,
control
});
}
window
.
onload
=
main
;
\ No newline at end of file
window
.
onload
=
main
;
build/lib/builtInExtensions.js
浏览文件 @
54442c1c
...
...
@@ -18,7 +18,7 @@ const fancyLog = require('fancy-log');
const
ansiColors
=
require
(
'
ansi-colors
'
);
const
root
=
path
.
dirname
(
path
.
dirname
(
__dirname
));
const
builtInExtensions
=
require
(
'
../builtInExtensions.json
'
)
;
const
builtInExtensions
=
JSON
.
parse
(
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'
../../product.json
'
),
'
utf8
'
)).
builtInExtensions
;
const
controlFilePath
=
path
.
join
(
os
.
homedir
(),
'
.vscode-oss-dev
'
,
'
extensions
'
,
'
control.json
'
);
const
ENABLE_LOGGING
=
!
process
.
env
[
'
VSCODE_BUILD_BUILTIN_EXTENSIONS_SILENCE_PLEASE
'
];
...
...
build/lib/extensions.js
浏览文件 @
54442c1c
...
...
@@ -28,7 +28,6 @@ const util = require('./util');
const
root
=
path
.
dirname
(
path
.
dirname
(
__dirname
));
const
commit
=
util
.
getVersion
(
root
);
const
sourceMappingURLBase
=
`https://ticino.blob.core.windows.net/sourcemaps/
${
commit
}
`
;
const
product
=
require
(
'
../../product.json
'
);
function
fromLocal
(
extensionPath
)
{
const
webpackFilename
=
path
.
join
(
extensionPath
,
'
extension.webpack.config.js
'
);
const
input
=
fs
.
existsSync
(
webpackFilename
)
...
...
@@ -187,10 +186,8 @@ const excludedExtensions = [
'
vscode-test-resolver
'
,
'
ms-vscode.node-debug
'
,
'
ms-vscode.node-debug2
'
,
'
ms.vscode.js-debug-nightly
'
];
const
builtInExtensions
=
require
(
'
../builtInExtensions.json
'
)
.
filter
(({
forQualities
})
=>
{
var
_a
;
return
!
product
.
quality
||
((
_a
=
forQualities
===
null
||
forQualities
===
void
0
?
void
0
:
forQualities
.
includes
)
===
null
||
_a
===
void
0
?
void
0
:
_a
.
call
(
forQualities
,
product
.
quality
))
!==
false
;
});
const
builtInExtensions
=
JSON
.
parse
(
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'
../../product.json
'
),
'
utf8
'
)).
builtInExtensions
;
function
packageLocalExtensionsStream
()
{
const
localExtensionDescriptions
=
glob
.
sync
(
'
extensions/*/package.json
'
)
.
map
(
manifestPath
=>
{
...
...
build/lib/extensions.ts
浏览文件 @
54442c1c
...
...
@@ -229,7 +229,7 @@ interface IBuiltInExtension {
metadata
:
any
;
}
const
builtInExtensions
:
IBuiltInExtension
[]
=
require
(
'
../builtInExtensions.json
'
)
;
const
builtInExtensions
:
IBuiltInExtension
[]
=
JSON
.
parse
(
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'
../../product.json
'
),
'
utf8
'
)).
builtInExtensions
;
export
function
packageLocalExtensionsStream
():
NodeJS
.
ReadWriteStream
{
const
localExtensionDescriptions
=
(
<
string
[]
>
glob
.
sync
(
'
extensions/*/package.json
'
))
...
...
product.json
浏览文件 @
54442c1c
...
...
@@ -22,5 +22,82 @@
"urlProtocol"
:
"code-oss"
,
"extensionAllowedProposedApi"
:
[
"ms-vscode.references-view"
],
"builtInExtensions"
:
[
{
"name"
:
"ms-vscode.node-debug"
,
"version"
:
"1.44.4"
,
"repo"
:
"https://github.com/Microsoft/vscode-node-debug"
,
"metadata"
:
{
"id"
:
"b6ded8fb-a0a0-4c1c-acbd-ab2a3bc995a6"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
},
{
"name"
:
"ms-vscode.node-debug2"
,
"version"
:
"1.42.1"
,
"repo"
:
"https://github.com/Microsoft/vscode-node-debug2"
,
"metadata"
:
{
"id"
:
"36d19e17-7569-4841-a001-947eb18602b2"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
},
{
"name"
:
"ms-vscode.references-view"
,
"version"
:
"0.0.50"
,
"repo"
:
"https://github.com/Microsoft/vscode-reference-view"
,
"metadata"
:
{
"id"
:
"dc489f46-520d-4556-ae85-1f9eab3c412d"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
},
{
"name"
:
"ms-vscode.js-debug-companion"
,
"version"
:
"0.0.4"
,
"repo"
:
"https://github.com/microsoft/vscode-js-debug-companion"
,
"metadata"
:
{
"id"
:
"99cb0b7f-7354-4278-b8da-6cc79972169d"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
},
{
"name"
:
"ms-vscode.js-debug-nightly"
,
"version"
:
"2020.3.3117"
,
"repo"
:
"https://github.com/Microsoft/vscode-js-debug"
,
"metadata"
:
{
"id"
:
"7acbb4ce-c85a-49d4-8d95-a8054406ae97"
,
"publisherId"
:
{
"publisherId"
:
"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee"
,
"publisherName"
:
"ms-vscode"
,
"displayName"
:
"Microsoft"
,
"flags"
:
"verified"
},
"publisherDisplayName"
:
"Microsoft"
}
}
]
}
src/vs/platform/extensionManagement/node/extensionManagementService.ts
浏览文件 @
54442c1c
...
...
@@ -754,6 +754,7 @@ export class ExtensionManagementService extends Disposable implements IExtension
// Scan other system extensions during development
const
devSystemExtensionsPromise
=
this
.
getDevSystemExtensionsList
()
.
then
(
devSystemExtensionsList
=>
{
console
.
log
(
devSystemExtensionsList
);
if
(
devSystemExtensionsList
.
length
)
{
return
this
.
scanExtensions
(
this
.
devSystemExtensionsPath
,
ExtensionType
.
System
)
.
then
(
result
=>
{
...
...
@@ -945,20 +946,8 @@ export class ExtensionManagementService extends Disposable implements IExtension
return
this
.
_devSystemExtensionsPath
;
}
private
_devSystemExtensionsFilePath
:
string
|
null
=
null
;
private
get
devSystemExtensionsFilePath
():
string
{
if
(
!
this
.
_devSystemExtensionsFilePath
)
{
this
.
_devSystemExtensionsFilePath
=
path
.
normalize
(
path
.
join
(
getPathFromAmdModule
(
require
,
''
),
'
..
'
,
'
build
'
,
'
builtInExtensions.json
'
));
}
return
this
.
_devSystemExtensionsFilePath
;
}
private
getDevSystemExtensionsList
():
Promise
<
string
[]
>
{
return
pfs
.
readFile
(
this
.
devSystemExtensionsFilePath
,
'
utf8
'
)
.
then
<
string
[]
>
(
raw
=>
{
const
parsed
:
{
name
:
string
}[]
=
JSON
.
parse
(
raw
);
return
parsed
.
map
(({
name
})
=>
name
);
});
return
Promise
.
resolve
(
product
.
builtInExtensions
?
product
.
builtInExtensions
.
map
(
e
=>
e
.
name
)
:
[]);
}
private
toNonCancellablePromise
<
T
>
(
promise
:
Promise
<
T
>
):
Promise
<
T
>
{
...
...
src/vs/platform/product/common/productService.ts
浏览文件 @
54442c1c
...
...
@@ -14,6 +14,13 @@ export interface IProductService extends Readonly<IProductConfiguration> {
}
export
interface
IBuiltInExtension
{
readonly
name
:
string
;
readonly
version
:
string
;
readonly
repo
:
string
;
readonly
metadata
:
any
;
}
export
interface
IProductConfiguration
{
readonly
version
:
string
;
readonly
date
?:
string
;
...
...
@@ -30,6 +37,8 @@ export interface IProductConfiguration {
readonly
urlProtocol
:
string
;
readonly
dataFolderName
:
string
;
readonly
builtInExtensions
?:
IBuiltInExtension
[];
readonly
downloadUrl
?:
string
;
readonly
updateUrl
?:
string
;
readonly
target
?:
string
;
...
...
src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts
浏览文件 @
54442c1c
...
...
@@ -260,9 +260,7 @@ export class CachedExtensionScanner {
let
finalBuiltinExtensions
:
Promise
<
IExtensionDescription
[]
>
=
builtinExtensions
;
if
(
devMode
)
{
const
builtInExtensionsFilePath
=
path
.
normalize
(
path
.
join
(
getPathFromAmdModule
(
require
,
''
),
'
..
'
,
'
build
'
,
'
builtInExtensions.json
'
));
const
builtInExtensions
=
pfs
.
readFile
(
builtInExtensionsFilePath
,
'
utf8
'
)
.
then
<
IBuiltInExtension
[]
>
(
raw
=>
JSON
.
parse
(
raw
));
const
builtInExtensions
=
Promise
.
resolve
<
IBuiltInExtension
[]
>
(
product
.
builtInExtensions
||
[]);
const
controlFilePath
=
path
.
join
(
os
.
homedir
(),
'
.vscode-oss-dev
'
,
'
extensions
'
,
'
control.json
'
);
const
controlFile
=
pfs
.
readFile
(
controlFilePath
,
'
utf8
'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录