Skip to content

Commit 9bc39d1

Browse files
committed
Rename tsserverWeb to dynamicImportCompat
1 parent c760041 commit 9bc39d1

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

Gulpfile.js

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

217-
const buildServerWeb = () => buildProject("src/tsserverWeb", cmdLineOptions);
218-
task("tsserverWeb", buildServerWeb);
217+
const buildDynamicImportCompat = () => buildProject("src/dynamicImportCompat", cmdLineOptions);
218+
task("dynamicImportCompat", buildDynamicImportCompat);
219219

220220
const buildServerMain = () => buildProject("src/tsserver", cmdLineOptions);
221-
const buildServer = series(buildServerWeb, buildServerMain);
221+
const buildServer = series(buildDynamicImportCompat, buildServerMain);
222222
buildServer.displayName = "buildServer";
223223
task("tsserver", series(preBuild, buildServer));
224224
task("tsserver").description = "Builds the language server";
225225
task("tsserver").flags = {
226226
" --built": "Compile using the built version of the compiler."
227227
};
228228

229-
const cleanServerWeb = () => cleanProject("src/tsserverWeb");
229+
const cleanDynamicImportCompat = () => cleanProject("src/dynamicImportCompat");
230230
const cleanServerMain = () => cleanProject("src/tsserver");
231-
const cleanServer = series(cleanServerWeb, cleanServerMain);
231+
const cleanServer = series(cleanDynamicImportCompat, cleanServerMain);
232232
cleanServer.displayName = "cleanServer";
233233
cleanTasks.push(cleanServer);
234234
task("clean-tsserver", cleanServer);
235235
task("clean-tsserver").description = "Cleans outputs for the language server";
236236

237-
const watchServerWeb = () => watchProject("src/tsserverWeb", cmdLineOptions);
237+
const watchDynamicImportCompat = () => watchProject("src/dynamicImportCompat", cmdLineOptions);
238238
const watchServer = () => watchProject("src/tsserver", cmdLineOptions);
239-
task("watch-tsserver", series(preBuild, parallel(watchLib, watchDiagnostics, watchServerWeb, watchServer)));
239+
task("watch-tsserver", series(preBuild, parallel(watchLib, watchDiagnostics, watchDynamicImportCompat, watchServer)));
240240
task("watch-tsserver").description = "Watch for changes and rebuild the language server only";
241241
task("watch-tsserver").flags = {
242242
" --built": "Compile using the built version of the compiler."
@@ -558,7 +558,7 @@ const produceLKG = async () => {
558558
"built/local/typescriptServices.js",
559559
"built/local/typescriptServices.d.ts",
560560
"built/local/tsserver.js",
561-
"built/local/tsserverWeb.js",
561+
"built/local/dynamicImportCompat.js",
562562
"built/local/typescript.js",
563563
"built/local/typescript.d.ts",
564564
"built/local/tsserverlibrary.js",

scripts/produceLKG.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function copyScriptOutputs() {
6262
await copyWithCopyright("cancellationToken.js");
6363
await copyWithCopyright("tsc.release.js", "tsc.js");
6464
await copyWithCopyright("tsserver.js");
65-
await copyWithCopyright("tsserverWeb.js");
65+
await copyWithCopyright("dynamicImportCompat.js");
6666
await copyFromBuiltLocal("tsserverlibrary.js"); // copyright added by build
6767
await copyFromBuiltLocal("typescript.js"); // copyright added by build
6868
await copyFromBuiltLocal("typescriptServices.js"); // copyright added by build

src/tsserverWeb/tsconfig.json renamed to src/dynamicImportCompat/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"lib": ["esnext"],
99
"declaration": false,
1010
"sourceMap": true,
11-
"tsBuildInfoFile": "../../built/local/tsserverWeb.tsbuildinfo"
11+
"tsBuildInfoFile": "../../built/local/dynamicImportCompat.tsbuildinfo"
1212
},
1313
"files": [
14-
"tsserverWeb.ts",
14+
"dynamicImportCompat.ts",
1515
]
1616
}

src/server/editorServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4082,7 +4082,7 @@ namespace ts.server {
40824082
return;
40834083
}
40844084

4085-
// Otherwise, load the plugin using `resolve`
4085+
// Otherwise, load the plugin using `require`
40864086
project.endEnablePlugin(project.beginEnablePluginSync(pluginConfigEntry, searchPaths, pluginConfigOverrides));
40874087
}
40884088

src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{ "path": "./watchGuard" },
1010
{ "path": "./debug" },
1111
{ "path": "./cancellationToken" },
12-
{ "path": "./tsserverWeb" },
12+
{ "path": "./dynamicImportCompat" },
1313
{ "path": "./testRunner" }
1414
]
1515
}

src/webServer/webServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace ts.server {
118118
if (typeof importScripts === "function") {
119119
try {
120120
// NOTE: importScripts is synchronous
121-
importScripts("tsserverWeb.js");
121+
importScripts("dynamicImportCompat.js");
122122
}
123123
catch {
124124
// ignored

0 commit comments

Comments
 (0)