Skip to content

Commit 7357548

Browse files
committed
Merge branch 'main' into fix-49293
2 parents fc428dc + db49c6c commit 7357548

File tree

509 files changed

+17910
-6638
lines changed

Some content is hidden

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

509 files changed

+17910
-6638
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
{ "selector": "variable", "format": ["camelCase", "PascalCase", "UPPER_CASE"], "leadingUnderscore": "allow", "filter": { "regex": "^(_{1,2}filename|_{1,2}dirname|_+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
2828
{ "selector": "function", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
2929
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^(_+|[A-Za-z]+_[A-Z][a-z]+)$", "match": false } },
30-
{ "selector": "method", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
31-
{ "selector": "memberLike", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
30+
{ "selector": "method", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^([0-9]+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
31+
{ "selector": "memberLike", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^([0-9]+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
3232
{ "selector": "enumMember", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
3333
{ "selector": "property", "format": null }
3434
],

.vscode/settings.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"eslint.options": {
88
"rulePaths": ["./scripts/eslint/built/rules/"],
9-
"ext": [".ts"]
9+
"extensions": [".ts"]
1010
},
1111
// To use the last-known-good (LKG) compiler version:
1212
// "typescript.tsdk": "lib"

Gulpfile.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,20 +214,29 @@ task("watch-services").flags = {
214214
" --built": "Compile using the built version of the compiler."
215215
};
216216

217-
const buildServer = () => buildProject("src/tsserver", cmdLineOptions);
217+
const buildDynamicImportCompat = () => buildProject("src/dynamicImportCompat", cmdLineOptions);
218+
task("dynamicImportCompat", buildDynamicImportCompat);
219+
220+
const buildServerMain = () => buildProject("src/tsserver", cmdLineOptions);
221+
const buildServer = series(buildDynamicImportCompat, buildServerMain);
222+
buildServer.displayName = "buildServer";
218223
task("tsserver", series(preBuild, buildServer));
219224
task("tsserver").description = "Builds the language server";
220225
task("tsserver").flags = {
221226
" --built": "Compile using the built version of the compiler."
222227
};
223228

224-
const cleanServer = () => cleanProject("src/tsserver");
229+
const cleanDynamicImportCompat = () => cleanProject("src/dynamicImportCompat");
230+
const cleanServerMain = () => cleanProject("src/tsserver");
231+
const cleanServer = series(cleanDynamicImportCompat, cleanServerMain);
232+
cleanServer.displayName = "cleanServer";
225233
cleanTasks.push(cleanServer);
226234
task("clean-tsserver", cleanServer);
227235
task("clean-tsserver").description = "Cleans outputs for the language server";
228236

237+
const watchDynamicImportCompat = () => watchProject("src/dynamicImportCompat", cmdLineOptions);
229238
const watchServer = () => watchProject("src/tsserver", cmdLineOptions);
230-
task("watch-tsserver", series(preBuild, parallel(watchLib, watchDiagnostics, watchServer)));
239+
task("watch-tsserver", series(preBuild, parallel(watchLib, watchDiagnostics, watchDynamicImportCompat, watchServer)));
231240
task("watch-tsserver").description = "Watch for changes and rebuild the language server only";
232241
task("watch-tsserver").flags = {
233242
" --built": "Compile using the built version of the compiler."
@@ -549,6 +558,7 @@ const produceLKG = async () => {
549558
"built/local/typescriptServices.js",
550559
"built/local/typescriptServices.d.ts",
551560
"built/local/tsserver.js",
561+
"built/local/dynamicImportCompat.js",
552562
"built/local/typescript.js",
553563
"built/local/typescript.d.ts",
554564
"built/local/tsserverlibrary.js",

package-lock.json

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

package.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@
3333
"@octokit/rest": "latest",
3434
"@types/chai": "latest",
3535
"@types/convert-source-map": "latest",
36+
"@types/fs-extra": "^9.0.13",
3637
"@types/glob": "latest",
3738
"@types/gulp": "^4.0.9",
3839
"@types/gulp-concat": "latest",
3940
"@types/gulp-newer": "latest",
40-
"@types/gulp-rename": "0.0.33",
41-
"@types/gulp-sourcemaps": "0.0.32",
41+
"@types/gulp-rename": "latest",
42+
"@types/gulp-sourcemaps": "latest",
4243
"@types/merge2": "latest",
4344
"@types/microsoft__typescript-etw": "latest",
4445
"@types/minimatch": "latest",
@@ -47,29 +48,29 @@
4748
"@types/mocha": "latest",
4849
"@types/ms": "latest",
4950
"@types/node": "latest",
50-
"@types/node-fetch": "^2.3.4",
51+
"@types/node-fetch": "^2.6.2",
5152
"@types/q": "latest",
5253
"@types/source-map-support": "latest",
53-
"@types/xml2js": "^0.4.0",
54-
"@typescript-eslint/eslint-plugin": "^4.28.0",
55-
"@typescript-eslint/experimental-utils": "^4.28.0",
56-
"@typescript-eslint/parser": "^4.28.0",
54+
"@types/xml2js": "^0.4.11",
55+
"@typescript-eslint/eslint-plugin": "^5.28.0",
56+
"@typescript-eslint/parser": "^5.28.0",
57+
"@typescript-eslint/utils": "^5.28.0",
5758
"async": "latest",
58-
"azure-devops-node-api": "^11.0.1",
59+
"azure-devops-node-api": "^11.1.1",
5960
"chai": "latest",
6061
"chalk": "^4.1.2",
6162
"convert-source-map": "latest",
62-
"del": "5.1.0",
63-
"diff": "^4.0.2",
64-
"eslint": "7.12.1",
65-
"eslint-formatter-autolinkable-stylish": "1.1.4",
66-
"eslint-plugin-import": "2.22.1",
67-
"eslint-plugin-jsdoc": "30.7.6",
63+
"del": "6.1.1",
64+
"diff": "^5.1.0",
65+
"eslint": "8.17.0",
66+
"eslint-formatter-autolinkable-stylish": "1.2.0",
67+
"eslint-plugin-import": "2.26.0",
68+
"eslint-plugin-jsdoc": "39.3.2",
6869
"eslint-plugin-no-null": "1.0.2",
6970
"fancy-log": "latest",
70-
"fs-extra": "^9.0.0",
71+
"fs-extra": "^9.1.0",
7172
"glob": "latest",
72-
"gulp": "^4.0.0",
73+
"gulp": "^4.0.2",
7374
"gulp-concat": "latest",
7475
"gulp-insert": "latest",
7576
"gulp-newer": "latest",
@@ -81,14 +82,14 @@
8182
"mocha": "latest",
8283
"mocha-fivemat-progress-reporter": "latest",
8384
"ms": "^2.1.3",
84-
"node-fetch": "^2.6.1",
85-
"prex": "^0.4.3",
85+
"node-fetch": "^2.6.7",
86+
"prex": "^0.4.7",
8687
"q": "latest",
8788
"source-map-support": "latest",
8889
"typescript": "^4.5.5",
8990
"vinyl": "latest",
9091
"vinyl-sourcemaps-apply": "latest",
91-
"xml2js": "^0.4.19"
92+
"xml2js": "^0.4.23"
9293
},
9394
"scripts": {
9495
"prepare": "gulp build-eslint-rules",

scripts/buildProtocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function writeProtocolFile(outputFile: string, protocolTs: string, typeScriptSer
159159
if (fileName === protocolFileName) {
160160
return ts.createSourceFile(fileName, protocolDts, options.target);
161161
}
162-
return originalGetSourceFile.apply(host, [fileName]);
162+
return originalGetSourceFile.apply(host, [fileName, ts.ScriptTarget.Latest]);
163163
};
164164
const rootFiles = includeTypeScriptServices ? [protocolFileName, typeScriptServicesDts] : [protocolFileName];
165165
return ts.createProgram(rootFiles, options, host);

scripts/eslint/rules/boolean-trivia.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "boolean-trivia",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Best Practices",
109
recommended: "error",
1110
},
1211
messages: {

scripts/eslint/rules/debug-assert.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "debug-assert",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Possible Errors",
109
recommended: "error",
1110
},
1211
messages: {

scripts/eslint/rules/no-double-space.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree, AST_NODE_TYPES } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree, AST_NODE_TYPES } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "no-double-space",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Stylistic Issues",
109
recommended: "error",
1110
},
1211
messages: {

scripts/eslint/rules/no-in-operator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "no-in-operator",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Best Practices",
109
recommended: "error",
1110
},
1211
messages: {

0 commit comments

Comments
 (0)