Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
0467c027
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0467c027
编写于
7月 15, 2019
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/joao/build-cleanup'
上级
3fd1d555
e79146c0
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
107 addition
and
111 deletion
+107
-111
build/azure-pipelines/darwin/product-build-darwin.yml
build/azure-pipelines/darwin/product-build-darwin.yml
+0
-2
build/azure-pipelines/darwin/publish.sh
build/azure-pipelines/darwin/publish.sh
+1
-1
build/azure-pipelines/linux/product-build-linux.yml
build/azure-pipelines/linux/product-build-linux.yml
+6
-8
build/azure-pipelines/linux/publish.sh
build/azure-pipelines/linux/publish.sh
+15
-17
build/azure-pipelines/linux/snap-build-linux.yml
build/azure-pipelines/linux/snap-build-linux.yml
+4
-5
build/azure-pipelines/product-build.yml
build/azure-pipelines/product-build.yml
+0
-6
build/azure-pipelines/product-compile.yml
build/azure-pipelines/product-compile.yml
+7
-2
build/azure-pipelines/upload-sourcemaps.js
build/azure-pipelines/upload-sourcemaps.js
+39
-0
build/azure-pipelines/web/product-build-web.yml
build/azure-pipelines/web/product-build-web.yml
+0
-2
build/gulpfile.vscode.js
build/gulpfile.vscode.js
+5
-31
build/lib/extensions.js
build/lib/extensions.js
+9
-14
build/lib/extensions.ts
build/lib/extensions.ts
+13
-19
extensions/css/.vscodeignore
extensions/css/.vscodeignore
+1
-0
extensions/debug-server-ready/.vscodeignore
extensions/debug-server-ready/.vscodeignore
+2
-1
extensions/emmet/.vscodeignore
extensions/emmet/.vscodeignore
+1
-0
extensions/php/.vscodeignore
extensions/php/.vscodeignore
+1
-0
extensions/python/.vscodeignore
extensions/python/.vscodeignore
+1
-0
extensions/yaml/.gitignore
extensions/yaml/.gitignore
+0
-1
package.json
package.json
+2
-2
未找到文件。
build/azure-pipelines/darwin/product-build-darwin.yml
浏览文件 @
0467c027
...
...
@@ -90,8 +90,6 @@ steps:
yarn gulp vscode-reh-darwin-min-ci
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
yarn gulp vscode-reh-web-darwin-min-ci
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" \
yarn gulp upload-vscode-sourcemaps
displayName
:
Build
-
script
:
|
...
...
build/azure-pipelines/darwin/publish.sh
浏览文件 @
0467c027
...
...
@@ -30,7 +30,7 @@ node build/azure-pipelines/common/publish.js \
../vscode-server-darwin.zip
# publish hockeyapp symbols
node build/azure-pipelines/common/symbols.js
"
$VSCODE_MIXIN_PASSWORD
"
"
$VSCODE_HOCKEYAPP_TOKEN
"
"
$VSCODE_ARCH
"
"
$VSCODE_HOCKEYAPP_ID_MACOS
"
node build/azure-pipelines/common/symbols.js
"
$VSCODE_MIXIN_PASSWORD
"
"
$VSCODE_HOCKEYAPP_TOKEN
"
x64
"
$VSCODE_HOCKEYAPP_ID_MACOS
"
# upload configuration
yarn gulp upload-vscode-configuration
build/azure-pipelines/linux/product-build-linux.yml
浏览文件 @
0467c027
...
...
@@ -34,8 +34,6 @@ steps:
-
script
:
|
set -e
export npm_config_arch="$(VSCODE_ARCH)"
cat << EOF > ~/.netrc
machine github.com
login vscode
...
...
@@ -86,22 +84,22 @@ steps:
-
script
:
|
set -e
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
yarn gulp vscode-linux-
$VSCODE_ARCH
-min-ci
yarn gulp vscode-linux-
x64
-min-ci
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
yarn gulp vscode-reh-linux-
$VSCODE_ARCH
-min-ci
yarn gulp vscode-reh-linux-
x64
-min-ci
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
yarn gulp vscode-reh-web-linux-
$VSCODE_ARCH
-min-ci
yarn gulp vscode-reh-web-linux-
x64
-min-ci
displayName
:
Build
-
script
:
|
set -e
yarn gulp "electron-
$(VSCODE_ARCH)
"
yarn gulp "electron-
x64
"
# xvfb seems to be crashing often, let's make sure it's always up
service xvfb start
DISPLAY=:10 ./scripts/test.sh --build --tfs "Unit Tests"
# yarn smoketest -- --build "$(agent.builddirectory)/VSCode-linux-
$(VSCODE_ARCH)
"
# yarn smoketest -- --build "$(agent.builddirectory)/VSCode-linux-
x64
"
displayName
:
Run unit tests
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
...
...
@@ -117,7 +115,7 @@ steps:
-
task
:
PublishPipelineArtifact@0
displayName
:
'
Publish
Pipeline
Artifact'
inputs
:
artifactName
:
snap-
$(VSCODE_ARCH)
artifactName
:
snap-
x64
targetPath
:
.build/linux/snap-tarball
-
task
:
ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
...
...
build/azure-pipelines/linux/publish.sh
浏览文件 @
0467c027
...
...
@@ -4,7 +4,7 @@ REPO="$(pwd)"
ROOT
=
"
$REPO
/.."
# Publish tarball
PLATFORM_LINUX
=
"linux-
$VSCODE_ARCH
"
PLATFORM_LINUX
=
"linux-
x64
"
BUILDNAME
=
"VSCode-
$PLATFORM_LINUX
"
BUILD
=
"
$ROOT
/
$BUILDNAME
"
BUILD_VERSION
=
"
$(
date
+%s
)
"
...
...
@@ -19,24 +19,22 @@ rm -rf $ROOT/code-*.tar.*
node build/azure-pipelines/common/publish.js
"
$VSCODE_QUALITY
"
"
$PLATFORM_LINUX
"
archive-unsigned
"
$TARBALL_FILENAME
"
"
$VERSION
"
true
"
$TARBALL_PATH
"
# Publish Remote Extension Host
if
[[
"
$VSCODE_ARCH
"
!=
"ia32"
]]
;
then
LEGACY_SERVER_BUILD_NAME
=
"vscode-reh-
$PLATFORM_LINUX
"
SERVER_BUILD_NAME
=
"vscode-server-
$PLATFORM_LINUX
"
SERVER_TARBALL_FILENAME
=
"vscode-server-
$PLATFORM_LINUX
.tar.gz"
SERVER_TARBALL_PATH
=
"
$ROOT
/
$SERVER_TARBALL_FILENAME
"
LEGACY_SERVER_BUILD_NAME
=
"vscode-reh-
$PLATFORM_LINUX
"
SERVER_BUILD_NAME
=
"vscode-server-
$PLATFORM_LINUX
"
SERVER_TARBALL_FILENAME
=
"vscode-server-
$PLATFORM_LINUX
.tar.gz"
SERVER_TARBALL_PATH
=
"
$ROOT
/
$SERVER_TARBALL_FILENAME
"
rm
-rf
$ROOT
/vscode-server-
*
.tar.
*
(
cd
$ROOT
&&
mv
$LEGACY_SERVER_BUILD_NAME
$SERVER_BUILD_NAME
&&
tar
-czf
$SERVER_TARBALL_PATH
$SERVER_BUILD_NAME
)
rm
-rf
$ROOT
/vscode-server-
*
.tar.
*
(
cd
$ROOT
&&
mv
$LEGACY_SERVER_BUILD_NAME
$SERVER_BUILD_NAME
&&
tar
--owner
=
0
--group
=
0
-czf
$SERVER_TARBALL_PATH
$SERVER_BUILD_NAME
)
node build/azure-pipelines/common/publish.js
"
$VSCODE_QUALITY
"
"server-
$PLATFORM_LINUX
"
archive-unsigned
"
$SERVER_TARBALL_FILENAME
"
"
$VERSION
"
true
"
$SERVER_TARBALL_PATH
"
fi
node build/azure-pipelines/common/publish.js
"
$VSCODE_QUALITY
"
"server-
$PLATFORM_LINUX
"
archive-unsigned
"
$SERVER_TARBALL_FILENAME
"
"
$VERSION
"
true
"
$SERVER_TARBALL_PATH
"
# Publish hockeyapp symbols
node build/azure-pipelines/common/symbols.js
"
$VSCODE_MIXIN_PASSWORD
"
"
$VSCODE_HOCKEYAPP_TOKEN
"
"
$VSCODE_ARCH
"
"
$VSCODE_HOCKEYAPP_ID_LINUX64
"
node build/azure-pipelines/common/symbols.js
"
$VSCODE_MIXIN_PASSWORD
"
"
$VSCODE_HOCKEYAPP_TOKEN
"
"
x64
"
"
$VSCODE_HOCKEYAPP_ID_LINUX64
"
# Publish DEB
yarn gulp
"vscode-linux-
$VSCODE_ARCH
-build-deb"
PLATFORM_DEB
=
"linux-deb-
$VSCODE_ARCH
"
yarn gulp
"vscode-linux-
x64
-build-deb"
PLATFORM_DEB
=
"linux-deb-
x64
"
DEB_ARCH
=
"amd64"
DEB_FILENAME
=
"
$(
ls
$REPO
/.build/linux/deb/
$DEB_ARCH
/deb/
)
"
DEB_PATH
=
"
$REPO
/.build/linux/deb/
$DEB_ARCH
/deb/
$DEB_FILENAME
"
...
...
@@ -44,8 +42,8 @@ DEB_PATH="$REPO/.build/linux/deb/$DEB_ARCH/deb/$DEB_FILENAME"
node build/azure-pipelines/common/publish.js
"
$VSCODE_QUALITY
"
"
$PLATFORM_DEB
"
package
"
$DEB_FILENAME
"
"
$VERSION
"
true
"
$DEB_PATH
"
# Publish RPM
yarn gulp
"vscode-linux-
$VSCODE_ARCH
-build-rpm"
PLATFORM_RPM
=
"linux-rpm-
$VSCODE_ARCH
"
yarn gulp
"vscode-linux-
x64
-build-rpm"
PLATFORM_RPM
=
"linux-rpm-
x64
"
RPM_ARCH
=
"x86_64"
RPM_FILENAME
=
"
$(
ls
$REPO
/.build/linux/rpm/
$RPM_ARCH
/ |
grep
.rpm
)
"
RPM_PATH
=
"
$REPO
/.build/linux/rpm/
$RPM_ARCH
/
$RPM_FILENAME
"
...
...
@@ -53,10 +51,10 @@ RPM_PATH="$REPO/.build/linux/rpm/$RPM_ARCH/$RPM_FILENAME"
node build/azure-pipelines/common/publish.js
"
$VSCODE_QUALITY
"
"
$PLATFORM_RPM
"
package
"
$RPM_FILENAME
"
"
$VERSION
"
true
"
$RPM_PATH
"
# Publish Snap
yarn gulp
"vscode-linux-
$VSCODE_ARCH
-prepare-snap"
yarn gulp
"vscode-linux-
x64
-prepare-snap"
# Pack snap tarball artifact, in order to preserve file perms
mkdir
-p
$REPO
/.build/linux/snap-tarball
SNAP_TARBALL_PATH
=
"
$REPO
/.build/linux/snap-tarball/snap-
$VSCODE_ARCH
.tar.gz"
SNAP_TARBALL_PATH
=
"
$REPO
/.build/linux/snap-tarball/snap-
x64
.tar.gz"
rm
-rf
$SNAP_TARBALL_PATH
(
cd
.build/linux
&&
tar
-czf
$SNAP_TARBALL_PATH
snap
)
build/azure-pipelines/linux/snap-build-linux.yml
浏览文件 @
0467c027
...
...
@@ -16,7 +16,7 @@ steps:
-
task
:
DownloadPipelineArtifact@0
displayName
:
'
Download
Pipeline
Artifact'
inputs
:
artifactName
:
snap-
$(VSCODE_ARCH)
artifactName
:
snap-
x64
targetPath
:
.build/linux/snap-tarball
-
script
:
|
...
...
@@ -31,14 +31,13 @@ steps:
# Define variables
REPO="$(pwd)"
ARCH="$(VSCODE_ARCH)"
SNAP_ROOT="$REPO/.build/linux/snap/$ARCH"
SNAP_ROOT="$REPO/.build/linux/snap/x64"
# Install build dependencies
(cd build && yarn)
# Unpack snap tarball artifact, in order to preserve file perms
SNAP_TARBALL_PATH="$REPO/.build/linux/snap-tarball/snap-
$ARCH
.tar.gz"
SNAP_TARBALL_PATH="$REPO/.build/linux/snap-tarball/snap-
x64
.tar.gz"
(cd .build/linux && tar -xzf $SNAP_TARBALL_PATH)
# Create snap package
...
...
@@ -52,4 +51,4 @@ steps:
# Publish snap package
AZURE_DOCUMENTDB_MASTERKEY="$(builds-docdb-key-readwrite)" \
AZURE_STORAGE_ACCESS_KEY_2="$(vscode-storage-key)" \
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "linux-snap-$ARCH" package "$SNAP_FILENAME" "$VERSION" true "$SNAP_PATH"
\ No newline at end of file
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "linux-snap-x64" package "$SNAP_FILENAME" "$VERSION" true "$SNAP_PATH"
\ No newline at end of file
build/azure-pipelines/product-build.yml
浏览文件 @
0467c027
...
...
@@ -10,8 +10,6 @@ jobs:
-
job
:
Compile
pool
:
vmImage
:
'
Ubuntu-16.04'
variables
:
VSCODE_ARCH
:
x64
container
:
vscode-x64
steps
:
-
template
:
product-compile.yml
...
...
@@ -42,8 +40,6 @@ jobs:
condition
:
and(succeeded(), eq(variables['VSCODE_COMPILE_ONLY'], 'false'), eq(variables['VSCODE_BUILD_LINUX'], 'true'))
pool
:
vmImage
:
'
Ubuntu-16.04'
variables
:
VSCODE_ARCH
:
x64
container
:
vscode-x64
dependsOn
:
-
Compile
...
...
@@ -54,8 +50,6 @@ jobs:
condition
:
and(succeeded(), eq(variables['VSCODE_COMPILE_ONLY'], 'false'), eq(variables['VSCODE_BUILD_LINUX'], 'true'))
pool
:
vmImage
:
'
Ubuntu-16.04'
variables
:
VSCODE_ARCH
:
x64
container
:
snapcraft
dependsOn
:
Linux
steps
:
...
...
build/azure-pipelines/product-compile.yml
浏览文件 @
0467c027
...
...
@@ -31,8 +31,6 @@ steps:
-
script
:
|
set -e
export npm_config_arch="$(VSCODE_ARCH)"
cat << EOF > ~/.netrc
machine github.com
login vscode
...
...
@@ -109,6 +107,13 @@ steps:
displayName
:
Compile
condition
:
and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
-
script
:
|
set -e
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" \
node build/azure-pipelines/upload-sourcemaps
displayName
:
Upload sourcemaps
condition
:
and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
inputs
:
keyfile
:
'
.build/commit'
...
...
build/azure-pipelines/upload-sourcemaps.js
0 → 100644
浏览文件 @
0467c027
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
const
path
=
require
(
'
path
'
);
const
es
=
require
(
'
event-stream
'
);
const
azure
=
require
(
'
gulp-azure-storage
'
);
const
vfs
=
require
(
'
vinyl-fs
'
);
const
util
=
require
(
'
../lib/util
'
);
const
root
=
path
.
dirname
(
path
.
dirname
(
__dirname
));
const
commit
=
util
.
getVersion
(
root
);
function
main
()
{
const
vs
=
vfs
.
src
(
'
out-vscode-min/**/*.map
'
,
{
base
:
'
out-vscode-min
'
})
// client source-maps only
.
pipe
(
es
.
mapSync
(
f
=>
{
f
.
path
=
`
${
f
.
base
}
/core/
${
f
.
relative
}
`
;
return
f
;
}));
const
extensionsOut
=
vfs
.
src
([
'
.build/extensions/**/*.js.map
'
,
'
!**/node_modules/**
'
],
{
base
:
'
.build
'
});
return
es
.
merge
(
vs
,
extensionsOut
)
.
pipe
(
es
.
through
(
function
(
data
)
{
// debug
console
.
log
(
'
Uploading Sourcemap
'
,
data
.
relative
);
this
.
emit
(
'
data
'
,
data
);
}))
.
pipe
(
azure
.
upload
({
account
:
process
.
env
.
AZURE_STORAGE_ACCOUNT
,
key
:
process
.
env
.
AZURE_STORAGE_ACCESS_KEY
,
container
:
'
sourcemaps
'
,
prefix
:
commit
+
'
/
'
}));
}
main
();
\ No newline at end of file
build/azure-pipelines/web/product-build-web.yml
浏览文件 @
0467c027
...
...
@@ -34,8 +34,6 @@ steps:
-
script
:
|
set -e
export npm_config_arch="$(VSCODE_ARCH)"
cat << EOF > ~/.netrc
machine github.com
login vscode
...
...
build/gulpfile.vscode.js
浏览文件 @
0467c027
...
...
@@ -258,13 +258,12 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
const
src
=
gulp
.
src
(
out
+
'
/**
'
,
{
base
:
'
.
'
})
.
pipe
(
rename
(
function
(
path
)
{
path
.
dirname
=
path
.
dirname
.
replace
(
new
RegExp
(
'
^
'
+
out
),
'
out
'
);
}))
.
pipe
(
util
.
setExecutableBit
([
'
**/*.sh
'
]))
.
pipe
(
filter
([
'
**
'
,
'
!**/*.js.map
'
]));
const
root
=
path
.
resolve
(
path
.
join
(
__dirname
,
'
..
'
));
.
pipe
(
util
.
setExecutableBit
([
'
**/*.sh
'
]));
const
extensions
=
gulp
.
src
(
'
.build/extensions/**
'
,
{
base
:
'
.build
'
,
dot
:
true
});
const
sources
=
es
.
merge
(
src
,
extensions
);
const
sources
=
es
.
merge
(
src
,
extensions
)
.
pipe
(
filter
([
'
**
'
,
'
!**/*.js.map
'
],
{
dot
:
true
}));
let
version
=
packageJson
.
version
;
const
quality
=
product
.
quality
;
...
...
@@ -301,6 +300,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
const
telemetry
=
gulp
.
src
(
'
.build/telemetry/**
'
,
{
base
:
'
.build/telemetry
'
,
dot
:
true
});
const
root
=
path
.
resolve
(
path
.
join
(
__dirname
,
'
..
'
));
const
dependenciesSrc
=
_
.
flatten
(
productionDependencies
.
map
(
d
=>
path
.
relative
(
root
,
d
.
path
)).
map
(
d
=>
[
`
${
d
}
/**`
,
`!
${
d
}
/**/{test,tests}/**`
]));
const
deps
=
gulp
.
src
(
dependenciesSrc
,
{
base
:
'
.
'
,
dot
:
true
})
...
...
@@ -527,32 +527,6 @@ gulp.task('vscode-translations-import', function () {
}));
});
// Sourcemaps
gulp
.
task
(
'
upload-vscode-sourcemaps
'
,
()
=>
{
const
vs
=
gulp
.
src
(
'
out-vscode-min/**/*.map
'
,
{
base
:
'
out-vscode-min
'
})
// client source-maps only
.
pipe
(
es
.
mapSync
(
f
=>
{
f
.
path
=
`
${
f
.
base
}
/core/
${
f
.
relative
}
`
;
return
f
;
}));
const
extensionsOut
=
gulp
.
src
([
'
extensions/**/out/**/*.map
'
,
'
!extensions/**/node_modules/**
'
],
{
base
:
'
.
'
});
const
extensionsDist
=
gulp
.
src
([
'
extensions/**/dist/**/*.map
'
,
'
!extensions/**/node_modules/**
'
],
{
base
:
'
.
'
});
return
es
.
merge
(
vs
,
extensionsOut
,
extensionsDist
)
.
pipe
(
es
.
through
(
function
(
data
)
{
// debug
console
.
log
(
'
Uploading Sourcemap
'
,
data
.
relative
);
this
.
emit
(
'
data
'
,
data
);
}))
.
pipe
(
azure
.
upload
({
account
:
process
.
env
.
AZURE_STORAGE_ACCOUNT
,
key
:
process
.
env
.
AZURE_STORAGE_ACCESS_KEY
,
container
:
'
sourcemaps
'
,
prefix
:
commit
+
'
/
'
}));
});
// This task is only run for the MacOS build
const
generateVSCodeConfigurationTask
=
task
.
define
(
'
generate-vscode-configuration
'
,
()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
build/lib/extensions.js
浏览文件 @
0467c027
...
...
@@ -111,12 +111,6 @@ function fromLocalWebpack(extensionPath) {
data
.
contents
=
Buffer
.
from
(
contents
.
replace
(
/
\n\/\/
# sourceMappingURL=
(
.*
)
$/gm
,
function
(
_m
,
g1
)
{
return
`\n//# sourceMappingURL=
${
sourceMappingURLBase
}
/extensions/
${
path
.
basename
(
extensionPath
)}
/
${
relativeOutputPath
}
/
${
g1
}
`
;
}),
'
utf8
'
);
if
(
/
\.
js
\.
map$/
.
test
(
data
.
path
))
{
if
(
!
fs
.
existsSync
(
path
.
dirname
(
data
.
path
)))
{
fs
.
mkdirSync
(
path
.
dirname
(
data
.
path
));
}
fs
.
writeFileSync
(
data
.
path
,
data
.
contents
);
}
this
.
emit
(
'
data
'
,
data
);
}));
});
...
...
@@ -195,20 +189,21 @@ function packageLocalExtensionsStream() {
})
.
filter
(({
name
})
=>
excludedExtensions
.
indexOf
(
name
)
===
-
1
)
.
filter
(({
name
})
=>
builtInExtensions
.
every
(
b
=>
b
.
name
!==
name
));
return
es
.
merge
(
gulp
.
src
(
'
extensions/node_modules/**
'
,
{
base
:
'
.
'
}),
...
localExtensionDescriptions
.
map
(
extension
=>
{
const
nodeModules
=
gulp
.
src
(
'
extensions/node_modules/**
'
,
{
base
:
'
.
'
});
const
localExtensions
=
localExtensionDescriptions
.
map
(
extension
=>
{
return
fromLocal
(
extension
.
path
)
.
pipe
(
rename
(
p
=>
p
.
dirname
=
`extensions/
${
extension
.
name
}
/
${
p
.
dirname
}
`
));
})
)
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
])
)
.
pipe
(
filter
([
'
**
'
,
'
!**/*.js.map
'
]));
})
;
return
es
.
merge
(
nodeModules
,
...
localExtensions
)
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
]));
}
exports
.
packageLocalExtensionsStream
=
packageLocalExtensionsStream
;
function
packageMarketplaceExtensionsStream
()
{
return
es
.
merge
(
builtInExtensions
.
map
(
extension
=>
{
const
extensions
=
builtInExtensions
.
map
(
extension
=>
{
return
fromMarketplace
(
extension
.
name
,
extension
.
version
,
extension
.
metadata
)
.
pipe
(
rename
(
p
=>
p
.
dirname
=
`extensions/
${
extension
.
name
}
/
${
p
.
dirname
}
`
));
})
)
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
])
)
.
pipe
(
filter
([
'
**
'
,
'
!**/*.js.map
'
]));
})
;
return
es
.
merge
(
extensions
)
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
]));
}
exports
.
packageMarketplaceExtensionsStream
=
packageMarketplaceExtensionsStream
;
build/lib/extensions.ts
浏览文件 @
0467c027
...
...
@@ -130,12 +130,6 @@ function fromLocalWebpack(extensionPath: string): Stream {
return
`\n//# sourceMappingURL=
${
sourceMappingURLBase
}
/extensions/
${
path
.
basename
(
extensionPath
)}
/
${
relativeOutputPath
}
/
${
g1
}
`
;
}),
'
utf8
'
);
if
(
/
\.
js
\.
map$/
.
test
(
data
.
path
))
{
if
(
!
fs
.
existsSync
(
path
.
dirname
(
data
.
path
)))
{
fs
.
mkdirSync
(
path
.
dirname
(
data
.
path
));
}
fs
.
writeFileSync
(
data
.
path
,
data
.
contents
);
}
this
.
emit
(
'
data
'
,
data
);
}));
});
...
...
@@ -237,22 +231,22 @@ export function packageLocalExtensionsStream(): NodeJS.ReadWriteStream {
.
filter
(({
name
})
=>
excludedExtensions
.
indexOf
(
name
)
===
-
1
)
.
filter
(({
name
})
=>
builtInExtensions
.
every
(
b
=>
b
.
name
!==
name
));
return
es
.
merge
(
gulp
.
src
(
'
extensions/node_modules/**
'
,
{
base
:
'
.
'
}),
...
localExtensionDescriptions
.
map
(
extension
=>
{
return
fromLocal
(
extension
.
path
)
.
pipe
(
rename
(
p
=>
p
.
dirname
=
`extensions/
${
extension
.
name
}
/
${
p
.
dirname
}
`
));
})
)
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
]))
.
pipe
(
filter
([
'
**
'
,
'
!**/*.js.map
'
]));
const
nodeModules
=
gulp
.
src
(
'
extensions/node_modules/**
'
,
{
base
:
'
.
'
});
const
localExtensions
=
localExtensionDescriptions
.
map
(
extension
=>
{
return
fromLocal
(
extension
.
path
)
.
pipe
(
rename
(
p
=>
p
.
dirname
=
`extensions/
${
extension
.
name
}
/
${
p
.
dirname
}
`
));
});
return
es
.
merge
(
nodeModules
,
...
localExtensions
)
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
]));
}
export
function
packageMarketplaceExtensionsStream
():
NodeJS
.
ReadWriteStream
{
return
es
.
merge
(
builtInExtensions
.
map
(
extension
=>
{
const
extensions
=
builtInExtensions
.
map
(
extension
=>
{
return
fromMarketplace
(
extension
.
name
,
extension
.
version
,
extension
.
metadata
)
.
pipe
(
rename
(
p
=>
p
.
dirname
=
`extensions/
${
extension
.
name
}
/
${
p
.
dirname
}
`
));
}))
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
]))
.
pipe
(
filter
([
'
**
'
,
'
!**/*.js.map
'
]));
});
return
es
.
merge
(
extensions
)
.
pipe
(
util2
.
setExecutableBit
([
'
**/*.sh
'
]));
}
extensions/css/.vscodeignore
浏览文件 @
0467c027
test/**
cgmanifest.json
.vscode
\ No newline at end of file
extensions/debug-server-ready/.vscodeignore
浏览文件 @
0467c027
...
...
@@ -2,4 +2,5 @@ src/**
tsconfig.json
out/**
extension.webpack.config.js
yarn.lock
\ No newline at end of file
yarn.lock
.vscode
\ No newline at end of file
extensions/emmet/.vscodeignore
浏览文件 @
0467c027
...
...
@@ -6,3 +6,4 @@ extension.webpack.config.js
CONTRIBUTING.md
cgmanifest.json
yarn.lock
.vscode
\ No newline at end of file
extensions/php/.vscodeignore
浏览文件 @
0467c027
...
...
@@ -4,3 +4,4 @@ out/test/**
src/**
tsconfig.json
cgmanifest.json
.vscode
\ No newline at end of file
extensions/python/.vscodeignore
浏览文件 @
0467c027
...
...
@@ -3,3 +3,4 @@ src/**
tsconfig.json
extension.webpack.config.js
cgmanifest.json
.vscode
\ No newline at end of file
extensions/yaml/.gitignore
已删除
100644 → 0
浏览文件 @
3fd1d555
node_modules
package.json
浏览文件 @
0467c027
{
"name"
:
"code-oss-dev"
,
"version"
:
"1.37.0"
,
"distro"
:
"
1b653228fb34e67e96bfa840efd8a9abbd12e4d1
"
,
"distro"
:
"
531b0a76830b110854c94498a586e36d0da3cea4
"
,
"author"
:
{
"name"
:
"Microsoft Corporation"
},
...
...
@@ -156,4 +156,4 @@
"windows-mutex"
:
"0.2.1"
,
"windows-process-tree"
:
"0.2.4"
}
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录