Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to electron 16 #137241

Merged
merged 125 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
a49ca73
chore: bump electron@15.3.0
deepak1556 Nov 8, 2021
6f7b1db
chore: bump node@16.x
deepak1556 Nov 8, 2021
8f1fd6f
chore: enable render process reuse
deepak1556 Nov 8, 2021
61e5c44
Revert "watcher - use `type` property for crash reporter location"
deepak1556 Nov 8, 2021
7a4e1bc
Revert "watcher - enable crash reports on linux (#136264)"
deepak1556 Nov 8, 2021
c977b4f
chore: enable crashpad on linux
deepak1556 Nov 8, 2021
0f34870
chore: bump electron@15.3.1
deepak1556 Nov 16, 2021
d4425c0
chore: update api changes
deepak1556 Nov 16, 2021
287cce6
chore: bump @vscode/sqlite3@5.0.3
deepak1556 Nov 16, 2021
ee611fe
spec: skip non-context aware module unittests
deepak1556 Nov 17, 2021
ef62374
chore: fix perf hook integration with node environment
deepak1556 Nov 17, 2021
0cb6aa5
fix: adopt fs api changes
deepak1556 Nov 17, 2021
72b19a7
chore: fix integration tests
deepak1556 Nov 17, 2021
4d6c180
chore: bump electron@15.3.2
deepak1556 Nov 18, 2021
e35f169
chore: bump electron@16.0.0
deepak1556 Nov 18, 2021
2a08926
temp(macOS): kill test instances in OSS
deepak1556 Nov 18, 2021
9943525
Revert "temp(macOS): kill test instances in OSS"
deepak1556 Nov 18, 2021
afc2446
chore: update chromium version for clang downloader
deepak1556 Nov 18, 2021
385b69f
some :lipstick: changes
bpasero Nov 18, 2021
9d9c462
align with changes
bpasero Nov 18, 2021
735c398
adopt more fs.rm
bpasero Nov 18, 2021
f47d3af
:lipstick:
bpasero Nov 18, 2021
863eb7c
chore: bump @vscode/sqlite3@5.0.4
deepak1556 Nov 18, 2021
97022ee
fix layers check to account for duplicated types from node.js
bpasero Nov 18, 2021
38abf6c
update todo for type casts
bpasero Nov 18, 2021
cb9fff5
smoke - fix compile issue
bpasero Nov 18, 2021
ce3e969
chore: update module cache
deepak1556 Nov 18, 2021
87b312d
watcher - fix unhandled rejection (fix #137416)
bpasero Nov 18, 2021
4f44039
ci: update node version
deepak1556 Nov 18, 2021
627f1b2
enable stack dumping
bpasero Nov 19, 2021
e9d46ff
Merge branch 'main' into electron-16.x.y
bpasero Nov 19, 2021
6b34356
update electron types to 16.x
bpasero Nov 20, 2021
f20ebff
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 22, 2021
ec4837a
chore: bump @vscode/sqlite3@5.0.5
deepak1556 Nov 22, 2021
e18a431
fix layer issue
bpasero Nov 22, 2021
5530687
add `AbortSignal` to core types
bpasero Nov 22, 2021
4bc2923
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 22, 2021
43f1a0b
chore: update linux compile flags
deepak1556 Nov 22, 2021
21b98f9
ci: fix linux build
deepak1556 Nov 22, 2021
9aed22c
ci: update github ci cache
deepak1556 Nov 22, 2021
7ada167
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 22, 2021
7949b72
ci: fix remote build in github ci
deepak1556 Nov 22, 2021
6a0ee12
ci: better fix for remote build
deepak1556 Nov 22, 2021
8a284f3
chore: bump azure cache
deepak1556 Nov 22, 2021
f6e73cc
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 22, 2021
d6fa4da
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 23, 2021
283fe75
chore: fix merge conflict
deepak1556 Nov 23, 2021
69c531a
:chore: update to electron@16.0.2
bpasero Nov 25, 2021
4b91694
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 26, 2021
54d2202
chore: bump @vscode/sqlite3@5.0.7
deepak1556 Nov 26, 2021
7b17ffa
ci: update to gcc-4.9 for remote
deepak1556 Nov 26, 2021
fd5a9ea
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 26, 2021
d1a9148
Merge branch 'main' into electron-16.x.y
bpasero Nov 28, 2021
c22714f
Merge branch 'main' into electron-16.x.y
bpasero Nov 28, 2021
5254b84
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 29, 2021
3236625
ci: switch to buster for linux arm
deepak1556 Nov 29, 2021
2b4d70d
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Nov 29, 2021
eda9ce2
ci: fix build on linux arm64
deepak1556 Nov 29, 2021
2108162
Merge branch 'main' into electron-16.x.y
bpasero Nov 30, 2021
fdffcd8
ci: fix arm client compiler toolchain
deepak1556 Dec 2, 2021
c7bbed8
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 2, 2021
2cad43d
chore: bump electron@16.0.3
deepak1556 Dec 2, 2021
60bfc26
ci: fix compile flags for the c toolchain
deepak1556 Dec 2, 2021
1ed4b16
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 2, 2021
7fdfd96
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 7, 2021
1558ef2
chore: bump electron@16.0.4
deepak1556 Dec 7, 2021
658e5c9
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 7, 2021
9e5c513
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 8, 2021
3c644ff
Merge commit 'c332de5b0cbb9272335ddccc5a523665e5f08dcd' into electron…
deepak1556 Dec 9, 2021
01e0601
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 10, 2021
55e19e1
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 13, 2021
3828225
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 15, 2021
20b26db
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Dec 16, 2021
0a4b134
Add experimental dark mode flag (#139109)
rzhao271 Dec 16, 2021
e995807
Merge branch 'main' into electron-16.x.y
bpasero Dec 22, 2021
949b13d
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 4, 2022
4bd81bf
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 6, 2022
a6a0eb0
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 10, 2022
77e294d
chore: bump electron@16.0.6
deepak1556 Jan 10, 2022
6b2b084
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 10, 2022
a487ef2
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 12, 2022
5fd01cf
chore: bump electron@16.0.7
deepak1556 Jan 12, 2022
5018135
chore: experimental highlight API
deepak1556 Jan 12, 2022
3ef99a2
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 13, 2022
cae16eb
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 13, 2022
a05f7f8
smoke - fix compile issue
deepak1556 Jan 13, 2022
d2140ca
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 14, 2022
e4f6f7e
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 16, 2022
d9e57b7
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 17, 2022
7b48fa3
FIXME: custom ELECTRON_RUN_AS_NODE with node worker
deepak1556 Jan 17, 2022
28e5cb7
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 18, 2022
a7f1b73
Revert "chore: bump electron@16.0.7"
deepak1556 Jan 18, 2022
8df14a4
Revert "Revert "chore: bump electron@16.0.7""
deepak1556 Jan 19, 2022
08f2a15
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 19, 2022
865a677
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 19, 2022
85a4124
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 20, 2022
3b2245a
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 20, 2022
2ba8cdc
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 24, 2022
5bcf9f3
chore: fix github linux workflow
deepak1556 Jan 24, 2022
36c1f3b
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 24, 2022
8a3f490
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 25, 2022
db4621a
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 26, 2022
3e4336d
chore: address review feedback
deepak1556 Jan 26, 2022
e6beb68
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 31, 2022
0ace8c7
chore: bump electron@16.0.8
deepak1556 Jan 31, 2022
e0e0986
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Jan 31, 2022
069f7fa
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 1, 2022
8eab3db
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 1, 2022
360b668
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 2, 2022
50cb341
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 3, 2022
df2d6d6
ci: revert to stretch distro for linux arm
deepak1556 Feb 3, 2022
6c4cf6e
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 3, 2022
8559d27
ci: force build
deepak1556 Feb 3, 2022
7fe29a0
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 3, 2022
3234fd3
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 7, 2022
1feb6f1
chore: update yarn.lock
deepak1556 Feb 7, 2022
ca25ca4
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 7, 2022
2048ea2
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 7, 2022
5f020ff
address feedback
bpasero Feb 8, 2022
ea627db
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 8, 2022
9d18217
Revert "FIXME: custom ELECTRON_RUN_AS_NODE with node worker"
deepak1556 Feb 8, 2022
31f7ffa
ci: fix remote folder build
deepak1556 Feb 8, 2022
d6a9e57
chore: fix github linux ci
deepak1556 Feb 8, 2022
1c46972
Merge remote-tracking branch 'origin' into electron-16.x.y
deepak1556 Feb 8, 2022
3f50b65
:up: `versionSpec`
bpasero Feb 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand All @@ -123,8 +123,8 @@ jobs:
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-cacheNodeModules14-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-cacheNodeModules14-
key: ${{ runner.os }}-cacheNodeModules19-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-cacheNodeModules19-
- name: Get yarn cache directory path
id: yarnCacheDirPath
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand All @@ -195,8 +195,8 @@ jobs:
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-cacheNodeModules14-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-cacheNodeModules14-
key: ${{ runner.os }}-cacheNodeModules19-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-cacheNodeModules19-
- name: Get yarn cache directory path
id: yarnCacheDirPath
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand All @@ -269,8 +269,8 @@ jobs:
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-cacheNodeModules14-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-cacheNodeModules14-
key: ${{ runner.os }}-cacheNodeModules19-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-cacheNodeModules19-
- name: Get yarn cache directory path
id: yarnCacheDirPath
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rich-navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: Install dependencies
if: steps.caching-stage.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
disturl "https://electronjs.org/headers"
target "13.5.2"
target "16.0.8"
runtime "electron"
build_from_source "true"
2 changes: 1 addition & 1 deletion build/.cachesalt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021-11-24T12:04:58.681Z
2022-02-03T12:38:01.545Z
2 changes: 1 addition & 1 deletion build/azure-pipelines/darwin/product-build-darwin-sign.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/darwin/product-build-darwin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/distro-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pr:
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/exploration-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pr: none
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/linux/product-build-alpine.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
51 changes: 35 additions & 16 deletions build/azure-pipelines/linux/product-build-linux-client.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down Expand Up @@ -87,21 +87,40 @@ steps:
set -e
export npm_config_arch=$(NPM_ARCH)

if [ -z "$CC" ] || [ -z "$CXX" ]; then
# Download clang based on chromium revision used by vscode
curl -s https://raw.githubusercontent.com/chromium/chromium/91.0.4472.164/tools/clang/scripts/update.py | python - --output-dir=$PWD/.build/CR_Clang --host-os=linux
# Download libcxx headers and objects from upstream electron releases
DEBUG=libcxx-fetcher \
VSCODE_LIBCXX_OBJECTS_DIR=$PWD/.build/libcxx-objects \
VSCODE_LIBCXX_HEADERS_DIR=$PWD/.build/libcxx_headers \
VSCODE_LIBCXXABI_HEADERS_DIR=$PWD/.build/libcxxabi_headers \
VSCODE_ARCH="$(NPM_ARCH)" \
node build/linux/libcxx-fetcher.js
# Set compiler toolchain
export CC=$PWD/.build/CR_Clang/bin/clang
export CXX=$PWD/.build/CR_Clang/bin/clang++
export CXXFLAGS="-nostdinc++ -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -D__NO_INLINE__ -isystem$PWD/.build/libcxx_headers/include -isystem$PWD/.build/libcxxabi_headers/include -fPIC -flto=thin -fsplit-lto-unit"
export LDFLAGS="-stdlib=libc++ -fuse-ld=lld -flto=thin -fsplit-lto-unit -L$PWD/.build/libcxx-objects -lc++abi"
# Download clang based on chromium revision used by vscode
curl -s https://raw.githubusercontent.com/chromium/chromium/96.0.4664.110/tools/clang/scripts/update.py | python - --output-dir=$PWD/.build/CR_Clang --host-os=linux
# Download libcxx headers and objects from upstream electron releases
DEBUG=libcxx-fetcher \
VSCODE_LIBCXX_OBJECTS_DIR=$PWD/.build/libcxx-objects \
VSCODE_LIBCXX_HEADERS_DIR=$PWD/.build/libcxx_headers \
VSCODE_LIBCXXABI_HEADERS_DIR=$PWD/.build/libcxxabi_headers \
VSCODE_ARCH="$(NPM_ARCH)" \
node build/linux/libcxx-fetcher.js
# Set compiler toolchain
# Flags for the client build are based on
# https://source.chromium.org/chromium/chromium/src/+/refs/tags/96.0.4664.110:build/config/arm.gni
# https://source.chromium.org/chromium/chromium/src/+/refs/tags/96.0.4664.110:build/config/compiler/BUILD.gn
# https://source.chromium.org/chromium/chromium/src/+/refs/tags/96.0.4664.110:build/config/c++/BUILD.gn
export CC=$PWD/.build/CR_Clang/bin/clang
export CXX=$PWD/.build/CR_Clang/bin/clang++
export CXXFLAGS="-nostdinc++ -D__NO_INLINE__ -isystem$PWD/.build/libcxx_headers -isystem$PWD/.build/libcxx_headers/include -isystem$PWD/.build/libcxxabi_headers/include -fPIC -flto=thin -fsplit-lto-unit"
export CFLAGS="-nostdinc++ -D__NO_INLINE__ -isystem$PWD/.build/libcxx_headers -isystem$PWD/.build/libcxx_headers/include -isystem$PWD/.build/libcxxabi_headers/include -fPIC -flto=thin -fsplit-lto-unit"
export LDFLAGS="-stdlib=libc++ -fuse-ld=lld -flto=thin -fsplit-lto-unit -L$PWD/.build/libcxx-objects -lc++abi"

if [ "$VSCODE_ARCH" == "arm64" ]; then
export CXXFLAGS="${CXXFLAGS} --target=aarch64-linux-gnu -fwhole-program-vtables"
export CFLAGS="${CFLAGS} --target=aarch64-linux-gnu -fwhole-program-vtables"
export LDFLAGS="${LDFLAGS} --target=aarch64-linux-gnu -march=arm64 -fwhole-program-vtables"
export VSCODE_REMOTE_CC=/usr/bin/aarch64-linux-gnu-gcc
export VSCODE_REMOTE_CXX=/usr/bin/aarch64-linux-gnu-g++
fi

if [ "$VSCODE_ARCH" == "armhf" ]; then
export CXXFLAGS="${CXXFLAGS} --target=arm-linux-gnueabihf -march=armv7-a -mthumb -mfloat-abi=hard -mfpu=neon -mtune=generic-armv7-a"
export CFLAGS="${CFLAGS} --target=arm-linux-gnueabihf -march=armv7-a -mthumb -mfloat-abi=hard -mfpu=neon -mtune=generic-armv7-a"
export LDFLAGS="${LDFLAGS} --target=arm-linux-gnueabihf -march=armv7-a"
export VSCODE_REMOTE_CC=/usr/bin/arm-linux-gnueabihf-gcc
export VSCODE_REMOTE_CXX=/usr/bin/arm-linux-gnueabihf-g++
fi

for i in {1..3}; do # try 3 times, for Terrapin
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/linux/product-build-linux-server.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/linux/snap-build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: DownloadPipelineArtifact@0
displayName: "Download Pipeline Artifact"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/product-compile.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/product-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureCLI@2
inputs:
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/publish-types/publish-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pool:
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- bash: |
TAG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
Expand Down
12 changes: 6 additions & 6 deletions build/azure-pipelines/sdl-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ stages:
outputFormat: "pre"
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down Expand Up @@ -139,7 +139,7 @@ stages:
toolMajorVersion: "V2"
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down Expand Up @@ -191,7 +191,7 @@ stages:

if [ -z "$CC" ] || [ -z "$CXX" ]; then
# Download clang based on chromium revision used by vscode
curl -s https://raw.githubusercontent.com/chromium/chromium/91.0.4472.164/tools/clang/scripts/update.py | python - --output-dir=$PWD/.build/CR_Clang --host-os=linux
curl -s https://raw.githubusercontent.com/chromium/chromium/96.0.4664.110/tools/clang/scripts/update.py | python - --output-dir=$PWD/.build/CR_Clang --host-os=linux
# Download libcxx headers and objects from upstream electron releases
DEBUG=libcxx-fetcher \
VSCODE_LIBCXX_OBJECTS_DIR=$PWD/.build/libcxx-objects \
Expand All @@ -202,13 +202,13 @@ stages:
# Set compiler toolchain
export CC=$PWD/.build/CR_Clang/bin/clang
export CXX=$PWD/.build/CR_Clang/bin/clang++
export CXXFLAGS="-nostdinc++ -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -isystem$PWD/.build/libcxx_headers/include -isystem$PWD/.build/libcxxabi_headers/include -fPIC -flto=thin -fsplit-lto-unit"
export CXXFLAGS="-nostdinc++ -D__NO_INLINE__ -isystem$PWD/.build/libcxx_headers -isystem$PWD/.build/libcxx_headers/include -isystem$PWD/.build/libcxxabi_headers/include -fPIC -flto=thin -fsplit-lto-unit"
export LDFLAGS="-stdlib=libc++ -fuse-ld=lld -flto=thin -fsplit-lto-unit -L$PWD/.build/libcxx-objects -lc++abi"
fi

if [ "$VSCODE_ARCH" == "x64" ]; then
export VSCODE_REMOTE_CC=$(which gcc-4.8)
export VSCODE_REMOTE_CXX=$(which g++-4.8)
export VSCODE_REMOTE_CC=$(which gcc-4.9)
export VSCODE_REMOTE_CXX=$(which g++-4.9)
fi

for i in {1..3}; do # try 3 times, for Terrapin
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/web/product-build-web.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines/win32/product-build-win32.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
versionSpec: "16.x"

- task: UsePythonVersion@0
inputs:
Expand Down
33 changes: 29 additions & 4 deletions build/lib/layersChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ const CORE_TYPES = [
'trimLeft',
'trimRight',
'queueMicrotask',
'Array',
'Uint8Array',
'Uint16Array',
'Uint32Array',
'Int8Array',
'Int16Array',
'Int32Array',
'Float32Array',
'Float64Array',
'Uint8ClampedArray',
'BigUint64Array',
'BigInt64Array',
'btoa',
'atob',
'AbortSignal',
'MessageChannel',
'MessagePort'
];
Expand Down Expand Up @@ -89,8 +104,8 @@ const RULES = [
// Common: vs/platform/environment/common/*
{
target: '**/vs/platform/environment/common/*.ts',
disallowedTypes: [ /* Ignore native types that are defined from here */],
allowedTypes: CORE_TYPES,
disallowedTypes: [ /* Ignore native types that are defined from here */],
disallowedDefinitions: [
'lib.dom.d.ts',
'@types/node' // no node.js
Expand All @@ -99,8 +114,8 @@ const RULES = [
// Common: vs/platform/windows/common/windows.ts
{
target: '**/vs/platform/windows/common/windows.ts',
disallowedTypes: [ /* Ignore native types that are defined from here */],
allowedTypes: CORE_TYPES,
disallowedTypes: [ /* Ignore native types that are defined from here */],
disallowedDefinitions: [
'lib.dom.d.ts',
'@types/node' // no node.js
Expand All @@ -109,8 +124,8 @@ const RULES = [
// Common: vs/platform/native/common/native.ts
{
target: '**/vs/platform/native/common/native.ts',
disallowedTypes: [ /* Ignore native types that are defined from here */],
allowedTypes: CORE_TYPES,
disallowedTypes: [ /* Ignore native types that are defined from here */],
disallowedDefinitions: [
'lib.dom.d.ts',
'@types/node' // no node.js
Expand Down Expand Up @@ -145,6 +160,9 @@ const RULES = [
target: '**/vs/**/browser/**',
allowedTypes: CORE_TYPES,
disallowedTypes: NATIVE_TYPES,
allowedDefinitions: [
'@types/node/stream/consumers.d.ts' // node.js started to duplicate types from lib.dom.d.ts so we have to account for that
],
disallowedDefinitions: [
'@types/node' // no node.js
]
Expand Down Expand Up @@ -228,13 +246,20 @@ function checkFile(program, sourceFile, rule) {
if (symbol) {
const declarations = symbol.declarations;
if (Array.isArray(declarations)) {
for (const declaration of declarations) {
DeclarationLoop: for (const declaration of declarations) {
if (declaration) {
const parent = declaration.parent;
if (parent) {
const parentSourceFile = parent.getSourceFile();
if (parentSourceFile) {
const definitionFileName = parentSourceFile.fileName;
if (rule.allowedDefinitions) {
for (const allowedDefinition of rule.allowedDefinitions) {
if (definitionFileName.indexOf(allowedDefinition) >= 0) {
continue DeclarationLoop;
}
}
}
if (rule.disallowedDefinitions) {
for (const disallowedDefinition of rule.disallowedDefinitions) {
if (definitionFileName.indexOf(disallowedDefinition) >= 0) {
Expand Down
Loading