typescript 5.1.0-dev.20230301 → 5.1.0-dev.20230303
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 +135 -102
- package/lib/tsserver.js +878 -641
- package/lib/tsserverlibrary.d.ts +2 -37
- package/lib/tsserverlibrary.js +937 -691
- package/lib/typescript.d.ts +0 -3
- package/lib/typescript.js +815 -581
- package/lib/typingsInstaller.js +52 -49
- package/package.json +1 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -117,8 +117,6 @@ declare namespace ts {
|
|
|
117
117
|
Navto = "navto",
|
|
118
118
|
NavTree = "navtree",
|
|
119
119
|
NavTreeFull = "navtree-full",
|
|
120
|
-
/** @deprecated */
|
|
121
|
-
Occurrences = "occurrences",
|
|
122
120
|
DocumentHighlights = "documentHighlights",
|
|
123
121
|
Open = "open",
|
|
124
122
|
Quickinfo = "quickinfo",
|
|
@@ -879,30 +877,6 @@ declare namespace ts {
|
|
|
879
877
|
interface JsxClosingTagResponse extends Response {
|
|
880
878
|
readonly body: TextInsertion;
|
|
881
879
|
}
|
|
882
|
-
/**
|
|
883
|
-
* @deprecated
|
|
884
|
-
* Get occurrences request; value of command field is
|
|
885
|
-
* "occurrences". Return response giving spans that are relevant
|
|
886
|
-
* in the file at a given line and column.
|
|
887
|
-
*/
|
|
888
|
-
interface OccurrencesRequest extends FileLocationRequest {
|
|
889
|
-
command: CommandTypes.Occurrences;
|
|
890
|
-
}
|
|
891
|
-
/** @deprecated */
|
|
892
|
-
interface OccurrencesResponseItem extends FileSpanWithContext {
|
|
893
|
-
/**
|
|
894
|
-
* True if the occurrence is a write location, false otherwise.
|
|
895
|
-
*/
|
|
896
|
-
isWriteAccess: boolean;
|
|
897
|
-
/**
|
|
898
|
-
* True if the occurrence is in a string, undefined otherwise;
|
|
899
|
-
*/
|
|
900
|
-
isInString?: true;
|
|
901
|
-
}
|
|
902
|
-
/** @deprecated */
|
|
903
|
-
interface OccurrencesResponse extends Response {
|
|
904
|
-
body?: OccurrencesResponseItem[];
|
|
905
|
-
}
|
|
906
880
|
/**
|
|
907
881
|
* Get document highlights request; value of command field is
|
|
908
882
|
* "documentHighlights". Return response giving spans that are relevant
|
|
@@ -3065,10 +3039,6 @@ declare namespace ts {
|
|
|
3065
3039
|
remove(path: NormalizedPath): void;
|
|
3066
3040
|
}
|
|
3067
3041
|
function isDynamicFileName(fileName: NormalizedPath): boolean;
|
|
3068
|
-
interface ScriptInfoVersion {
|
|
3069
|
-
svc: number;
|
|
3070
|
-
text: number;
|
|
3071
|
-
}
|
|
3072
3042
|
class ScriptInfo {
|
|
3073
3043
|
private readonly host;
|
|
3074
3044
|
readonly fileName: NormalizedPath;
|
|
@@ -3081,10 +3051,9 @@ declare namespace ts {
|
|
|
3081
3051
|
readonly containingProjects: Project[];
|
|
3082
3052
|
private formatSettings;
|
|
3083
3053
|
private preferences;
|
|
3084
|
-
|
|
3085
|
-
constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: ScriptInfoVersion);
|
|
3054
|
+
constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: number);
|
|
3086
3055
|
isScriptOpen(): boolean;
|
|
3087
|
-
open(newText: string): void;
|
|
3056
|
+
open(newText: string | undefined): void;
|
|
3088
3057
|
close(fileExists?: boolean): void;
|
|
3089
3058
|
getSnapshot(): IScriptSnapshot;
|
|
3090
3059
|
private ensureRealPath;
|
|
@@ -3874,7 +3843,6 @@ declare namespace ts {
|
|
|
3874
3843
|
private getTypeDefinition;
|
|
3875
3844
|
private mapImplementationLocations;
|
|
3876
3845
|
private getImplementation;
|
|
3877
|
-
private getOccurrences;
|
|
3878
3846
|
private getSyntacticDiagnosticsSync;
|
|
3879
3847
|
private getSemanticDiagnosticsSync;
|
|
3880
3848
|
private getSuggestionDiagnosticsSync;
|
|
@@ -8151,7 +8119,6 @@ declare namespace ts {
|
|
|
8151
8119
|
noEmitHelpers?: boolean;
|
|
8152
8120
|
}
|
|
8153
8121
|
interface GetEffectiveTypeRootsHost {
|
|
8154
|
-
directoryExists?(directoryName: string): boolean;
|
|
8155
8122
|
getCurrentDirectory?(): string;
|
|
8156
8123
|
}
|
|
8157
8124
|
interface TextSpan {
|
|
@@ -9989,8 +9956,6 @@ declare namespace ts {
|
|
|
9989
9956
|
findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined;
|
|
9990
9957
|
getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined;
|
|
9991
9958
|
getFileReferences(fileName: string): ReferenceEntry[];
|
|
9992
|
-
/** @deprecated */
|
|
9993
|
-
getOccurrencesAtPosition(fileName: string, position: number): readonly ReferenceEntry[] | undefined;
|
|
9994
9959
|
getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[];
|
|
9995
9960
|
getNavigationBarItems(fileName: string): NavigationBarItem[];
|
|
9996
9961
|
getNavigationTree(fileName: string): NavigationTree;
|