Skip to content

Commit c0a289d

Browse files
authored
Merge branch 'main' into merogge/screen-inline
2 parents fbbe998 + a1815b9 commit c0a289d

File tree

489 files changed

+5861
-5263
lines changed

Some content is hidden

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

489 files changed

+5861
-5263
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
8+
/**
9+
* Checks for potentially unsafe usage of `DisposableStore` / `MutableDisposable`.
10+
*
11+
* These have been the source of leaks in the past.
12+
*/
13+
export = new class implements eslint.Rule.RuleModule {
14+
15+
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
16+
function checkVariableDeclaration(inNode: any) {
17+
context.report({
18+
node: inNode,
19+
message: `Use const for 'DisposableStore' to avoid leaks by accidental reassignment.`
20+
});
21+
}
22+
23+
function checkProperty(inNode: any) {
24+
context.report({
25+
node: inNode,
26+
message: `Use readonly for DisposableStore/MutableDisposable to avoid leaks through accidental reassignment.`
27+
});
28+
}
29+
30+
return {
31+
'VariableDeclaration[kind!="const"] NewExpression[callee.name="DisposableStore"]': checkVariableDeclaration,
32+
33+
'PropertyDefinition[readonly!=true][typeAnnotation.typeAnnotation.typeName.name=/DisposableStore|MutableDisposable/]': checkProperty,
34+
'PropertyDefinition[readonly!=true] NewExpression[callee.name=/DisposableStore|MutableDisposable/]': checkProperty,
35+
};
36+
}
37+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
/**
10+
* Enforces that all parameter properties have an explicit access modifier (public, protected, private).
11+
*
12+
* This catches a common bug where a service is accidentally made public by simply writing: `readonly prop: Foo`
13+
*/
14+
export = new class implements eslint.Rule.RuleModule {
15+
16+
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
17+
function check(inNode: any) {
18+
const node: TSESTree.TSParameterProperty = inNode;
19+
20+
// For now, only apply to injected services
21+
const firstDecorator = node.decorators?.at(0);
22+
if (
23+
firstDecorator?.expression.type !== 'Identifier'
24+
|| !firstDecorator.expression.name.endsWith('Service')
25+
) {
26+
return;
27+
}
28+
29+
if (!node.accessibility) {
30+
context.report({
31+
node: inNode,
32+
message: 'Parameter properties must have an explicit access modifier.'
33+
});
34+
}
35+
}
36+
37+
return {
38+
['TSParameterProperty']: check,
39+
};
40+
}
41+
};

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
],
7171
"local/code-translation-remind": "warn",
7272
"local/code-no-native-private": "warn",
73+
"local/code-parameter-properties-must-have-explicit-accessibility": "warn",
7374
"local/code-no-nls-in-standalone-editor": "warn",
75+
"local/code-no-potentially-unsafe-disposables": "warn",
7476
"local/code-no-standalone-editor": "warn",
7577
"local/code-no-unexternalized-strings": "warn",
7678
"local/code-must-use-super-dispose": "warn",

.vscode/notebooks/my-work.github-issues

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
{
8383
"kind": 2,
8484
"language": "github-issues",
85-
"value": "repo:microsoft/vscode is:open assignee:@me label:triage-needed\n"
85+
"value": "$REPOS is:open assignee:@me label:triage-needed\n"
8686
},
8787
{
8888
"kind": 1,

build/azure-pipelines/cli/install-rust-posix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
- name: channel
33
type: string
4-
default: 1.73.0
4+
default: 1.77
55
- name: targets
66
default: []
77
type: object

build/azure-pipelines/cli/install-rust-win32.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
- name: channel
33
type: string
4-
default: 1.73.0
4+
default: 1.77
55
- name: targets
66
default: []
77
type: object

build/azure-pipelines/product-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ extends:
197197
- stage: Compile
198198
jobs:
199199
- job: Compile
200+
timeoutInMinutes: 90
200201
pool:
201202
name: 1es-ubuntu-20.04-x64
202203
os: linux

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

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"--vscode-activityBar-inactiveForeground",
1212
"--vscode-activityBarBadge-background",
1313
"--vscode-activityBarBadge-foreground",
14+
"--vscode-activityBarTop-activeBackground",
1415
"--vscode-activityBarTop-activeBorder",
16+
"--vscode-activityBarTop-background",
1517
"--vscode-activityBarTop-dropBorder",
1618
"--vscode-activityBarTop-foreground",
1719
"--vscode-activityBarTop-inactiveForeground",
18-
"--vscode-activityBarTop-background",
19-
"--vscode-activityBarTop-activeBackground",
2020
"--vscode-badge-background",
2121
"--vscode-badge-foreground",
2222
"--vscode-banner-background",
@@ -261,6 +261,10 @@
261261
"--vscode-editorMarkerNavigationInfo-headerBackground",
262262
"--vscode-editorMarkerNavigationWarning-background",
263263
"--vscode-editorMarkerNavigationWarning-headerBackground",
264+
"--vscode-editorMultiCursor-primary-background",
265+
"--vscode-editorMultiCursor-primary-foreground",
266+
"--vscode-editorMultiCursor-secondary-background",
267+
"--vscode-editorMultiCursor-secondary-foreground",
264268
"--vscode-editorOverviewRuler-addedForeground",
265269
"--vscode-editorOverviewRuler-background",
266270
"--vscode-editorOverviewRuler-border",
@@ -487,6 +491,9 @@
487491
"--vscode-panelTitle-activeBorder",
488492
"--vscode-panelTitle-activeForeground",
489493
"--vscode-panelTitle-inactiveForeground",
494+
"--vscode-panelStickyScroll-background",
495+
"--vscode-panelStickyScroll-border",
496+
"--vscode-panelStickyScroll-shadow",
490497
"--vscode-peekView-border",
491498
"--vscode-peekViewEditor-background",
492499
"--vscode-peekViewEditor-matchHighlightBackground",
@@ -557,11 +564,15 @@
557564
"--vscode-sideBar-border",
558565
"--vscode-sideBar-dropBackground",
559566
"--vscode-sideBar-foreground",
567+
"--vscode-sideBarActivityBarTop-border",
560568
"--vscode-sideBarSectionHeader-background",
561569
"--vscode-sideBarSectionHeader-border",
562570
"--vscode-sideBarSectionHeader-foreground",
571+
"--vscode-sideBarTitle-background",
563572
"--vscode-sideBarTitle-foreground",
564-
"--vscode-sideBarActivityBarTop-border",
573+
"--vscode-sideBarStickyScroll-background",
574+
"--vscode-sideBarStickyScroll-border",
575+
"--vscode-sideBarStickyScroll-shadow",
565576
"--vscode-sideBySideEditor-horizontalBorder",
566577
"--vscode-sideBySideEditor-verticalBorder",
567578
"--vscode-simpleFindWidget-sashBorder",
@@ -702,11 +713,17 @@
702713
"--vscode-testing-coveredBorder",
703714
"--vscode-testing-coveredGutterBackground",
704715
"--vscode-testing-iconErrored",
716+
"--vscode-testing-iconErrored-retired",
705717
"--vscode-testing-iconFailed",
718+
"--vscode-testing-iconFailed-retired",
706719
"--vscode-testing-iconPassed",
720+
"--vscode-testing-iconPassed-retired",
707721
"--vscode-testing-iconQueued",
722+
"--vscode-testing-iconQueued-retired",
708723
"--vscode-testing-iconSkipped",
724+
"--vscode-testing-iconSkipped-retired",
709725
"--vscode-testing-iconUnset",
726+
"--vscode-testing-iconUnset-retired",
710727
"--vscode-testing-message-error-decorationForeground",
711728
"--vscode-testing-message-error-lineBackground",
712729
"--vscode-testing-message-info-decorationForeground",
@@ -720,7 +737,6 @@
720737
"--vscode-testing-uncoveredBorder",
721738
"--vscode-testing-uncoveredBranchBackground",
722739
"--vscode-testing-uncoveredGutterBackground",
723-
"--vscode-testing-uncoveredGutterBackground",
724740
"--vscode-textBlockQuote-background",
725741
"--vscode-textBlockQuote-border",
726742
"--vscode-textCodeBlock-background",

cli/Cargo.lock

Lines changed: 7 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/src/commands/args.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,12 @@ pub struct CommandShellArgs {
229229
/// Listen on a socket instead of stdin/stdout.
230230
#[clap(long)]
231231
pub on_socket: bool,
232-
/// Listen on a port instead of stdin/stdout.
232+
/// Listen on a host/port instead of stdin/stdout.
233233
#[clap(long, num_args = 0..=1, default_missing_value = "0")]
234234
pub on_port: Option<u16>,
235+
/// Listen on a host/port instead of stdin/stdout.
236+
#[clap[long]]
237+
pub on_host: Option<String>,
235238
/// Require the given token string to be given in the handshake.
236239
#[clap(long, env = "VSCODE_CLI_REQUIRE_TOKEN")]
237240
pub require_token: Option<String>,

0 commit comments

Comments
 (0)