typescript 5.5.0-dev.20240507 → 5.5.0-dev.20240508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +1336 -2525
- package/lib/tsserver.js +5 -10
- package/lib/typescript.js +2324 -4362
- package/lib/typingsInstaller.js +1 -2
- package/package.json +15 -15
package/lib/tsserver.js
CHANGED
|
@@ -85,8 +85,7 @@ function parseLoggingEnvironmentString(logEnvStr) {
|
|
|
85
85
|
pathStart += " ";
|
|
86
86
|
pathStart += args[i];
|
|
87
87
|
extraPartCounter++;
|
|
88
|
-
if (pathStart.charCodeAt(pathStart.length - 1) === typescript_exports.CharacterCodes.doubleQuote)
|
|
89
|
-
break;
|
|
88
|
+
if (pathStart.charCodeAt(pathStart.length - 1) === typescript_exports.CharacterCodes.doubleQuote) break;
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
91
|
return { value: (0, typescript_exports.stripQuotes)(pathStart), extraPartCounter };
|
|
@@ -94,8 +93,7 @@ function parseLoggingEnvironmentString(logEnvStr) {
|
|
|
94
93
|
}
|
|
95
94
|
function parseServerMode() {
|
|
96
95
|
const mode = typescript_exports.server.findArgument("--serverMode");
|
|
97
|
-
if (!mode)
|
|
98
|
-
return void 0;
|
|
96
|
+
if (!mode) return void 0;
|
|
99
97
|
switch (mode.toLowerCase()) {
|
|
100
98
|
case "semantic":
|
|
101
99
|
return typescript_exports.LanguageServiceMode.Semantic;
|
|
@@ -173,8 +171,7 @@ function initializeNodeSystem() {
|
|
|
173
171
|
(_c = typescript_exports.perfLogger) == null ? void 0 : _c.logErrEvent(s);
|
|
174
172
|
break;
|
|
175
173
|
}
|
|
176
|
-
if (!this.canWrite())
|
|
177
|
-
return;
|
|
174
|
+
if (!this.canWrite()) return;
|
|
178
175
|
s = `[${typescript_exports.server.nowString()}] ${s}
|
|
179
176
|
`;
|
|
180
177
|
if (!this.inGroup || this.firstInGroup) {
|
|
@@ -295,10 +292,8 @@ function initializeNodeSystem() {
|
|
|
295
292
|
let serverMode;
|
|
296
293
|
let unknownServerMode;
|
|
297
294
|
if (modeOrUnknown !== void 0) {
|
|
298
|
-
if (typeof modeOrUnknown === "number")
|
|
299
|
-
|
|
300
|
-
else
|
|
301
|
-
unknownServerMode = modeOrUnknown;
|
|
295
|
+
if (typeof modeOrUnknown === "number") serverMode = modeOrUnknown;
|
|
296
|
+
else unknownServerMode = modeOrUnknown;
|
|
302
297
|
}
|
|
303
298
|
return {
|
|
304
299
|
args: process.argv,
|