Skip to content

Commit 17d344a

Browse files
authored
Merge branch 'main' into fix_sticky_tabs
2 parents 0ab9506 + 3f92eb6 commit 17d344a

File tree

782 files changed

+18490
-13346
lines changed

Some content is hidden

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

782 files changed

+18490
-13346
lines changed

.github/classifier.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-github-triage-actions/master/classifier-deep/apply/apply-labels/deep-classifier-config.schema.json",
3-
"vacation": ["RMacfarlane", "eamodio"],
2+
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-github-triage-actions/stable/classifier-deep/apply/apply-labels/deep-classifier-config.schema.json",
3+
"vacation": [],
44
"assignees": {
55
"nameToOverrideAccuracyOf": {"accuracy": 0.8}
66
},
@@ -23,7 +23,7 @@
2323
"context-keys": {"assign": []},
2424
"css-less-scss": {"assign": ["aeschli"]},
2525
"custom-editors": {"assign": ["mjbvz"]},
26-
"debug": {"assign": ["weinand"]},
26+
"debug": {"assign": ["roblourens"]},
2727
"dialogs": {"assign": ["sbatten"]},
2828
"diff-editor": {"assign": ["alexdima"]},
2929
"dropdown": {"assign": []},
@@ -85,7 +85,7 @@
8585
"html": {"assign": ["aeschli"]},
8686
"i18n": {"assign": []},
8787
"icon-brand": {"assign": []},
88-
"icons-product": {"assign": ["misolori"]},
88+
"icons-product": {"assign": ["daviddossett"]},
8989
"inlay-hints": {"assign": ["jrieken", "hediet"]},
9090
"inline-completions": {"assign": ["hediet"]},
9191
"install-update": {"assign": []},
@@ -132,7 +132,7 @@
132132
"rename": {"assign": ["jrieken"]},
133133
"scm": {"assign": ["lszomoru"]},
134134
"screencast-mode": {"assign": ["lszomoru"]},
135-
"search": {"assign": ["roblourens"]},
135+
"search": {"assign": ["roblourens", "andreamah"]},
136136
"search-editor": {"assign": ["roblourens"]},
137137
"search-replace": {"assign": ["sandy081"]},
138138
"semantic-tokens": {"assign": ["alexdima", "aeschli"]},
@@ -158,7 +158,7 @@
158158
"undo-redo": {"assign": ["alexdima"]},
159159
"unit-test": {"assign": []},
160160
"uri": {"assign": ["jrieken"]},
161-
"ux": {"assign": ["misolori"]},
161+
"ux": {"assign": ["daviddossett"]},
162162
"variable-resolving": {"assign": []},
163163
"vscode-build": {"assign": []},
164164
"web": {"assign": []},

.github/commands.json

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"name": "*caused-by-extension",
7676
"action": "close",
7777
"reason": "not_planned",
78-
"comment": "This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the [marketplace](https://aka.ms/vscodemarketplace) for VS Code. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
78+
"comment": "This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the [marketplace](https://aka.ms/vscodemarketplace) for VS Code. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting). If you don't know which extension is causing the problem, you can run `Help: Start extension bisect` from the command palette (F1) to help identify the problem extension.\n\nHappy Coding!"
7979
},
8080
{
8181
"type": "label",
@@ -84,21 +84,6 @@
8484
"reason": "not_planned",
8585
"comment": "The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
8686
},
87-
{
88-
"type": "label",
89-
"name": "notebook",
90-
"regex": "notebook.*",
91-
"assign": [
92-
"rebornix"
93-
]
94-
},
95-
{
96-
"type": "label",
97-
"name": "notebook-triage",
98-
"regex": "notebook.*",
99-
"action": "updateLabels",
100-
"addLabel": "notebook-triage"
101-
},
10287
{
10388
"type": "label",
10489
"name": "L10N",

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
7z.exe a .build/node_modules_cache/cache.7z -mx3 `@.build/node_modules_list.txt
7070
7171
- name: Compile and Download
72-
run: yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions
72+
run: DEBUG=pw:install yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions
7373

7474
- name: Compile Integration Tests
7575
run: yarn --cwd test/integration/browser compile
@@ -145,7 +145,7 @@ jobs:
145145
run: yarn --frozen-lockfile --network-timeout 180000
146146

147147
- name: Compile and Download
148-
run: yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions
148+
run: DEBUG=pw:install yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions
149149

150150
- name: Compile Integration Tests
151151
run: yarn --cwd test/integration/browser compile
@@ -216,7 +216,7 @@ jobs:
216216
run: yarn --frozen-lockfile --network-timeout 180000
217217

218218
- name: Compile and Download
219-
run: yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions
219+
run: DEBUG=pw:install yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions
220220

221221
- name: Compile Integration Tests
222222
run: yarn --cwd test/integration/browser compile
@@ -289,7 +289,7 @@ jobs:
289289
run: yarn --frozen-lockfile --network-timeout 180000
290290

291291
- name: Download Playwright
292-
run: yarn playwright-install
292+
run: DEBUG=pw:install yarn playwright-install
293293

294294
- name: Run Hygiene Checks
295295
run: yarn gulp hygiene

.github/workflows/monaco-editor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: yarn --frozen-lockfile --network-timeout 180000
5454

5555
- name: Download Playwright
56-
run: yarn playwright-install
56+
run: DEBUG=pw:install yarn playwright-install
5757

5858
- name: Run Monaco Editor Checks
5959
run: yarn monaco-compile-check

.vscode/notebooks/my-work.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": "// list of repos we work in\n$repos=repo:microsoft/vscode repo:microsoft/vscode-remote-release repo:microsoft/vscode-js-debug repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-github-issue-notebooks repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-dev repo:microsoft/vscode-unpkg repo:microsoft/vscode-references-view repo:microsoft/vscode-anycode repo:microsoft/vscode-hexeditor repo:microsoft/vscode-extension-telemetry repo:microsoft/vscode-livepreview repo:microsoft/vscode-remotehub repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-remote-repositories-github repo:microsoft/monaco-editor repo:microsoft/vscode-vsce\n\n// current milestone name\n$milestone=milestone:\"August 2022\""
10+
"value": "// list of repos we work in\n$repos=repo:microsoft/vscode repo:microsoft/vscode-remote-release repo:microsoft/vscode-js-debug repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-github-issue-notebooks repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-dev repo:microsoft/vscode-unpkg repo:microsoft/vscode-references-view repo:microsoft/vscode-anycode repo:microsoft/vscode-hexeditor repo:microsoft/vscode-extension-telemetry repo:microsoft/vscode-livepreview repo:microsoft/vscode-remotehub repo:microsoft/vscode-settings-sync-server repo:microsoft/vscode-remote-repositories-github repo:microsoft/monaco-editor repo:microsoft/vscode-vsce\n\n// current milestone name\n$milestone=milestone:\"September 2022\""
1111
},
1212
{
1313
"kind": 1,

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
],
6969
"git.branchProtectionPrompt": "alwaysCommitToNewBranch",
7070
"git.branchRandomName.enable": true,
71+
"git.fetchBeforeCheckout": true,
7172
"git.mergeEditor": true,
7273
"remote.extensionKind": {
7374
"msjsdiag.debugger-for-chrome": "workspace"

.yarnrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
disturl "https://electronjs.org/headers"
2-
target "19.0.12"
2+
target "19.0.17"
33
runtime "electron"
44
build_from_source "true"

build/azure-pipelines/common/createAsset.js

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,41 +150,49 @@ async function main() {
150150
const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://vscode.blob.core.windows.net`, credential, storagePipelineOptions);
151151
const containerClient = blobServiceClient.getContainerClient(quality);
152152
const blobClient = containerClient.getBlockBlobClient(blobName);
153-
const blobExists = await blobClient.exists();
154-
if (blobExists) {
155-
console.log(`Blob ${quality}, ${blobName} already exists, not publishing again.`);
156-
return;
157-
}
158153
const blobOptions = {
159154
blobHTTPHeaders: {
160155
blobContentType: mime.lookup(filePath),
161156
blobContentDisposition: `attachment; filename="${fileName}"`,
162157
blobCacheControl: 'max-age=31536000, public'
163158
}
164159
};
165-
const uploadPromises = [
166-
(0, retry_1.retry)(async () => {
160+
const uploadPromises = [];
161+
if (await blobClient.exists()) {
162+
console.log(`Blob ${quality}, ${blobName} already exists, not publishing again.`);
163+
}
164+
else {
165+
uploadPromises.push((0, retry_1.retry)(async () => {
167166
await blobClient.uploadFile(filePath, blobOptions);
168167
console.log('Blob successfully uploaded to Azure storage.');
169-
})
170-
];
168+
}));
169+
}
171170
const shouldUploadToMooncake = /true/i.test(process.env['VSCODE_PUBLISH_TO_MOONCAKE'] ?? 'true');
172171
if (shouldUploadToMooncake) {
173172
const mooncakeCredential = new identity_1.ClientSecretCredential(process.env['AZURE_MOONCAKE_TENANT_ID'], process.env['AZURE_MOONCAKE_CLIENT_ID'], process.env['AZURE_MOONCAKE_CLIENT_SECRET']);
174173
const mooncakeBlobServiceClient = new storage_blob_1.BlobServiceClient(`https://vscode.blob.core.chinacloudapi.cn`, mooncakeCredential, storagePipelineOptions);
175174
const mooncakeContainerClient = mooncakeBlobServiceClient.getContainerClient(quality);
176175
const mooncakeBlobClient = mooncakeContainerClient.getBlockBlobClient(blobName);
177-
uploadPromises.push((0, retry_1.retry)(async () => {
178-
await mooncakeBlobClient.uploadFile(filePath, blobOptions);
179-
console.log('Blob successfully uploaded to Mooncake Azure storage.');
180-
}));
181-
console.log('Uploading blobs to Azure storage and Mooncake Azure storage...');
176+
if (await mooncakeBlobClient.exists()) {
177+
console.log(`Mooncake Blob ${quality}, ${blobName} already exists, not publishing again.`);
178+
}
179+
else {
180+
uploadPromises.push((0, retry_1.retry)(async () => {
181+
await mooncakeBlobClient.uploadFile(filePath, blobOptions);
182+
console.log('Blob successfully uploaded to Mooncake Azure storage.');
183+
}));
184+
}
185+
if (uploadPromises.length) {
186+
console.log('Uploading blobs to Azure storage and Mooncake Azure storage...');
187+
}
182188
}
183189
else {
184-
console.log('Uploading blobs to Azure storage...');
190+
if (uploadPromises.length) {
191+
console.log('Uploading blobs to Azure storage...');
192+
}
185193
}
186194
await Promise.all(uploadPromises);
187-
console.log('All blobs successfully uploaded.');
195+
console.log(uploadPromises.length ? 'All blobs successfully uploaded.' : 'No blobs to upload.');
188196
const assetUrl = `${process.env['AZURE_CDN_URL']}/${quality}/${blobName}`;
189197
const blobPath = new URL(assetUrl).pathname;
190198
const mooncakeUrl = `${process.env['MOONCAKE_CDN_URL']}${blobPath}`;

build/azure-pipelines/common/createAsset.ts

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,6 @@ async function main(): Promise<void> {
178178
const blobServiceClient = new BlobServiceClient(`https://vscode.blob.core.windows.net`, credential, storagePipelineOptions);
179179
const containerClient = blobServiceClient.getContainerClient(quality);
180180
const blobClient = containerClient.getBlockBlobClient(blobName);
181-
const blobExists = await blobClient.exists();
182-
183-
if (blobExists) {
184-
console.log(`Blob ${quality}, ${blobName} already exists, not publishing again.`);
185-
return;
186-
}
187181

188182
const blobOptions: BlockBlobParallelUploadOptions = {
189183
blobHTTPHeaders: {
@@ -193,12 +187,15 @@ async function main(): Promise<void> {
193187
}
194188
};
195189

196-
const uploadPromises: Promise<void>[] = [
197-
retry(async () => {
190+
const uploadPromises: Promise<void>[] = [];
191+
if (await blobClient.exists()) {
192+
console.log(`Blob ${quality}, ${blobName} already exists, not publishing again.`);
193+
} else {
194+
uploadPromises.push(retry(async () => {
198195
await blobClient.uploadFile(filePath, blobOptions);
199196
console.log('Blob successfully uploaded to Azure storage.');
200-
})
201-
];
197+
}));
198+
}
202199

203200
const shouldUploadToMooncake = /true/i.test(process.env['VSCODE_PUBLISH_TO_MOONCAKE'] ?? 'true');
204201

@@ -208,18 +205,27 @@ async function main(): Promise<void> {
208205
const mooncakeContainerClient = mooncakeBlobServiceClient.getContainerClient(quality);
209206
const mooncakeBlobClient = mooncakeContainerClient.getBlockBlobClient(blobName);
210207

211-
uploadPromises.push(retry(async () => {
212-
await mooncakeBlobClient.uploadFile(filePath, blobOptions);
213-
console.log('Blob successfully uploaded to Mooncake Azure storage.');
214-
}));
208+
if (await mooncakeBlobClient.exists()) {
209+
console.log(`Mooncake Blob ${quality}, ${blobName} already exists, not publishing again.`);
210+
} else {
211+
uploadPromises.push(retry(async () => {
212+
await mooncakeBlobClient.uploadFile(filePath, blobOptions);
213+
console.log('Blob successfully uploaded to Mooncake Azure storage.');
214+
}));
215+
}
215216

216-
console.log('Uploading blobs to Azure storage and Mooncake Azure storage...');
217+
if (uploadPromises.length) {
218+
console.log('Uploading blobs to Azure storage and Mooncake Azure storage...');
219+
}
217220
} else {
218-
console.log('Uploading blobs to Azure storage...');
221+
if (uploadPromises.length) {
222+
console.log('Uploading blobs to Azure storage...');
223+
}
219224
}
220225

221226
await Promise.all(uploadPromises);
222-
console.log('All blobs successfully uploaded.');
227+
228+
console.log(uploadPromises.length ? 'All blobs successfully uploaded.' : 'No blobs to upload.');
223229

224230
const assetUrl = `${process.env['AZURE_CDN_URL']}/${quality}/${blobName}`;
225231
const blobPath = new URL(assetUrl).pathname;

build/azure-pipelines/darwin/product-build-darwin-sign.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ steps:
114114
artifact: unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive
115115
displayName: Download $(VSCODE_ARCH) artifact
116116

117-
- script: |
118-
set -e
119-
unzip $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin-$(VSCODE_ARCH).zip -d $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)
120-
mv $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin-$(VSCODE_ARCH).zip $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH).zip
121-
displayName: Unzip & move
122-
123117
- task: UseDotNet@2
124118
inputs:
125119
version: 2.x
@@ -129,20 +123,38 @@ steps:
129123

130124
- script: |
131125
set -e
132-
node build/azure-pipelines/common/sign "$(esrpclient.toolpath)/$(esrpclient.toolname)" darwin-sign $(ESRP-PKI) $(esrp-aad-username) $(esrp-aad-password) $(agent.builddirectory) VSCode-darwin-$(VSCODE_ARCH).zip
126+
node build/azure-pipelines/common/sign "$(esrpclient.toolpath)/$(esrpclient.toolname)" darwin-sign $(ESRP-PKI) $(esrp-aad-username) $(esrp-aad-password) $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive VSCode-darwin-$(VSCODE_ARCH).zip
133127
displayName: Codesign
134128
135129
- script: |
136130
set -e
137-
node build/azure-pipelines/common/sign "$(esrpclient.toolpath)/$(esrpclient.toolname)" darwin-notarize $(ESRP-PKI) $(esrp-aad-username) $(esrp-aad-password) $(agent.builddirectory) VSCode-darwin-$(VSCODE_ARCH).zip
131+
node build/azure-pipelines/common/sign "$(esrpclient.toolpath)/$(esrpclient.toolname)" darwin-notarize $(ESRP-PKI) $(esrp-aad-username) $(esrp-aad-password) $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive VSCode-darwin-$(VSCODE_ARCH).zip
138132
displayName: Notarize
139133
140134
- script: |
141135
set -e
142-
APP_ROOT=$(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)
136+
unzip $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin-$(VSCODE_ARCH).zip -d $(Agent.BuildDirectory)/VSCode-darwin-$(VSCODE_ARCH)
137+
displayName: Extract signed app
138+
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'arm64'))
139+
140+
- script: |
141+
set -e
142+
APP_ROOT="$(Agent.BuildDirectory)/VSCode-darwin-$(VSCODE_ARCH)"
143143
APP_NAME="`ls $APP_ROOT | head -n 1`"
144-
"$APP_ROOT/$APP_NAME/Contents/Resources/app/bin/code" --export-default-configuration=.build
145-
displayName: Verify start after signing (export configuration)
144+
echo "##vso[task.setvariable variable=APP_PATH]$APP_ROOT/$APP_NAME"
145+
displayName: Find application path
146+
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'arm64'))
147+
148+
- script: |
149+
set -e
150+
codesign -dv --deep --verbose=4 "$(APP_PATH)"
151+
displayName: Verify signature
152+
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'arm64'))
153+
154+
- script: |
155+
set -e
156+
"$(APP_PATH)/Contents/Resources/app/bin/code" --export-default-configuration=.build
157+
displayName: Verify signed application starts OK
146158
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'arm64'))
147159
148160
- script: |
@@ -155,9 +167,9 @@ steps:
155167
echo "##vso[task.setvariable variable=ASSET_ID]$ASSET_ID"
156168
displayName: Set asset id variable
157169
158-
- script: mv $(agent.builddirectory)/VSCode-darwin-x64.zip $(agent.builddirectory)/VSCode-darwin.zip
159-
displayName: Rename x64 build to it's legacy name
170+
- script: mv $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin-x64.zip $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin.zip
171+
displayName: Rename x64 build to its legacy name
160172
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'))
161173

162-
- publish: $(Agent.BuildDirectory)/VSCode-$(ASSET_ID).zip
174+
- publish: $(Pipeline.Workspace)/unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-$(ASSET_ID).zip
163175
artifact: vscode_client_darwin_$(VSCODE_ARCH)_archive

0 commit comments

Comments
 (0)