typescript 5.0.0-dev.20230123 → 5.0.0-dev.20230125
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 +1 -1
- package/lib/tsserver.js +10 -10
- package/lib/tsserverlibrary.d.ts +1 -1
- package/lib/tsserverlibrary.js +10 -10
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +9 -9
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -23,7 +23,7 @@ var __export = (target, all) => {
|
|
|
23
23
|
|
|
24
24
|
// src/compiler/corePublic.ts
|
|
25
25
|
var versionMajorMinor = "5.0";
|
|
26
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
26
|
+
var version = `${versionMajorMinor}.0-dev.20230125`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
package/lib/tsserver.js
CHANGED
|
@@ -2373,7 +2373,7 @@ __export(ts_server_exports3, {
|
|
|
2373
2373
|
|
|
2374
2374
|
// src/compiler/corePublic.ts
|
|
2375
2375
|
var versionMajorMinor = "5.0";
|
|
2376
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2376
|
+
var version = `${versionMajorMinor}.0-dev.20230125`;
|
|
2377
2377
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2378
2378
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2379
2379
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -137389,12 +137389,9 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h
|
|
|
137389
137389
|
Debug.assertEqual(action.type, "install package");
|
|
137390
137390
|
return host.installPackage ? host.installPackage({ fileName: getPath(action.file), packageName: action.packageName }) : Promise.reject("Host does not implement `installPackage`");
|
|
137391
137391
|
}
|
|
137392
|
-
function getDocCommentTemplateAtPosition2(fileName, position, options) {
|
|
137393
|
-
|
|
137394
|
-
|
|
137395
|
-
/*formatSettings*/
|
|
137396
|
-
void 0
|
|
137397
|
-
), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);
|
|
137392
|
+
function getDocCommentTemplateAtPosition2(fileName, position, options, formatOptions) {
|
|
137393
|
+
const formatSettings = formatOptions ? ts_formatting_exports.getFormatContext(formatOptions, host).options : void 0;
|
|
137394
|
+
return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(host, formatSettings), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);
|
|
137398
137395
|
}
|
|
137399
137396
|
function isValidBraceCompletionAtPosition(fileName, position, openingBrace) {
|
|
137400
137397
|
if (openingBrace === 60 /* lessThan */) {
|
|
@@ -138575,10 +138572,10 @@ var LanguageServiceShimObject = class extends ShimBase {
|
|
|
138575
138572
|
}
|
|
138576
138573
|
);
|
|
138577
138574
|
}
|
|
138578
|
-
getDocCommentTemplateAtPosition(fileName, position, options) {
|
|
138575
|
+
getDocCommentTemplateAtPosition(fileName, position, options, formatOptions) {
|
|
138579
138576
|
return this.forwardJSONCall(
|
|
138580
138577
|
`getDocCommentTemplateAtPosition('${fileName}', ${position})`,
|
|
138581
|
-
() => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options)
|
|
138578
|
+
() => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options, formatOptions)
|
|
138582
138579
|
);
|
|
138583
138580
|
}
|
|
138584
138581
|
/// NAVIGATE TO
|
|
@@ -157331,6 +157328,8 @@ var jsDocTagNames = [
|
|
|
157331
157328
|
"lends",
|
|
157332
157329
|
"license",
|
|
157333
157330
|
"link",
|
|
157331
|
+
"linkcode",
|
|
157332
|
+
"linkplain",
|
|
157334
157333
|
"listens",
|
|
157335
157334
|
"member",
|
|
157336
157335
|
"memberof",
|
|
@@ -157343,6 +157342,7 @@ var jsDocTagNames = [
|
|
|
157343
157342
|
"package",
|
|
157344
157343
|
"param",
|
|
157345
157344
|
"private",
|
|
157345
|
+
"prop",
|
|
157346
157346
|
"property",
|
|
157347
157347
|
"protected",
|
|
157348
157348
|
"public",
|
|
@@ -178153,7 +178153,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
178153
178153
|
getDocCommentTemplate(args) {
|
|
178154
178154
|
const { file, languageService } = this.getFileAndLanguageServiceForSyntacticOperation(args);
|
|
178155
178155
|
const position = this.getPositionInFile(args, file);
|
|
178156
|
-
return languageService.getDocCommentTemplateAtPosition(file, position, this.getPreferences(file));
|
|
178156
|
+
return languageService.getDocCommentTemplateAtPosition(file, position, this.getPreferences(file), this.getFormatOptions(file));
|
|
178157
178157
|
}
|
|
178158
178158
|
getSpanOfEnclosingComment(args) {
|
|
178159
178159
|
const { file, languageService } = this.getFileAndLanguageServiceForSyntacticOperation(args);
|
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -9990,7 +9990,7 @@ declare namespace ts {
|
|
|
9990
9990
|
getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
|
|
9991
9991
|
getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
|
|
9992
9992
|
getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
|
|
9993
|
-
getDocCommentTemplateAtPosition(fileName: string, position: number, options?: DocCommentTemplateOptions): TextInsertion | undefined;
|
|
9993
|
+
getDocCommentTemplateAtPosition(fileName: string, position: number, options?: DocCommentTemplateOptions, formatOptions?: FormatCodeSettings): TextInsertion | undefined;
|
|
9994
9994
|
isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean;
|
|
9995
9995
|
/**
|
|
9996
9996
|
* This will return a defined result if the position is after the `>` of the opening tag, or somewhere in the text, of a JSXElement with no closing tag.
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20230125`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -132743,12 +132743,9 @@ ${lanes.join("\n")}
|
|
|
132743
132743
|
Debug.assertEqual(action.type, "install package");
|
|
132744
132744
|
return host.installPackage ? host.installPackage({ fileName: getPath(action.file), packageName: action.packageName }) : Promise.reject("Host does not implement `installPackage`");
|
|
132745
132745
|
}
|
|
132746
|
-
function getDocCommentTemplateAtPosition2(fileName, position, options) {
|
|
132747
|
-
|
|
132748
|
-
|
|
132749
|
-
/*formatSettings*/
|
|
132750
|
-
void 0
|
|
132751
|
-
), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);
|
|
132746
|
+
function getDocCommentTemplateAtPosition2(fileName, position, options, formatOptions) {
|
|
132747
|
+
const formatSettings = formatOptions ? ts_formatting_exports.getFormatContext(formatOptions, host).options : void 0;
|
|
132748
|
+
return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(host, formatSettings), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);
|
|
132752
132749
|
}
|
|
132753
132750
|
function isValidBraceCompletionAtPosition(fileName, position, openingBrace) {
|
|
132754
132751
|
if (openingBrace === 60 /* lessThan */) {
|
|
@@ -134620,10 +134617,10 @@ ${lanes.join("\n")}
|
|
|
134620
134617
|
}
|
|
134621
134618
|
);
|
|
134622
134619
|
}
|
|
134623
|
-
getDocCommentTemplateAtPosition(fileName, position, options) {
|
|
134620
|
+
getDocCommentTemplateAtPosition(fileName, position, options, formatOptions) {
|
|
134624
134621
|
return this.forwardJSONCall(
|
|
134625
134622
|
`getDocCommentTemplateAtPosition('${fileName}', ${position})`,
|
|
134626
|
-
() => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options)
|
|
134623
|
+
() => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options, formatOptions)
|
|
134627
134624
|
);
|
|
134628
134625
|
}
|
|
134629
134626
|
/// NAVIGATE TO
|
|
@@ -154415,6 +154412,8 @@ ${lanes.join("\n")}
|
|
|
154415
154412
|
"lends",
|
|
154416
154413
|
"license",
|
|
154417
154414
|
"link",
|
|
154415
|
+
"linkcode",
|
|
154416
|
+
"linkplain",
|
|
154418
154417
|
"listens",
|
|
154419
154418
|
"member",
|
|
154420
154419
|
"memberof",
|
|
@@ -154427,6 +154426,7 @@ ${lanes.join("\n")}
|
|
|
154427
154426
|
"package",
|
|
154428
154427
|
"param",
|
|
154429
154428
|
"private",
|
|
154429
|
+
"prop",
|
|
154430
154430
|
"property",
|
|
154431
154431
|
"protected",
|
|
154432
154432
|
"public",
|
|
@@ -175499,7 +175499,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
175499
175499
|
getDocCommentTemplate(args) {
|
|
175500
175500
|
const { file, languageService } = this.getFileAndLanguageServiceForSyntacticOperation(args);
|
|
175501
175501
|
const position = this.getPositionInFile(args, file);
|
|
175502
|
-
return languageService.getDocCommentTemplateAtPosition(file, position, this.getPreferences(file));
|
|
175502
|
+
return languageService.getDocCommentTemplateAtPosition(file, position, this.getPreferences(file), this.getFormatOptions(file));
|
|
175503
175503
|
}
|
|
175504
175504
|
getSpanOfEnclosingComment(args) {
|
|
175505
175505
|
const { file, languageService } = this.getFileAndLanguageServiceForSyntacticOperation(args);
|
package/lib/typescript.d.ts
CHANGED
|
@@ -6088,7 +6088,7 @@ declare namespace ts {
|
|
|
6088
6088
|
getFormattingEditsForRange(fileName: string, start: number, end: number, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
|
|
6089
6089
|
getFormattingEditsForDocument(fileName: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
|
|
6090
6090
|
getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: FormatCodeOptions | FormatCodeSettings): TextChange[];
|
|
6091
|
-
getDocCommentTemplateAtPosition(fileName: string, position: number, options?: DocCommentTemplateOptions): TextInsertion | undefined;
|
|
6091
|
+
getDocCommentTemplateAtPosition(fileName: string, position: number, options?: DocCommentTemplateOptions, formatOptions?: FormatCodeSettings): TextInsertion | undefined;
|
|
6092
6092
|
isValidBraceCompletionAtPosition(fileName: string, position: number, openingBrace: number): boolean;
|
|
6093
6093
|
/**
|
|
6094
6094
|
* This will return a defined result if the position is after the `>` of the opening tag, or somewhere in the text, of a JSXElement with no closing tag.
|
package/lib/typescript.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20230125`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -132757,12 +132757,9 @@ ${lanes.join("\n")}
|
|
|
132757
132757
|
Debug.assertEqual(action.type, "install package");
|
|
132758
132758
|
return host.installPackage ? host.installPackage({ fileName: getPath(action.file), packageName: action.packageName }) : Promise.reject("Host does not implement `installPackage`");
|
|
132759
132759
|
}
|
|
132760
|
-
function getDocCommentTemplateAtPosition2(fileName, position, options) {
|
|
132761
|
-
|
|
132762
|
-
|
|
132763
|
-
/*formatSettings*/
|
|
132764
|
-
void 0
|
|
132765
|
-
), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);
|
|
132760
|
+
function getDocCommentTemplateAtPosition2(fileName, position, options, formatOptions) {
|
|
132761
|
+
const formatSettings = formatOptions ? ts_formatting_exports.getFormatContext(formatOptions, host).options : void 0;
|
|
132762
|
+
return ts_JsDoc_exports.getDocCommentTemplateAtPosition(getNewLineOrDefaultFromHost(host, formatSettings), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);
|
|
132766
132763
|
}
|
|
132767
132764
|
function isValidBraceCompletionAtPosition(fileName, position, openingBrace) {
|
|
132768
132765
|
if (openingBrace === 60 /* lessThan */) {
|
|
@@ -134634,10 +134631,10 @@ ${lanes.join("\n")}
|
|
|
134634
134631
|
}
|
|
134635
134632
|
);
|
|
134636
134633
|
}
|
|
134637
|
-
getDocCommentTemplateAtPosition(fileName, position, options) {
|
|
134634
|
+
getDocCommentTemplateAtPosition(fileName, position, options, formatOptions) {
|
|
134638
134635
|
return this.forwardJSONCall(
|
|
134639
134636
|
`getDocCommentTemplateAtPosition('${fileName}', ${position})`,
|
|
134640
|
-
() => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options)
|
|
134637
|
+
() => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options, formatOptions)
|
|
134641
134638
|
);
|
|
134642
134639
|
}
|
|
134643
134640
|
/// NAVIGATE TO
|
|
@@ -154429,6 +154426,8 @@ ${lanes.join("\n")}
|
|
|
154429
154426
|
"lends",
|
|
154430
154427
|
"license",
|
|
154431
154428
|
"link",
|
|
154429
|
+
"linkcode",
|
|
154430
|
+
"linkplain",
|
|
154432
154431
|
"listens",
|
|
154433
154432
|
"member",
|
|
154434
154433
|
"memberof",
|
|
@@ -154441,6 +154440,7 @@ ${lanes.join("\n")}
|
|
|
154441
154440
|
"package",
|
|
154442
154441
|
"param",
|
|
154443
154442
|
"private",
|
|
154443
|
+
"prop",
|
|
154444
154444
|
"property",
|
|
154445
154445
|
"protected",
|
|
154446
154446
|
"public",
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.0";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230125`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20230125",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|