Skip to content

Commit ce4aed5

Browse files
committed
Merge remote-tracking branch 'origin/main' into pr/babakks/153204
2 parents a565b78 + 54a073d commit ce4aed5

File tree

2,822 files changed

+114650
-70928
lines changed

Some content is hidden

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

2,822 files changed

+114650
-70928
lines changed

.devcontainer/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
# Code - OSS Development Container
22

3-
[![Open in Remote - Containers](https://img.shields.io/static/v1?label=Remote%20-%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode)
3+
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode)
44

55
This repository includes configuration for a development container for working with Code - OSS in a local container or using [GitHub Codespaces](https://github.com/features/codespaces).
66

77
> **Tip:** The default VNC password is `vscode`. The VNC server runs on port `5901` and a web client is available on port `6080`.
88
99
## Quick start - local
1010

11-
If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode) to get started. Clicking these links will cause VS Code to automatically install the Remote - Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
11+
If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
1212

1313
1. Install Docker Desktop or Docker for Linux on your local machine. (See [docs](https://aka.ms/vscode-remote/containers/getting-started) for additional details.)
1414

15-
2. **Important**: Docker needs at least **4 Cores and 8 GB of RAM** to run a full build. If you are on macOS, or are using the old Hyper-V engine for Windows, update these values for Docker Desktop by right-clicking on the Docker status bar item and going to **Preferences/Settings > Resources > Advanced**.
15+
2. **Important**: Docker needs at least **4 Cores and 8 GB of RAM** to run a full build with **9 GB of RAM** being recommended. If you are on macOS, or are using the old Hyper-V engine for Windows, update these values for Docker Desktop by right-clicking on the Docker status bar item and going to **Preferences/Settings > Resources > Advanced**.
1616

1717
> **Note:** The [Resource Monitor](https://marketplace.visualstudio.com/items?itemName=mutantdino.resourcemonitor) extension is included in the container so you can keep an eye on CPU/Memory in the status bar.
1818
19-
3. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the [Remote - Containers](https://aka.ms/vscode-remote/download/containers) extension.
19+
3. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the [Dev Containers](https://aka.ms/vscode-remote/download/containers) extension.
2020

21-
![Image of Remote - Containers extension](https://microsoft.github.io/vscode-remote-release/images/remote-containers-extn.png)
21+
![Image of Dev Containers extension](https://microsoft.github.io/vscode-remote-release/images/dev-containers-extn.png)
2222

23-
> **Note:** The Remote - Containers extension requires the Visual Studio Code distribution of Code - OSS. See the [FAQ](https://aka.ms/vscode-remote/faq/license) for details.
23+
> **Note:** The Dev Containers extension requires the Visual Studio Code distribution of Code - OSS. See the [FAQ](https://aka.ms/vscode-remote/faq/license) for details.
2424
25-
4. Press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> or <kbd>F1</kbd> and select **Remote-Containers: Clone Repository in Container Volume...**.
25+
4. Press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> or <kbd>F1</kbd> and select **Dev Containers: Clone Repository in Container Volume...**.
2626

2727
> **Tip:** While you can use your local source tree instead, operations like `yarn install` can be slow on macOS or when using the Hyper-V engine on Windows. We recommend the "clone repository in container" approach instead since it uses "named volume" rather than the local filesystem.
2828

.devcontainer/devcontainer.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,18 @@
66
"overrideCommand": false,
77
"runArgs": [ "--init", "--security-opt", "seccomp=unconfined", "--shm-size=1g"],
88

9-
"settings": {
10-
"resmon.show.battery": false,
11-
"resmon.show.cpufreq": false
9+
// VS Code extensions and settings
10+
"customizations": {
11+
"vscode": {
12+
"settings": {
13+
"resmon.show.battery": false,
14+
"resmon.show.cpufreq": false
15+
},
16+
"extensions": [
17+
"dbaeumer.vscode-eslint",
18+
"mutantdino.resourcemonitor"
19+
]
20+
}
1221
},
1322

1423
// noVNC, VNC
@@ -24,17 +33,12 @@
2433
}
2534
},
2635

27-
"extensions": [
28-
"dbaeumer.vscode-eslint",
29-
"mutantdino.resourcemonitor"
30-
],
31-
3236
// Optionally loads a cached yarn install for the repo
3337
"postCreateCommand": ".devcontainer/cache/restore-diff.sh",
3438

3539
"remoteUser": "node",
3640

3741
"hostRequirements": {
38-
"memory": "8gb"
42+
"memory": "9gb"
3943
}
4044
}

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
**/extensions/css-language-features/server/test/pathCompletionFixtures/**
77
**/extensions/html-language-features/server/lib/jquery.d.ts
88
**/extensions/html-language-features/server/src/test/pathCompletionFixtures/**
9+
**/extensions/ipynb/notebook-out/**
910
**/extensions/markdown-language-features/media/**
1011
**/extensions/markdown-language-features/notebook-out/**
1112
**/extensions/markdown-math/notebook-out/**
@@ -27,4 +28,5 @@
2728
**/src/vs/base/test/common/filters.perf.data.js
2829
**/src/vs/loader.js
2930
**/test/unit/assert.js
31+
**/test/automation/out/**
3032
**/typings/**
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
export = new class DeclareServiceBrand implements eslint.Rule.RuleModule {
9+
10+
readonly meta: eslint.Rule.RuleMetaData = {
11+
fixable: 'code'
12+
};
13+
14+
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
15+
return {
16+
['PropertyDefinition[key.name="_serviceBrand"][value]']: (node: any) => {
17+
return context.report({
18+
node,
19+
message: `The '_serviceBrand'-property should not have a value`,
20+
fix: (fixer) => {
21+
return fixer.replaceText(node, 'declare _serviceBrand: undefined;')
22+
}
23+
});
24+
}
25+
};
26+
}
27+
};

build/lib/eslint/code-import-patterns.ts renamed to .eslintplugin/code-import-patterns.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import * as eslint from 'eslint';
77
import { TSESTree } from '@typescript-eslint/experimental-utils';
88
import * as path from 'path';
9-
import * as minimatch from 'minimatch';
9+
import minimatch from 'minimatch';
1010
import { createImportRuleListener } from './utils';
1111

12-
const REPO_ROOT = path.normalize(path.join(__dirname, '../../../'));
12+
const REPO_ROOT = path.normalize(path.join(__dirname, '../'));
1313

1414
interface ConditionalPattern {
1515
when?: 'hasBrowser' | 'hasNode' | 'test';
File renamed without changes.

0 commit comments

Comments
 (0)