Skip to content

Commit bd4370a

Browse files
committed
Merge remote-tracking branch 'origin/main' into jsdoc2
2 parents 3c163c3 + 71b996e commit bd4370a

File tree

1,872 files changed

+42205
-25437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,872 files changed

+42205
-25437
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
**/src/typings/**/*.d.ts
2626
**/src/vs/*/**/*.d.ts
2727
**/src/vs/base/test/common/filters.perf.data.js
28-
**/src/vs/css.build.js
29-
**/src/vs/css.js
3028
**/src/vs/loader.js
31-
**/src/vs/nls.build.js
32-
**/src/vs/nls.js
3329
**/test/unit/assert.js
3430
**/typings/**

.eslintrc.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"constructor-super": "warn",
1515
"curly": "warn",
1616
"eqeqeq": "warn",
17+
"prefer-const": [
18+
"warn",
19+
{
20+
"destructuring": "all"
21+
}
22+
],
1723
"no-buffer-constructor": "warn",
1824
"no-caller": "warn",
1925
"no-case-declarations": "warn",
@@ -204,7 +210,8 @@
204210
// - electron-browser
205211
"when": "hasBrowser",
206212
"allow": [
207-
"vs/css!./**/*"
213+
"vs/css!./**/*",
214+
"@microsoft/applicationinsights-web"
208215
]
209216
},
210217
{
@@ -214,7 +221,6 @@
214221
// - electron-main
215222
"when": "hasNode",
216223
"allow": [
217-
"@microsoft/applicationinsights-web",
218224
"@parcel/watcher",
219225
"@vscode/sqlite3",
220226
"@vscode/vscode-languagedetection",
@@ -269,6 +275,7 @@
269275
// imports that are allowed in all /test/ files
270276
"when": "test",
271277
"allow": [
278+
"vs/css.build",
272279
"assert",
273280
"sinon",
274281
"sinon-test"
@@ -323,7 +330,9 @@
323330
"vs/base/~",
324331
"vs/base/parts/*/~",
325332
"vs/platform/*/~",
326-
"tas-client-umd" // node module allowed even in /common/
333+
"tas-client-umd", // node module allowed even in /common/
334+
"@microsoft/1ds-core-js",// node module allowed even in /common/
335+
"@microsoft/1ds-post-js" // node module allowed even in /common/
327336
]
328337
},
329338
{
@@ -437,8 +446,7 @@
437446
}, // TODO@layers
438447
"tas-client-umd", // node module allowed even in /common/
439448
"vscode-textmate", // node module allowed even in /common/
440-
"@vscode/vscode-languagedetection", // node module allowed even in /common/
441-
"@microsoft/applicationinsights-web" // node module allowed even in /common/
449+
"@vscode/vscode-languagedetection" // node module allowed even in /common/
442450
]
443451
},
444452
{
@@ -569,7 +577,7 @@
569577
"restrictions": []
570578
},
571579
{
572-
"target": "src/vs/{css.d.ts,monaco.d.ts,nls.d.ts,nls.mock.ts}",
580+
"target": "src/vs/{loader.d.ts,css.ts,css.build.ts,monaco.d.ts,nls.ts,nls.build.ts,nls.mock.ts}",
573581
"restrictions": []
574582
},
575583
{

.github/classifier.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"snippets": {"assign": ["jrieken"]},
146146
"splitview": {"assign": ["joaomoreno"]},
147147
"suggest": {"assign": ["jrieken"]},
148-
"tasks": {"assign": ["alexr00"], "accuracy": 0.85},
148+
"tasks": {"assign": ["meganrogge"], "accuracy": 0.85},
149149
"telemetry": {"assign": []},
150150
"themes": {"assign": ["aeschli"]},
151151
"timeline": {"assign": ["lramos15"]},

.github/workflows/basic.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
# TODO: rename azure-pipelines/linux/xvfb.init to github-actions
2323
- name: Setup Build Environment
2424
run: |
25-
sudo apt-get update
26-
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
2725
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
2826
sudo chmod +x /etc/init.d/xvfb
2927
sudo update-rc.d xvfb defaults
@@ -41,8 +39,8 @@ jobs:
4139
uses: actions/cache@v3
4240
with:
4341
path: "**/node_modules"
44-
key: ${{ runner.os }}-cacheNodeModules21-${{ steps.nodeModulesCacheKey.outputs.value }}
45-
restore-keys: ${{ runner.os }}-cacheNodeModules21-
42+
key: ${{ runner.os }}-cacheNodeModules22-${{ steps.nodeModulesCacheKey.outputs.value }}
43+
restore-keys: ${{ runner.os }}-cacheNodeModules22-
4644
- name: Get yarn cache directory path
4745
id: yarnCacheDirPath
4846
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
@@ -62,10 +60,7 @@ jobs:
6260
run: yarn --frozen-lockfile --network-timeout 180000
6361

6462
- name: Compile and Download
65-
run: yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions
66-
67-
- name: Compile Integration Tests
68-
run: yarn --cwd test/integration/browser compile
63+
run: yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64"
6964

7065
- name: Run Unit Tests
7166
id: electron-unit-tests
@@ -97,8 +92,8 @@ jobs:
9792
uses: actions/cache@v3
9893
with:
9994
path: "**/node_modules"
100-
key: ${{ runner.os }}-cacheNodeModules21-${{ steps.nodeModulesCacheKey.outputs.value }}
101-
restore-keys: ${{ runner.os }}-cacheNodeModules21-
95+
key: ${{ runner.os }}-cacheNodeModules22-${{ steps.nodeModulesCacheKey.outputs.value }}
96+
restore-keys: ${{ runner.os }}-cacheNodeModules22-
10297
- name: Get yarn cache directory path
10398
id: yarnCacheDirPath
10499
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
@@ -117,9 +112,6 @@ jobs:
117112
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
118113
run: yarn --frozen-lockfile --network-timeout 180000
119114

120-
- name: Download Playwright
121-
run: yarn playwright-install
122-
123115
- name: Run Hygiene Checks
124116
run: yarn gulp hygiene
125117

@@ -163,8 +155,8 @@ jobs:
163155
uses: actions/cache@v3
164156
with:
165157
path: "**/node_modules"
166-
key: ${{ runner.os }}-cacheNodeModules21-${{ steps.nodeModulesCacheKey.outputs.value }}
167-
restore-keys: ${{ runner.os }}-cacheNodeModules21-
158+
key: ${{ runner.os }}-cacheNodeModules22-${{ steps.nodeModulesCacheKey.outputs.value }}
159+
restore-keys: ${{ runner.os }}-cacheNodeModules22-
168160
- name: Get yarn cache directory path
169161
id: yarnCacheDirPath
170162
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ jobs:
125125
uses: actions/cache@v2
126126
with:
127127
path: "**/node_modules"
128-
key: ${{ runner.os }}-cacheNodeModules21-${{ steps.nodeModulesCacheKey.outputs.value }}
129-
restore-keys: ${{ runner.os }}-cacheNodeModules21-
128+
key: ${{ runner.os }}-cacheNodeModules22-${{ steps.nodeModulesCacheKey.outputs.value }}
129+
restore-keys: ${{ runner.os }}-cacheNodeModules22-
130130
- name: Get yarn cache directory path
131131
id: yarnCacheDirPath
132132
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
@@ -197,8 +197,8 @@ jobs:
197197
uses: actions/cache@v2
198198
with:
199199
path: "**/node_modules"
200-
key: ${{ runner.os }}-cacheNodeModules21-${{ steps.nodeModulesCacheKey.outputs.value }}
201-
restore-keys: ${{ runner.os }}-cacheNodeModules21-
200+
key: ${{ runner.os }}-cacheNodeModules22-${{ steps.nodeModulesCacheKey.outputs.value }}
201+
restore-keys: ${{ runner.os }}-cacheNodeModules22-
202202
- name: Get yarn cache directory path
203203
id: yarnCacheDirPath
204204
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
@@ -271,8 +271,8 @@ jobs:
271271
uses: actions/cache@v2
272272
with:
273273
path: "**/node_modules"
274-
key: ${{ runner.os }}-cacheNodeModules21-${{ steps.nodeModulesCacheKey.outputs.value }}
275-
restore-keys: ${{ runner.os }}-cacheNodeModules21-
274+
key: ${{ runner.os }}-cacheNodeModules22-${{ steps.nodeModulesCacheKey.outputs.value }}
275+
restore-keys: ${{ runner.os }}-cacheNodeModules22-
276276
- name: Get yarn cache directory path
277277
id: yarnCacheDirPath
278278
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}

.github/workflows/no-yarn-lock-changes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818
run: |
1919
echo "user: ${{ github.event.pull_request.user.login }}"
2020
echo "role: ${{ fromJson(steps.get_permissions.outputs.data).permission }}"
21+
echo "is dependabot: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}"
2122
echo "should_run: ${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}"
22-
echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}"
23+
echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) && github.event.pull_request.user.login != 'dependabot[bot]' }}"
2324
- name: Get file changes
2425
uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272
2526
if: ${{ steps.control.outputs.should_run == 'true' }}

.github/workflows/pr-chat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ jobs:
2121
with:
2222
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
2323
slack_token: ${{ secrets.SLACK_TOKEN }}
24+
slack_user_token: ${{ secrets.SLACK_USER_TOKEN }}
2425
slack_bot_name: "VSCodeBot"
2526
notification_channel: codereview

.vscode/launch.json

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
"request": "attach",
1717
"restart": true,
1818
"name": "Attach to Extension Host",
19-
// set to a large number: if there is an issue we're debugging that keeps
20-
// the extension host from coming up, or the renderer is paused/crashes
21-
// before it happens, developers will get an annoying alert, e.g. #126826.
22-
// This can be set to 0 in 1.59.
23-
"timeout": 999999999,
19+
"timeout": 0,
2420
"port": 5870,
2521
"outFiles": [
2622
"${workspaceFolder}/out/**/*.js",
@@ -96,6 +92,23 @@
9692
"order": 6
9793
}
9894
},
95+
{
96+
"type": "extensionHost",
97+
"request": "launch",
98+
"name": "VS Code Configuration Editing Tests",
99+
"runtimeExecutable": "${execPath}",
100+
"args": [
101+
"--extensionDevelopmentPath=${workspaceFolder}/extensions/configuration-editing",
102+
"--extensionTestsPath=${workspaceFolder}/extensions/configuration-editing/out/test"
103+
],
104+
"outFiles": [
105+
"${workspaceFolder}/out/**/*.js"
106+
],
107+
"presentation": {
108+
"group": "5_tests",
109+
"order": 6
110+
}
111+
},
99112
{
100113
"type": "extensionHost",
101114
"request": "launch",
@@ -188,24 +201,6 @@
188201
"order": 5
189202
}
190203
},
191-
{
192-
"type": "extensionHost",
193-
"request": "launch",
194-
"name": "VS Code Custom Editor Tests",
195-
"runtimeExecutable": "${execPath}",
196-
"args": [
197-
"${workspaceFolder}/extensions/vscode-custom-editor-tests/test-workspace",
198-
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-custom-editor-tests",
199-
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-custom-editor-tests/out/test"
200-
],
201-
"outFiles": [
202-
"${workspaceFolder}/out/**/*.js"
203-
],
204-
"presentation": {
205-
"group": "5_tests",
206-
"order": 6
207-
}
208-
},
209204
{
210205
"type": "pwa-chrome",
211206
"request": "attach",
@@ -244,6 +239,7 @@
244239
"runtimeArgs": [
245240
"--inspect=5875",
246241
"--no-cached-data",
242+
"--crash-reporter-directory=${workspaceFolder}/.profile-oss/crashes",
247243
// for general runtime freezes: https://github.com/microsoft/vscode/issues/127861#issuecomment-904144910
248244
"--disable-features=CalculateNativeWinOcclusion",
249245
],

.vscode/notebooks/api.github-issues

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"kind": 2,
99
"language": "github-issues",
10-
"value": "$repo=repo:microsoft/vscode\n$milestone=milestone:\"May 2022\""
10+
"value": "$repo=repo:microsoft/vscode\n$milestone=milestone:\"June 2022\""
1111
},
1212
{
1313
"kind": 1,

.vscode/notebooks/endgame.github-issues

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"kind": 2,
99
"language": "github-issues",
10-
"value": "$REPOS=repo:microsoft/vscode repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-dev repo:microsoft/vscode-js-debug repo:microsoft/vscode-remote-release repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-emmet-helper repo:microsoft/vscode-remotehub repo:microsoft/vscode-remote-repositories-github repo:microsoft/vscode-livepreview repo:microsoft/vscode-python repo:microsoft/vscode-jupyter repo:microsoft/vscode-jupyter-internal repo:microsoft/vscode-unpkg\r\n\r\n$MILESTONE=milestone:\"May 2022\""
10+
"value": "$REPOS=repo:microsoft/vscode repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-dev repo:microsoft/vscode-js-debug repo:microsoft/vscode-remote-release repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-emmet-helper repo:microsoft/vscode-remotehub repo:microsoft/vscode-remote-repositories-github repo:microsoft/vscode-livepreview repo:microsoft/vscode-python repo:microsoft/vscode-jupyter repo:microsoft/vscode-jupyter-internal repo:microsoft/vscode-unpkg\n\n$MILESTONE=milestone:\"June 2022\""
1111
},
1212
{
1313
"kind": 1,

0 commit comments

Comments
 (0)