Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b19f033

Browse files
Merge pull request #642 from codestoryai/fetch-upstream-290524
Fetch upstream 290524
2 parents 85758fd + bbdeeb1 commit b19f033

File tree

212 files changed

+3488
-1739
lines changed

Some content is hidden

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

212 files changed

+3488
-1739
lines changed

.eslintrc.json

+4-9
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,13 @@
151151
{
152152
// Files should (only) be removed from the list they adopt the leak detector
153153
"exclude": [
154-
"src/vs/base/test/browser/browser.test.ts",
155-
"src/vs/base/test/browser/ui/scrollbar/scrollableElement.test.ts",
156-
"src/vs/base/test/browser/ui/scrollbar/scrollbarState.test.ts",
157154
"src/vs/editor/contrib/codeAction/test/browser/codeActionModel.test.ts",
158-
"src/vs/editor/test/common/services/languageService.test.ts",
159-
"src/vs/editor/test/node/classification/typescript.test.ts",
160155
"src/vs/platform/configuration/test/common/configuration.test.ts",
161-
"src/vs/platform/extensions/test/common/extensionValidator.test.ts",
162156
"src/vs/platform/opener/test/common/opener.test.ts",
163157
"src/vs/platform/registry/test/common/platform.test.ts",
164-
"src/vs/platform/remote/test/common/remoteHosts.test.ts",
165158
"src/vs/platform/workspace/test/common/workspace.test.ts",
166159
"src/vs/platform/workspaces/test/electron-main/workspaces.test.ts",
167160
"src/vs/workbench/api/test/browser/mainThreadConfiguration.test.ts",
168-
"src/vs/workbench/api/test/common/extHostExtensionActivator.test.ts",
169161
"src/vs/workbench/api/test/node/extHostTunnelService.test.ts",
170162
"src/vs/workbench/contrib/bulkEdit/test/browser/bulkCellEdits.test.ts",
171163
"src/vs/workbench/contrib/chat/test/common/chatWordCounter.test.ts",
@@ -176,7 +168,6 @@
176168
"src/vs/workbench/contrib/tasks/test/common/problemMatcher.test.ts",
177169
"src/vs/workbench/contrib/tasks/test/common/taskConfiguration.test.ts",
178170
"src/vs/workbench/services/commands/test/common/commandService.test.ts",
179-
"src/vs/workbench/services/extensions/test/common/extensionDescriptionRegistry.test.ts",
180171
"src/vs/workbench/services/userActivity/test/browser/domActivityTracker.test.ts",
181172
"src/vs/workbench/test/browser/quickAccess.test.ts"
182173
]
@@ -317,6 +308,10 @@
317308
"selector": "BinaryExpression[operator='instanceof'][right.name='MouseEvent']",
318309
"message": "Use DOM.isMouseEvent() to support multi-window scenarios."
319310
},
311+
{
312+
"selector": "BinaryExpression[operator='instanceof'][right.name=/^HTML\\w+/]",
313+
"message": "Use DOM.isHTMLElement() and related methods to support multi-window scenarios."
314+
},
320315
{
321316
"selector": "BinaryExpression[operator='instanceof'][right.name='KeyboardEvent']",
322317
"message": "Use DOM.isKeyboardEvent() to support multi-window scenarios."

.vscode/extensions/vscode-selfhost-test-provider/src/vscodeTestRunner.ts

+32-10
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ATTACH_CONFIG_NAME = 'Attach to VS Code';
2424
const DEBUG_TYPE = 'pwa-chrome';
2525

2626
export abstract class VSCodeTestRunner {
27-
constructor(protected readonly repoLocation: vscode.WorkspaceFolder) {}
27+
constructor(protected readonly repoLocation: vscode.WorkspaceFolder) { }
2828

2929
public async run(baseArgs: ReadonlyArray<string>, filter?: ReadonlyArray<vscode.TestItem>) {
3030
const args = this.prepareArguments(baseArgs, filter);
@@ -163,18 +163,40 @@ export abstract class VSCodeTestRunner {
163163
path.relative(data.workspaceFolder.uri.fsPath, data.uri.fsPath).replace(/\\/g, '/')
164164
);
165165

166+
const itemDatas = filter.map(f => itemData.get(f));
167+
/** If true, we have to be careful with greps, as a grep for one test file affects the run of the other test file. */
168+
const hasBothTestCaseOrTestSuiteAndTestFileFilters =
169+
itemDatas.some(d => (d instanceof TestCase) || (d instanceof TestSuite)) &&
170+
itemDatas.some(d => d instanceof TestFile);
171+
172+
function addTestCaseOrSuite(data: TestCase | TestSuite, test: vscode.TestItem): void {
173+
grepRe.push(escapeRe(data.fullName) + (data instanceof TestCase ? '$' : ' '));
174+
for (let p = test.parent; p; p = p.parent) {
175+
const parentData = itemData.get(p);
176+
if (parentData instanceof TestFile) {
177+
addTestFileRunPath(parentData);
178+
}
179+
}
180+
}
181+
166182
for (const test of filter) {
167183
const data = itemData.get(test);
168184
if (data instanceof TestCase || data instanceof TestSuite) {
169-
grepRe.push(escapeRe(data.fullName) + (data instanceof TestCase ? '$' : ' '));
170-
for (let p = test.parent; p; p = p.parent) {
171-
const parentData = itemData.get(p);
172-
if (parentData instanceof TestFile) {
173-
addTestFileRunPath(parentData);
185+
addTestCaseOrSuite(data, test);
186+
} else if (data instanceof TestFile) {
187+
if (!hasBothTestCaseOrTestSuiteAndTestFileFilters) {
188+
addTestFileRunPath(data);
189+
} else {
190+
// We add all the items individually so they get their own grep expressions.
191+
for (const [_id, nestedTest] of test.children) {
192+
const childData = itemData.get(nestedTest);
193+
if (childData instanceof TestCase || childData instanceof TestSuite) {
194+
addTestCaseOrSuite(childData, nestedTest);
195+
} else {
196+
console.error('Unexpected test item in test file', nestedTest.id, nestedTest.label);
197+
}
174198
}
175199
}
176-
} else if (data instanceof TestFile) {
177-
addTestFileRunPath(data);
178200
}
179201
}
180202

@@ -303,5 +325,5 @@ export const PlatformTestRunner =
303325
process.platform === 'win32'
304326
? WindowsTestRunner
305327
: process.platform === 'darwin'
306-
? DarwinTestRunner
307-
: PosixTestRunner;
328+
? DarwinTestRunner
329+
: PosixTestRunner;

ThirdPartyNotices.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ to the base-name name of the original file, and an extension of txt, html, or si
517517

518518
---------------------------------------------------------
519519

520-
go-syntax 0.6.5 - MIT
520+
go-syntax 0.6.6 - MIT
521521
https://github.com/worlpaker/go-syntax
522522

523523
MIT License
@@ -777,7 +777,7 @@ SOFTWARE.
777777

778778
---------------------------------------------------------
779779

780-
jeff-hykin/better-shell-syntax 1.8.3 - MIT
780+
jeff-hykin/better-shell-syntax 1.8.7 - MIT
781781
https://github.com/jeff-hykin/better-shell-syntax
782782

783783
MIT License

build/azure-pipelines/product-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ resources:
164164
- repository: 1ESPipelines
165165
type: git
166166
name: 1ESPipelineTemplates/1ESPipelineTemplates
167-
ref: refs/heads/joao/disable-tsa-linux-arm64
167+
ref: refs/tags/release
168168

169169
extends:
170170
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines

build/lib/stylelint/vscode-known-variables.json

+2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@
128128
"--vscode-dropdown-listBackground",
129129
"--vscode-editor-background",
130130
"--vscode-editor-findMatchBackground",
131+
"--vscode-editor-findMatchForeground",
131132
"--vscode-editor-findMatchBorder",
132133
"--vscode-editor-findMatchHighlightBackground",
134+
"--vscode-editor-findMatchHighlightForeground",
133135
"--vscode-editor-findMatchHighlightBorder",
134136
"--vscode-editor-findRangeHighlightBackground",
135137
"--vscode-editor-findRangeHighlightBorder",

cglicenses.json

+25-2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,21 @@
130130
"SOFTWARE"
131131
]
132132
},
133+
{
134+
// Reason: NPM package does not include repository URL https://github.com/microsoft/vscode-deviceid/issues/12
135+
"name": "@vscode/deviceid",
136+
"fullLicenseText": [
137+
"Copyright (c) Microsoft Corporation.",
138+
"",
139+
"MIT License",
140+
"",
141+
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:",
142+
"",
143+
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
144+
"",
145+
"THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
146+
]
147+
},
133148
{
134149
// Reason: Missing license file
135150
"name": "@tokenizer/token",
@@ -317,13 +332,21 @@
317332
"fullLicenseTextUri": "https://raw.githubusercontent.com/rodrimati1992/const_format_crates/b2207af46bfbd9f1a6bd12dbffd10feeea3d9fd7/LICENSE-ZLIB.md"
318333
},
319334
{ // License is MIT/Apache and tool doesn't look in subfolders
320-
"name": "toml",
321-
"fullLicenseTextUri": "https://raw.githubusercontent.com/toml-rs/toml/main/crates/toml/LICENSE-MIT"
335+
"name": "toml_edit",
336+
"fullLicenseTextUri": "https://raw.githubusercontent.com/toml-rs/toml/main/crates/toml_edit/LICENSE-MIT"
337+
},
338+
{ // License is MIT/Apache and tool doesn't look in subfolders
339+
"name": "toml_datetime",
340+
"fullLicenseTextUri": "https://raw.githubusercontent.com/toml-rs/toml/main/crates/toml_datetime/LICENSE-MIT"
322341
},
323342
{ // License is MIT/Apache and tool doesn't look in subfolders
324343
"name": "dirs-sys-next",
325344
"fullLicenseTextUri": "https://raw.githubusercontent.com/xdg-rs/dirs/master/dirs-sys/LICENSE-MIT"
326345
},
346+
{ // License is MIT/Apache and gitlab API doesn't find the project
347+
"name": "libredox",
348+
"fullLicenseTextUri": "https://gitlab.redox-os.org/redox-os/libredox/-/raw/master/LICENSE"
349+
},
327350
{
328351
"name": "https-proxy-agent",
329352
"fullLicenseText": [

0 commit comments

Comments
 (0)