Skip to content

Commit 4613252

Browse files
authored
Merge branch 'main' into rainbow-indent
2 parents f187064 + 230a626 commit 4613252

File tree

1,916 files changed

+102652
-79353
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,916 files changed

+102652
-79353
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
2+
# Reference: https://github.com/microsoft/vscode/wiki/How-to-Contribute
3+
properties:
4+
resources:
5+
- resource: Microsoft.WinGet.DSC/WinGetPackage
6+
directives:
7+
description: Install Git
8+
allowPrerelease: true
9+
settings:
10+
id: Git.Git
11+
source: winget
12+
- resource: Microsoft.WinGet.DSC/WinGetPackage
13+
id: npm
14+
directives:
15+
description: Install NodeJS version >=16.17.x and <17
16+
allowPrerelease: true
17+
settings:
18+
id: OpenJS.NodeJS.LTS
19+
version: "16.20.0"
20+
source: winget
21+
- resource: NpmDsc/NpmPackage
22+
id: yarn
23+
dependsOn:
24+
- npm
25+
directives:
26+
description: Install Yarn
27+
allowPrerelease: true
28+
settings:
29+
Name: 'yarn'
30+
Global: true
31+
PackageDirectory: '${WinGetConfigRoot}\..\'
32+
- resource: Microsoft.WinGet.DSC/WinGetPackage
33+
directives:
34+
description: Install Python 3.10
35+
allowPrerelease: true
36+
settings:
37+
id: Python.Python.3.10
38+
source: winget
39+
- resource: Microsoft.WinGet.DSC/WinGetPackage
40+
id: vsPackage
41+
directives:
42+
description: Install Visual Studio 2022 (any edition is OK)
43+
allowPrerelease: true
44+
settings:
45+
id: Microsoft.VisualStudio.2022.BuildTools
46+
source: winget
47+
- resource: Microsoft.VisualStudio.DSC/VSComponents
48+
dependsOn:
49+
- vsPackage
50+
directives:
51+
description: Install required VS workloads
52+
allowPrerelease: true
53+
settings:
54+
productId: Microsoft.VisualStudio.Product.BuildTools
55+
channelId: VisualStudio.17.Release
56+
includeRecommended: true
57+
components:
58+
- Microsoft.VisualStudio.Workload.VCTools
59+
- resource: YarnDsc/YarnInstall
60+
dependsOn:
61+
- npm
62+
directives:
63+
description: Install dependencies
64+
allowPrerelease: true
65+
settings:
66+
PackageDirectory: '${WinGetConfigRoot}\..\'
67+
configurationVersion: 0.2.0

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "VS Code",
2+
"name": "Code - OSS with X11/Wayland",
33
"build": {
44
"dockerfile": "Dockerfile"
55
},

.devcontainer/prebuilt/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Code - OSS",
2+
"name": "Code - OSS with VNC",
33

44
// Image contents: https://github.com/microsoft/vscode-dev-containers/blob/master/repository-containers/images/github.com/microsoft/vscode/.devcontainer/base.Dockerfile
55
"image": "mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:branch-main",

.eslintplugin/code-import-patterns.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ConditionalPattern {
1818

1919
interface RawImportPatternsConfig {
2020
target: string;
21-
layer?: 'common' | 'worker' | 'browser' | 'electron-sandbox' | 'node' | 'electron-browser' | 'electron-main';
21+
layer?: 'common' | 'worker' | 'browser' | 'electron-sandbox' | 'node' | 'electron-main';
2222
test?: boolean;
2323
restrictions: string | (string | ConditionalPattern)[];
2424
}
@@ -77,7 +77,7 @@ export = new class implements eslint.Rule.RuleModule {
7777
return this._optionsCache.get(options)!;
7878
}
7979

80-
type Layer = 'common' | 'worker' | 'browser' | 'electron-sandbox' | 'node' | 'electron-browser' | 'electron-main';
80+
type Layer = 'common' | 'worker' | 'browser' | 'electron-sandbox' | 'node' | 'electron-main';
8181

8282
interface ILayerRule {
8383
layer: Layer;
@@ -96,7 +96,6 @@ export = new class implements eslint.Rule.RuleModule {
9696
{ layer: 'browser', deps: orSegment(['common', 'browser']), isBrowser: true },
9797
{ layer: 'electron-sandbox', deps: orSegment(['common', 'browser', 'electron-sandbox']), isBrowser: true },
9898
{ layer: 'node', deps: orSegment(['common', 'node']), isNode: true },
99-
{ layer: 'electron-browser', deps: orSegment(['common', 'browser', 'node', 'electron-sandbox', 'electron-browser']), isBrowser: true, isNode: true },
10099
{ layer: 'electron-main', deps: orSegment(['common', 'node', 'electron-main']), isNode: true },
101100
];
102101

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
import * as eslint from 'eslint';
7+
import { TSESTree } from '@typescript-eslint/experimental-utils';
8+
9+
export = new class ApiTypeDiscrimination implements eslint.Rule.RuleModule {
10+
11+
readonly meta: eslint.Rule.RuleMetaData = {
12+
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines' },
13+
messages: {
14+
noTypeDiscrimination: 'Do not use type descrimination properties'
15+
}
16+
};
17+
18+
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
19+
return {
20+
['TSPropertySignature[optional=undefined] TSTypeAnnotation TSLiteralType Literal']: (node: any) => {
21+
22+
const raw = String((<TSESTree.Literal>node).raw)
23+
24+
if (/^('|").*\1$/.test(raw)) {
25+
26+
context.report({
27+
node: node,
28+
messageId: 'noTypeDiscrimination'
29+
});
30+
}
31+
}
32+
}
33+
}
34+
};

.eslintrc.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@
8787
"common",
8888
"browser"
8989
],
90-
"electron-browser": [
91-
"common",
92-
"browser",
93-
"node",
94-
"electron-sandbox"
95-
],
9690
"electron-main": [
9791
"common",
9892
"node"
@@ -136,6 +130,7 @@
136130
"rules": {
137131
"local/vscode-dts-create-func": "warn",
138132
"local/vscode-dts-literal-or-types": "warn",
133+
"local/vscode-dts-string-type-literals": "warn",
139134
"local/vscode-dts-interface-naming": "warn",
140135
"local/vscode-dts-cancellation": "warn",
141136
"local/vscode-dts-use-thenable": "warn",
@@ -210,7 +205,6 @@
210205
// imports that are allowed in all files of layers:
211206
// - browser
212207
// - electron-sandbox
213-
// - electron-browser
214208
"when": "hasBrowser",
215209
"allow": [
216210
"vs/css!./**/*"
@@ -219,7 +213,6 @@
219213
{
220214
// imports that are allowed in all files of layers:
221215
// - node
222-
// - electron-browser
223216
// - electron-main
224217
"when": "hasNode",
225218
"allow": [
@@ -229,6 +222,9 @@
229222
"@vscode/ripgrep",
230223
"@vscode/iconv-lite-umd",
231224
"@vscode/policy-watcher",
225+
"@vscode/proxy-agent",
226+
"@vscode/spdlog",
227+
"@vscode/windows-process-tree",
232228
"assert",
233229
"child_process",
234230
"console",
@@ -248,21 +244,19 @@
248244
"os",
249245
"path",
250246
"perf_hooks",
251-
"spdlog",
252247
"stream",
253248
"string_decoder",
254249
"tas-client-umd",
255250
"tls",
256251
"url",
257252
"util",
258253
"v8-inspect-profiler",
259-
"vscode-proxy-agent",
260254
"vscode-regexpp",
261255
"vscode-textmate",
262-
"windows-process-tree",
263256
"worker_threads",
264257
"xterm",
265258
"xterm-addon-canvas",
259+
"xterm-addon-image",
266260
"xterm-addon-search",
267261
"xterm-addon-serialize",
268262
"xterm-addon-unicode11",
@@ -297,14 +291,12 @@
297291
// - src/vs/base/browser
298292
// - src/vs/base/electron-sandbox
299293
// - src/vs/base/node
300-
// - src/vs/base/electron-browser
301294
// - src/vs/base/electron-main
302295
// - src/vs/base/test/common
303296
// - src/vs/base/test/worker
304297
// - src/vs/base/test/browser
305298
// - src/vs/base/test/electron-sandbox
306299
// - src/vs/base/test/node
307-
// - src/vs/base/test/electron-browser
308300
// - src/vs/base/test/electron-main
309301
//
310302
// When /~ is used in the restrictions, it will be replaced with the correct

.git-blame-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ ae1452eea678f5266ef513f22dacebb90955d6c9
1515
# joaomoreno: add ghooks dev dependency
1616
0dfc06e0f9de5925de792cdf9f0e6597bb25908f
1717

18+
# joaomoreno: line endings
19+
12ab70d329a13dd5b18d892cd40edd7138259bc3
20+
1821
# mjbvz: organize imports
1922
494cbbd02d67e87727ec885f98d19551aa33aad1
2023
a3cb14be7f2cceadb17adf843675b1a59537dbbd

.github/classifier.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@
199199
"sash-widget": {"assign": ["joaomoreno"]},
200200
"scm": {"assign": ["lszomoru"]},
201201
"screencast-mode": {"assign": ["joaomoreno"]},
202-
"search": {"assign": ["andreamah"]},
203-
"search-api": {"assign": ["andreamah"]},
204-
"search-editor": {"assign": ["andreamah"]},
202+
"search": {"assign": ["andreamah", "roblourens"]},
203+
"search-api": {"assign": ["andreamah", "roblourens"]},
204+
"search-editor": {"assign": ["andreamah", "roblourens"]},
205205
"search-replace": {"assign": ["sandy081"]},
206206
"semantic-tokens": {"assign": ["alexdima", "aeschli"]},
207207
"server": {"assign": ["alexdima"]},

.github/commands.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@
209209
"removeLabel": "~version-info-needed",
210210
"comment": "Thanks for creating this issue! We figured it's missing some basic information, such as a version number, or in some other way doesn't follow our [issue reporting guidelines](https://aka.ms/vscodeissuereporting). Please take the time to review these and update the issue.\n\nHappy Coding!"
211211
},
212+
{
213+
"type": "label",
214+
"name": "~confirmation-needed",
215+
"action": "updateLabels",
216+
"addLabel": "info-needed",
217+
"removeLabel": "~confirmation-needed",
218+
"comment": "Thanks for creating this issue! To help narrow it down, please take the time to follow below steps. Thanks a lot and happy coding 🙏\n\n### Is the issue caused by an Extension?\nStop VS Code and from the command line (NOT the integrated terminal in Code), execute: `code --disable-extensions` and try your steps again to see if it reproduces. If it still reproduces, jump to the next chapter.\n\nIf you see it is an issue with the extension, please run the command `Start Extension Bisect` and follow the instructions to find the extension that is causing this issue.\n\n<img width='631' alt='image' src='https://user-images.githubusercontent.com/900690/228760008-d5790ad1-74da-46a2-917f-e1bd26281ca8.png'>\n\nPlease report the issue to the extension causing this.\n\n### Is the issue caused by VS Code Core?\nIf the issue is not caused by an extension, it is maybe caused by your configuration. Try to run `code --disable-extensions --user-data-dir <directory>` where `<directory>` is an empty folder. This will ensure Code is starting with a fresh data directory, e.g. no specific settings and without any extensions running.\n\nIf it still reproduces, it was maybe fixed already in our nightly release. Please download from https://code.visualstudio.com/insiders/ and see if you can reproduce the issue.\n\nFinally, to help us narrow down what change caused the issue, please run the following command to find the build. It will start previous releases of VS Code insiders to see where the regression was introduced:\n* `npx --yes vscode-bisect@latest`\n* follow the instructions until you found the offending build\n* report back the commit range in this issue\n\nThanks!"
219+
},
212220
{
213221
"type": "comment",
214222
"name": "a11ymas",
@@ -467,6 +475,19 @@
467475
"addLabel": "info-needed",
468476
"comment": "Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, `.gif` files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.\n\nIf the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (`Developer: Toggle Screencast Mode` in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.\n\nHappy coding!"
469477
},
478+
{
479+
"type": "comment",
480+
"name": "confirmPlease",
481+
"allowUsers": [
482+
"cleidigh",
483+
"usernamehw",
484+
"gjsjohnmurray",
485+
"IllusionMH"
486+
],
487+
"action": "comment",
488+
"addLabel": "info-needed",
489+
"comment": "Thanks for creating this issue! To help narrow it down, please take the time to follow below steps. Thanks a lot and happy coding 🙏\n\n### Is the issue caused by an Extension?\nStop VS Code and from the command line (NOT the integrated terminal in Code), execute: `code --disable-extensions` and try your steps again to see if it reproduces. If it still reproduces, jump to the next chapter.\n\nIf you see it is an issue with the extension, please run the command `Start Extension Bisect` and follow the instructions to find the extension that is causing this issue.\n\n<img width='631' alt='image' src='https://user-images.githubusercontent.com/900690/228760008-d5790ad1-74da-46a2-917f-e1bd26281ca8.png'>\n\nPlease report the issue to the extension causing this.\n\n### Is the issue caused by VS Code Core?\nIf the issue is not caused by an extension, it is maybe caused by your configuration. Try to run `code --disable-extensions --user-data-dir <directory>` where `<directory>` is an empty folder. This will ensure Code is starting with a fresh data directory, e.g. no specific settings and without any extensions running.\n\nIf it still reproduces, it was maybe fixed already in our nightly release. Please download from https://code.visualstudio.com/insiders/ and see if you can reproduce the issue.\n\nFinally, to help us narrow down what change caused the issue, please run the following command to find the build. It will start previous releases of VS Code insiders to see where the regression was introduced:\n* `npx --yes vscode-bisect@latest`\n* follow the instructions until you found the offending build\n* report back the commit range in this issue\n\nThanks!"
490+
},
470491
{
471492
"__comment__": "Allows folks on the team to label issues by commenting: `\\label My-Label` ",
472493
"type": "comment",

.github/workflows/rich-navigation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: "Rich Navigation Indexing"
22
on:
33
workflow_dispatch:
4-
pull_request:
54
push:
65
branches:
76
- main

0 commit comments

Comments
 (0)