Skip to content

Commit 7f4221a

Browse files
committed
Merge remote-tracking branch 'origin/main' into tyriar/utility_ptyhost
2 parents b76b7d2 + 93f610f commit 7f4221a

File tree

1,243 files changed

+38852
-25978
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,243 files changed

+38852
-25978
lines changed

.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: 4 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,18 +244,15 @@
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",
@@ -297,14 +290,12 @@
297290
// - src/vs/base/browser
298291
// - src/vs/base/electron-sandbox
299292
// - src/vs/base/node
300-
// - src/vs/base/electron-browser
301293
// - src/vs/base/electron-main
302294
// - src/vs/base/test/common
303295
// - src/vs/base/test/worker
304296
// - src/vs/base/test/browser
305297
// - src/vs/base/test/electron-sandbox
306298
// - src/vs/base/test/node
307-
// - src/vs/base/test/electron-browser
308299
// - src/vs/base/test/electron-main
309300
//
310301
// When /~ is used in the restrictions, it will be replaced with the correct

.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/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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ vscode.lsif
1616
vscode.db
1717
/.profile-oss
1818
/cli/target
19+
product.overrides.json

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.14
1+
16.17

.vscode/extensions.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"recommendations": [
55
"dbaeumer.vscode-eslint",
66
"EditorConfig.EditorConfig",
7+
"GitHub.vscode-pull-request-github",
8+
"ms-vscode.vscode-github-issue-notebooks",
79
"ms-vscode.vscode-selfhost-test-provider"
810
]
911
}

.vscode/launch.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
]
2525
},
2626
{
27-
"type": "chrome",
27+
"type": "node",
2828
"request": "attach",
29+
"restart": true,
2930
"name": "Attach to Shared Process",
30-
"timeout": 30000,
31-
"port": 9222,
32-
"urlFilter": "*sharedProcess*.html*",
33-
"presentation": {
34-
"hidden": true
35-
}
31+
"timeout": 0,
32+
"port": 5879,
33+
"outFiles": [
34+
"${workspaceFolder}/out/**/*.js"
35+
]
3636
},
3737
{
3838
"type": "node",
@@ -236,7 +236,6 @@
236236
"VSCODE_SKIP_PRELAUNCH": "1"
237237
},
238238
"cleanUp": "wholeBrowser",
239-
"urlFilter": "*workbench*.html*",
240239
"runtimeArgs": [
241240
"--inspect-brk=5875",
242241
"--no-cached-data",
@@ -526,7 +525,7 @@
526525
"name": "Monaco Editor Playground",
527526
"type": "chrome",
528527
"request": "launch",
529-
"url": "https://microsoft.github.io/monaco-editor/playground.html?source=http%3A%2F%2Flocalhost%3A5001%2Fout%2Fvs",
528+
"url": "http://localhost:5001",
530529
"preLaunchTask": "Launch Http Server",
531530
"presentation": {
532531
"group": "monaco",

.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:\"April 2023\""
10+
"value": "$repo=repo:microsoft/vscode\n$milestone=milestone:\"May 2023\""
1111
},
1212
{
1313
"kind": 1,

0 commit comments

Comments
 (0)