Skip to content

Commit eb3f1d1

Browse files
authored
Merge branch 'main' into joh/super-monkey
2 parents 1d86d98 + 9f3a7b5 commit eb3f1d1

29 files changed

+2952
-3533
lines changed

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
**/src/vs/base/test/common/filters.perf.data.js
3232
**/src/vs/loader.js
3333
**/test/unit/assert.js
34-
**/test/unit/assert-esm.js
3534
**/test/automation/out/**
3635
**/typings/**
3736
!.vscode

.eslintplugin/code-import-patterns.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export = new class implements eslint.Rule.RuleModule {
249249
const relativeFilename = getRelativeFilename(context);
250250
importPath = path.posix.join(path.posix.dirname(relativeFilename), importPath);
251251
if (/^src\/vs\//.test(importPath)) {
252-
// resolve using AMD base url
252+
// resolve using base url
253253
importPath = importPath.substring('src/'.length);
254254
}
255255
}

.eslintrc.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"root": true,
33
"parser": "@typescript-eslint/parser",
44
"parserOptions": {
5-
"ecmaVersion": 6,
5+
"ecmaVersion": 2022,
66
"sourceType": "module"
77
},
88
"plugins": [
@@ -1132,7 +1132,13 @@
11321132
]
11331133
},
11341134
{
1135-
"target": "src/vs/{loader.d.ts,monaco.d.ts,nls.ts,nls.messages.ts}",
1135+
"target": "src/vs/nls.ts",
1136+
"restrictions": [
1137+
"vs/*"
1138+
]
1139+
},
1140+
{
1141+
"target": "src/vs/{monaco.d.ts,nls.ts,nls.messages.ts}",
11361142
"restrictions": []
11371143
},
11381144
{

build/filters.js

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ module.exports.indentationFilter = [
7979
'!src/vs/base/node/cpuUsage.sh',
8080
'!src/vs/editor/common/languages/highlights/*.scm',
8181
'!test/unit/assert.js',
82-
'!test/unit/assert-esm.js',
8382
'!resources/linux/snap/electron-launch',
8483
'!build/ext.js',
8584
'!build/npm/gyp/patches/gyp_spectre_mitigation_support.patch',

build/lib/layersChecker.js

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/lib/layersChecker.ts

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { match } from 'minimatch';
2424
// Types we assume are present in all implementations of JS VMs (node.js, browsers)
2525
// Feel free to add more core types as you see needed if present in node.js and browsers
2626
const CORE_TYPES = [
27-
'require', // from our AMD loader
2827
'setTimeout',
2928
'clearTimeout',
3029
'setInterval',

build/lib/standalone.js

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/lib/standalone.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ export function extractEditor(options: tss.ITreeShakingOptions & { destRoot: str
115115
writeOutputFile('tsconfig.json', JSON.stringify(tsConfig, null, '\t'));
116116

117117
[
118-
'vs/loader.js',
119-
'vs/loader.d.ts'
118+
'vs/loader.js'
120119
].forEach(copyFile);
121120
}
122121

scripts/test-documentation.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ echo Runs tests against the current documentation in https://github.com/microsof
55

66
pushd %~dp0\..
77

8-
:: Endgame tests in AMD
8+
:: Endgame tests
99
call .\scripts\test.bat --runGlob **\*.releaseTest.js %*
1010
if %errorlevel% neq 0 exit /b %errorlevel%
1111

scripts/test-documentation.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd $ROOT
1414

1515
echo "Runs tests against the current documentation in https://github.com/microsoft/vscode-docs/tree/vnext"
1616

17-
# Tests in AMD
17+
# Tests
1818
./scripts/test.sh --runGlob **/*.releaseTest.js "$@"
1919

2020

scripts/test-integration.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo Storing crash reports into '%VSCODECRASHDIR%'.
2525
echo Storing log files into '%VSCODELOGSDIR%'.
2626

2727

28-
:: Tests standalone (AMD)
28+
:: Unit tests
2929

3030
echo.
3131
echo ### node.js integration tests

scripts/test-integration.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ echo "Storing crash reports into '$VSCODECRASHDIR'."
3434
echo "Storing log files into '$VSCODELOGSDIR'."
3535

3636

37-
# Tests standalone (AMD)
37+
# Unit tests
3838

3939
echo
4040
echo "### node.js integration tests"

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ async function resolveNlsConfiguration(): Promise<INLSConfiguration> {
643643
}
644644

645645
/**
646-
* Language tags are case insensitive however an amd loader is case sensitive
646+
* Language tags are case insensitive however an ESM loader is case sensitive
647647
* To make this work on case preserving & insensitive FS we do the following:
648648
* the language bundles have lower case language tags and we always lower case
649649
* the locale we receive from the user or OS.

src/tsconfig.monaco.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"typings/vscode-globals-product.d.ts",
2222
"typings/vscode-globals-nls.d.ts",
2323
"typings/editContext.d.ts",
24-
"vs/loader.d.ts",
2524
"vs/monaco.d.ts",
2625
"vs/editor/*",
2726
"vs/base/common/*",

0 commit comments

Comments
 (0)