typescript 7.1.0-dev.20260819.1 → 7.1.0-dev.20260821.1
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/dist/api/async/api.d.ts +21 -18
- package/dist/api/async/api.d.ts.map +1 -1
- package/dist/api/async/api.js +61 -30
- package/dist/api/async/api.js.map +1 -1
- package/dist/api/async/client.d.ts +3 -2
- package/dist/api/async/client.d.ts.map +1 -1
- package/dist/api/async/client.js +2 -10
- package/dist/api/async/client.js.map +1 -1
- package/dist/api/async/types.d.ts +2 -0
- package/dist/api/async/types.d.ts.map +1 -1
- package/dist/api/node/encoder.d.ts.map +1 -1
- package/dist/api/node/encoder.generated.js +1 -1
- package/dist/api/node/encoder.generated.js.map +1 -1
- package/dist/api/node/encoder.js +2 -1
- package/dist/api/node/encoder.js.map +1 -1
- package/dist/api/node/node.d.ts +13 -1
- package/dist/api/node/node.d.ts.map +1 -1
- package/dist/api/node/node.generated.js +1 -1
- package/dist/api/node/node.generated.js.map +1 -1
- package/dist/api/node/node.js +128 -12
- package/dist/api/node/node.js.map +1 -1
- package/dist/api/node/protocol.d.ts +1 -1
- package/dist/api/node/protocol.generated.js +1 -1
- package/dist/api/node/protocol.generated.js.map +1 -1
- package/dist/api/node/protocol.js +1 -1
- package/dist/api/options.d.ts +4 -1
- package/dist/api/options.d.ts.map +1 -1
- package/dist/api/options.js +11 -0
- package/dist/api/options.js.map +1 -1
- package/dist/api/path.d.ts +2 -2
- package/dist/api/path.js +2 -2
- package/dist/api/proto.d.ts +23 -282
- package/dist/api/proto.d.ts.map +1 -1
- package/dist/api/proto.generated.d.ts +961 -0
- package/dist/api/proto.generated.d.ts.map +1 -0
- package/dist/api/proto.generated.js +3 -0
- package/dist/api/proto.generated.js.map +1 -0
- package/dist/api/proto.js +1 -0
- package/dist/api/proto.js.map +1 -1
- package/dist/api/sync/api.d.ts +21 -18
- package/dist/api/sync/api.d.ts.map +1 -1
- package/dist/api/sync/api.js +62 -31
- package/dist/api/sync/api.js.map +1 -1
- package/dist/api/sync/client.d.ts +3 -2
- package/dist/api/sync/client.d.ts.map +1 -1
- package/dist/api/sync/client.js +2 -8
- package/dist/api/sync/client.js.map +1 -1
- package/dist/api/sync/types.d.ts +2 -0
- package/dist/api/sync/types.d.ts.map +1 -1
- package/dist/ast/ast.d.ts +20 -0
- package/dist/ast/ast.d.ts.map +1 -1
- package/dist/ast/ast.generated.js +1 -1
- package/dist/ast/ast.generated.js.map +1 -1
- package/dist/ast/ast.js.map +1 -1
- package/dist/ast/factory.generated.d.ts +7 -0
- package/dist/ast/factory.generated.d.ts.map +1 -1
- package/dist/ast/factory.generated.js +27 -1
- package/dist/ast/factory.generated.js.map +1 -1
- package/dist/ast/index.d.ts +5 -0
- package/dist/ast/index.d.ts.map +1 -1
- package/dist/ast/index.js +5 -0
- package/dist/ast/index.js.map +1 -1
- package/dist/ast/is.generated.js +1 -1
- package/dist/ast/is.generated.js.map +1 -1
- package/dist/ast/spanMap.d.ts +88 -0
- package/dist/ast/spanMap.d.ts.map +1 -0
- package/dist/ast/spanMap.js +375 -0
- package/dist/ast/spanMap.js.map +1 -0
- package/dist/ast/utils.d.ts.map +1 -1
- package/dist/ast/utils.js +7 -0
- package/dist/ast/utils.js.map +1 -1
- package/dist/ast/visitor.generated.js +1 -1
- package/dist/ast/visitor.generated.js.map +1 -1
- package/dist/enums/checkFlags.enum.js +1 -1
- package/dist/enums/checkFlags.enum.js.map +1 -1
- package/dist/enums/checkFlags.js +1 -1
- package/dist/enums/checkFlags.js.map +1 -1
- package/dist/enums/completionItemKind.enum.js +1 -1
- package/dist/enums/completionItemKind.enum.js.map +1 -1
- package/dist/enums/completionItemKind.js +1 -1
- package/dist/enums/completionItemKind.js.map +1 -1
- package/dist/enums/diagnosticCategory.enum.js +1 -1
- package/dist/enums/diagnosticCategory.enum.js.map +1 -1
- package/dist/enums/diagnosticCategory.js +1 -1
- package/dist/enums/diagnosticCategory.js.map +1 -1
- package/dist/enums/diagnosticDirectivePolicy.d.ts +2 -0
- package/dist/enums/diagnosticDirectivePolicy.d.ts.map +1 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.d.ts +5 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.d.ts.map +1 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.js +7 -0
- package/dist/enums/diagnosticDirectivePolicy.enum.js.map +1 -0
- package/dist/enums/diagnosticDirectivePolicy.js +7 -0
- package/dist/enums/diagnosticDirectivePolicy.js.map +1 -0
- package/dist/enums/elementFlags.enum.js +1 -1
- package/dist/enums/elementFlags.enum.js.map +1 -1
- package/dist/enums/elementFlags.js +1 -1
- package/dist/enums/elementFlags.js.map +1 -1
- package/dist/enums/emitOnly.enum.js +1 -1
- package/dist/enums/emitOnly.enum.js.map +1 -1
- package/dist/enums/emitOnly.js +1 -1
- package/dist/enums/emitOnly.js.map +1 -1
- package/dist/enums/internalSymbolName.enum.js +1 -1
- package/dist/enums/internalSymbolName.enum.js.map +1 -1
- package/dist/enums/internalSymbolName.js +1 -1
- package/dist/enums/internalSymbolName.js.map +1 -1
- package/dist/enums/jsxEmit.enum.js +1 -1
- package/dist/enums/jsxEmit.enum.js.map +1 -1
- package/dist/enums/jsxEmit.js +1 -1
- package/dist/enums/jsxEmit.js.map +1 -1
- package/dist/enums/modifierFlags.enum.js +1 -1
- package/dist/enums/modifierFlags.enum.js.map +1 -1
- package/dist/enums/modifierFlags.js +1 -1
- package/dist/enums/modifierFlags.js.map +1 -1
- package/dist/enums/moduleDetectionKind.enum.js +1 -1
- package/dist/enums/moduleDetectionKind.enum.js.map +1 -1
- package/dist/enums/moduleDetectionKind.js +1 -1
- package/dist/enums/moduleDetectionKind.js.map +1 -1
- package/dist/enums/moduleKind.enum.js +1 -1
- package/dist/enums/moduleKind.enum.js.map +1 -1
- package/dist/enums/moduleKind.js +1 -1
- package/dist/enums/moduleKind.js.map +1 -1
- package/dist/enums/moduleResolutionKind.enum.js +1 -1
- package/dist/enums/moduleResolutionKind.enum.js.map +1 -1
- package/dist/enums/moduleResolutionKind.js +1 -1
- package/dist/enums/moduleResolutionKind.js.map +1 -1
- package/dist/enums/newLineKind.enum.js +1 -1
- package/dist/enums/newLineKind.enum.js.map +1 -1
- package/dist/enums/newLineKind.js +1 -1
- package/dist/enums/newLineKind.js.map +1 -1
- package/dist/enums/nodeBuilderFlags.enum.js +1 -1
- package/dist/enums/nodeBuilderFlags.enum.js.map +1 -1
- package/dist/enums/nodeBuilderFlags.js +1 -1
- package/dist/enums/nodeBuilderFlags.js.map +1 -1
- package/dist/enums/nodeFlags.enum.js +1 -1
- package/dist/enums/nodeFlags.enum.js.map +1 -1
- package/dist/enums/nodeFlags.js +1 -1
- package/dist/enums/nodeFlags.js.map +1 -1
- package/dist/enums/objectFlags.enum.js +1 -1
- package/dist/enums/objectFlags.enum.js.map +1 -1
- package/dist/enums/objectFlags.js +1 -1
- package/dist/enums/objectFlags.js.map +1 -1
- package/dist/enums/outerExpressionKinds.enum.js +1 -1
- package/dist/enums/outerExpressionKinds.enum.js.map +1 -1
- package/dist/enums/outerExpressionKinds.js +1 -1
- package/dist/enums/outerExpressionKinds.js.map +1 -1
- package/dist/enums/scriptKind.d.ts.map +1 -1
- package/dist/enums/scriptKind.enum.d.ts +1 -3
- package/dist/enums/scriptKind.enum.d.ts.map +1 -1
- package/dist/enums/scriptKind.enum.js +1 -2
- package/dist/enums/scriptKind.enum.js.map +1 -1
- package/dist/enums/scriptKind.js +1 -2
- package/dist/enums/scriptKind.js.map +1 -1
- package/dist/enums/signatureFlags.enum.js +1 -1
- package/dist/enums/signatureFlags.enum.js.map +1 -1
- package/dist/enums/signatureFlags.js +1 -1
- package/dist/enums/signatureFlags.js.map +1 -1
- package/dist/enums/signatureKind.enum.js +1 -1
- package/dist/enums/signatureKind.enum.js.map +1 -1
- package/dist/enums/signatureKind.js +1 -1
- package/dist/enums/signatureKind.js.map +1 -1
- package/dist/enums/spanMapFeature.d.ts +2 -0
- package/dist/enums/spanMapFeature.d.ts.map +1 -0
- package/dist/enums/spanMapFeature.enum.d.ts +25 -0
- package/dist/enums/spanMapFeature.enum.d.ts.map +1 -0
- package/dist/enums/spanMapFeature.enum.js +27 -0
- package/dist/enums/spanMapFeature.enum.js.map +1 -0
- package/dist/enums/spanMapFeature.js +27 -0
- package/dist/enums/spanMapFeature.js.map +1 -0
- package/dist/enums/spanMapFidelity.d.ts +2 -0
- package/dist/enums/spanMapFidelity.d.ts.map +1 -0
- package/dist/enums/spanMapFidelity.enum.d.ts +7 -0
- package/dist/enums/spanMapFidelity.enum.d.ts.map +1 -0
- package/dist/enums/spanMapFidelity.enum.js +9 -0
- package/dist/enums/spanMapFidelity.enum.js.map +1 -0
- package/dist/enums/spanMapFidelity.js +9 -0
- package/dist/enums/spanMapFidelity.js.map +1 -0
- package/dist/enums/spanMapKind.d.ts +2 -0
- package/dist/enums/spanMapKind.d.ts.map +1 -0
- package/dist/enums/spanMapKind.enum.d.ts +6 -0
- package/dist/enums/spanMapKind.enum.d.ts.map +1 -0
- package/dist/enums/spanMapKind.enum.js +8 -0
- package/dist/enums/spanMapKind.enum.js.map +1 -0
- package/dist/enums/spanMapKind.js +8 -0
- package/dist/enums/spanMapKind.js.map +1 -0
- package/dist/enums/symbolFlags.enum.js +1 -1
- package/dist/enums/symbolFlags.enum.js.map +1 -1
- package/dist/enums/symbolFlags.js +1 -1
- package/dist/enums/symbolFlags.js.map +1 -1
- package/dist/enums/syntaxKind.enum.js +1 -1
- package/dist/enums/syntaxKind.enum.js.map +1 -1
- package/dist/enums/syntaxKind.js +1 -1
- package/dist/enums/syntaxKind.js.map +1 -1
- package/dist/enums/tokenFlags.enum.js +1 -1
- package/dist/enums/tokenFlags.enum.js.map +1 -1
- package/dist/enums/tokenFlags.js +1 -1
- package/dist/enums/tokenFlags.js.map +1 -1
- package/dist/enums/typeFlags.enum.js +1 -1
- package/dist/enums/typeFlags.enum.js.map +1 -1
- package/dist/enums/typeFlags.js +1 -1
- package/dist/enums/typeFlags.js.map +1 -1
- package/dist/enums/typeFormatFlags.d.ts +2 -0
- package/dist/enums/typeFormatFlags.d.ts.map +1 -0
- package/dist/enums/typeFormatFlags.enum.d.ts +29 -0
- package/dist/enums/typeFormatFlags.enum.d.ts.map +1 -0
- package/dist/enums/typeFormatFlags.enum.js +31 -0
- package/dist/enums/typeFormatFlags.enum.js.map +1 -0
- package/dist/enums/typeFormatFlags.js +31 -0
- package/dist/enums/typeFormatFlags.js.map +1 -0
- package/dist/enums/typePredicateKind.enum.js +1 -1
- package/dist/enums/typePredicateKind.enum.js.map +1 -1
- package/dist/enums/typePredicateKind.js +1 -1
- package/dist/enums/typePredicateKind.js.map +1 -1
- package/lib/getExePath.js +2 -2
- package/package.json +9 -9
- package/vendor/vscode-jsonrpc/lib/node/main.js +1 -1
- package/vendor/vscode-jsonrpc/package.json +1 -1
- package/dist/api/compilerOptions.d.ts +0 -110
- package/dist/api/compilerOptions.d.ts.map +0 -1
- package/dist/api/compilerOptions.js +0 -2
- package/dist/api/compilerOptions.js.map +0 -1
package/dist/api/path.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export declare function splitVolumePath(path: string): [volume: string, rest: st
|
|
|
94
94
|
* fileNameToDocumentURI("/path/to/file.ts") === "file:///path/to/file.ts"
|
|
95
95
|
* fileNameToDocumentURI("c:/path/to/file.ts") === "file:///c%3A/path/to/file.ts"
|
|
96
96
|
* fileNameToDocumentURI("^/untitled/ts-nul-authority/Untitled-1") === "untitled:Untitled-1"
|
|
97
|
-
* fileNameToDocumentURI("^/vscode-vfs/github/microsoft/
|
|
97
|
+
* fileNameToDocumentURI("^/vscode-vfs/github/microsoft/TypeScript/file.ts") === "vscode-vfs://github/microsoft/TypeScript/file.ts"
|
|
98
98
|
*/
|
|
99
99
|
export declare function fileNameToDocumentURI(fileName: string): string;
|
|
100
100
|
/**
|
|
@@ -104,7 +104,7 @@ export declare function fileNameToDocumentURI(fileName: string): string;
|
|
|
104
104
|
* documentURIToFileName("file:///path/to/file.ts") === "/path/to/file.ts"
|
|
105
105
|
* documentURIToFileName("file:///c%3A/path/to/file.ts") === "c:/path/to/file.ts"
|
|
106
106
|
* documentURIToFileName("untitled:Untitled-1") === "^/untitled/ts-nul-authority/Untitled-1"
|
|
107
|
-
* documentURIToFileName("vscode-vfs://github/microsoft/
|
|
107
|
+
* documentURIToFileName("vscode-vfs://github/microsoft/TypeScript/file.ts") === "^/vscode-vfs/github/microsoft/TypeScript/file.ts"
|
|
108
108
|
*/
|
|
109
109
|
export declare function documentURIToFileName(uri: string): string;
|
|
110
110
|
//# sourceMappingURL=path.d.ts.map
|
package/dist/api/path.js
CHANGED
|
@@ -406,7 +406,7 @@ function extraEscape(s) {
|
|
|
406
406
|
* fileNameToDocumentURI("/path/to/file.ts") === "file:///path/to/file.ts"
|
|
407
407
|
* fileNameToDocumentURI("c:/path/to/file.ts") === "file:///c%3A/path/to/file.ts"
|
|
408
408
|
* fileNameToDocumentURI("^/untitled/ts-nul-authority/Untitled-1") === "untitled:Untitled-1"
|
|
409
|
-
* fileNameToDocumentURI("^/vscode-vfs/github/microsoft/
|
|
409
|
+
* fileNameToDocumentURI("^/vscode-vfs/github/microsoft/TypeScript/file.ts") === "vscode-vfs://github/microsoft/TypeScript/file.ts"
|
|
410
410
|
*/
|
|
411
411
|
export function fileNameToDocumentURI(fileName) {
|
|
412
412
|
// Bundled files are returned as-is
|
|
@@ -455,7 +455,7 @@ export function fileNameToDocumentURI(fileName) {
|
|
|
455
455
|
* documentURIToFileName("file:///path/to/file.ts") === "/path/to/file.ts"
|
|
456
456
|
* documentURIToFileName("file:///c%3A/path/to/file.ts") === "c:/path/to/file.ts"
|
|
457
457
|
* documentURIToFileName("untitled:Untitled-1") === "^/untitled/ts-nul-authority/Untitled-1"
|
|
458
|
-
* documentURIToFileName("vscode-vfs://github/microsoft/
|
|
458
|
+
* documentURIToFileName("vscode-vfs://github/microsoft/TypeScript/file.ts") === "^/vscode-vfs/github/microsoft/TypeScript/file.ts"
|
|
459
459
|
*/
|
|
460
460
|
export function documentURIToFileName(uri) {
|
|
461
461
|
// Bundled files are returned as-is
|
package/dist/api/proto.d.ts
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*
|
|
15
|
-
* // Using a URI
|
|
16
|
-
* project.program.getSourceFile({ uri: "file:///path/to/file.ts" });
|
|
17
|
-
*/
|
|
18
|
-
export type DocumentIdentifier = string | {
|
|
19
|
-
uri: string;
|
|
20
|
-
};
|
|
1
|
+
import type { APIMethodInfo, DocumentIdentifier, SignatureResponse, SourceFileResponse, SymbolResponse, TypeResponse, UpdateSnapshotParams as CoreUpdateSnapshotParams } from "./proto.generated.ts";
|
|
2
|
+
export type { ConfigFileResponse as ParsedCommandLine, DiagnosticResponse as Diagnostic } from "./proto.generated.ts";
|
|
3
|
+
export * from "./proto.generated.ts";
|
|
4
|
+
export type APIMethodsReturning<T> = {
|
|
5
|
+
[K in keyof APIMethodInfo]: [T] extends [NonNullable<APIMethodInfo[K]["result"]>] ? [NonNullable<APIMethodInfo[K]["result"]>] extends [T] ? K : never : never;
|
|
6
|
+
}[keyof APIMethodInfo];
|
|
7
|
+
export type SourceFileResponseMethod = APIMethodsReturning<SourceFileResponse>;
|
|
8
|
+
export type SymbolPropertyMethod = APIMethodsReturning<SymbolResponse>;
|
|
9
|
+
export type SymbolsPropertyMethod = APIMethodsReturning<SymbolResponse[]>;
|
|
10
|
+
export type SignaturePropertyMethod = APIMethodsReturning<SignatureResponse>;
|
|
11
|
+
export type TypePropertyMethod = Exclude<APIMethodsReturning<TypeResponse>, IntrinsicTypeMethod>;
|
|
12
|
+
export type TypesPropertyMethod = APIMethodsReturning<TypeResponse[]>;
|
|
13
|
+
export type IntrinsicTypeMethod = "getAnyType" | "getBigIntType" | "getBooleanType" | "getESSymbolType" | "getNeverType" | "getNonPrimitiveType" | "getNullType" | "getNumberType" | "getStringType" | "getUndefinedType" | "getUnknownType" | "getVoidType";
|
|
21
14
|
/**
|
|
22
15
|
* A position within a document, combining a document identifier with an offset.
|
|
23
16
|
*/
|
|
@@ -27,17 +20,6 @@ export interface DocumentPosition {
|
|
|
27
20
|
/** The character offset within the document */
|
|
28
21
|
position: number;
|
|
29
22
|
}
|
|
30
|
-
export interface TextEdit {
|
|
31
|
-
pos: number;
|
|
32
|
-
end: number;
|
|
33
|
-
newText: string;
|
|
34
|
-
}
|
|
35
|
-
export interface ImportSymbolActionRequest {
|
|
36
|
-
kind: "importSymbol";
|
|
37
|
-
symbol: number;
|
|
38
|
-
isValidTypeOnlyUseSite?: boolean;
|
|
39
|
-
}
|
|
40
|
-
export type ImportAdderActionRequest = ImportSymbolActionRequest;
|
|
41
23
|
/**
|
|
42
24
|
* Resolves a DocumentIdentifier to a file name.
|
|
43
25
|
* If the identifier contains a URI, it is converted to a file name.
|
|
@@ -48,127 +30,24 @@ export declare function resolveFileName(identifier: DocumentIdentifier): string;
|
|
|
48
30
|
* If the identifier contains a file name, it is converted to a URI.
|
|
49
31
|
*/
|
|
50
32
|
export declare function resolveDocumentURI(identifier: DocumentIdentifier): string;
|
|
51
|
-
|
|
52
|
-
* Response from the initialize method.
|
|
53
|
-
*/
|
|
54
|
-
export interface InitializeResponse {
|
|
55
|
-
/** Whether the host file system is case-sensitive */
|
|
56
|
-
useCaseSensitiveFileNames: boolean;
|
|
57
|
-
/** The server's current working directory */
|
|
58
|
-
currentDirectory: string;
|
|
59
|
-
}
|
|
60
|
-
export interface TypeAcquisition {
|
|
61
|
-
enable?: boolean;
|
|
62
|
-
include?: string[];
|
|
63
|
-
exclude?: string[];
|
|
64
|
-
disableFilenameBasedTypeAcquisition?: boolean;
|
|
65
|
-
}
|
|
66
|
-
export interface ProjectReference {
|
|
67
|
-
/** A normalized path on disk */
|
|
68
|
-
path: string;
|
|
69
|
-
/** The path as the user originally wrote it */
|
|
70
|
-
originalPath?: string;
|
|
71
|
-
/** True if it is intended that this reference form a circularity */
|
|
72
|
-
circular?: boolean;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* A diagnostic message from the TypeScript compiler.
|
|
76
|
-
*/
|
|
77
|
-
export interface Diagnostic {
|
|
78
|
-
/** File name of the source file this diagnostic belongs to, if any */
|
|
79
|
-
readonly fileName?: string | undefined;
|
|
80
|
-
/** Start position of the diagnostic */
|
|
81
|
-
readonly pos: number;
|
|
82
|
-
/** End position of the diagnostic */
|
|
83
|
-
readonly end: number;
|
|
84
|
-
/** Diagnostic error code */
|
|
85
|
-
readonly code: number;
|
|
86
|
-
/** Diagnostic category (error, warning, suggestion, message) */
|
|
87
|
-
readonly category: DiagnosticCategory;
|
|
88
|
-
/** Localized diagnostic message text */
|
|
89
|
-
readonly text: string;
|
|
90
|
-
/** Whether this diagnostic highlights unnecessary code */
|
|
91
|
-
readonly reportsUnnecessary?: boolean | undefined;
|
|
92
|
-
/** Whether this diagnostic highlights deprecated code */
|
|
93
|
-
readonly reportsDeprecated?: boolean | undefined;
|
|
94
|
-
/** Chained diagnostic messages */
|
|
95
|
-
readonly messageChain?: readonly Diagnostic[] | undefined;
|
|
96
|
-
/** Related diagnostic information */
|
|
97
|
-
readonly relatedInformation?: readonly Diagnostic[] | undefined;
|
|
98
|
-
}
|
|
99
|
-
export interface ParsedCommandLine {
|
|
100
|
-
options: CompilerOptions;
|
|
101
|
-
fileNames: string[];
|
|
102
|
-
projectReferences?: ProjectReference[];
|
|
103
|
-
typeAcquisition?: TypeAcquisition;
|
|
104
|
-
compileOnSave?: boolean;
|
|
105
|
-
raw?: any;
|
|
106
|
-
errors: readonly Diagnostic[];
|
|
107
|
-
}
|
|
108
|
-
export interface ReadConfigFileResult {
|
|
109
|
-
config: any;
|
|
110
|
-
error?: Diagnostic;
|
|
111
|
-
}
|
|
112
|
-
export interface LSPUpdateSnapshotParams {
|
|
33
|
+
export interface LSPUpdateSnapshotParams extends CoreUpdateSnapshotParams {
|
|
113
34
|
/**
|
|
114
35
|
* @deprecated Use {@link openProjects} instead.
|
|
115
36
|
* Path to a tsconfig.json file to open in the new snapshot.
|
|
116
37
|
*/
|
|
117
38
|
openProject?: string;
|
|
118
|
-
/**
|
|
119
|
-
|
|
120
|
-
* and persist across snapshots until closed via {@link closeProjects}.
|
|
121
|
-
*/
|
|
122
|
-
openProjects?: DocumentIdentifier[];
|
|
123
|
-
/**
|
|
124
|
-
* tsconfig.json files to release in the new snapshot. A project is only unloaded
|
|
125
|
-
* once every API client that opened it closes it.
|
|
126
|
-
*/
|
|
127
|
-
closeProjects?: DocumentIdentifier[];
|
|
128
|
-
/**
|
|
129
|
-
* Files to keep open for the API client, mirroring LSP's `textDocument/didOpen`.
|
|
130
|
-
* For each file, ancestor directories are searched for a tsconfig that contains it;
|
|
131
|
-
* if one is found, that configured project is loaded and becomes the file's default
|
|
132
|
-
* project. Otherwise the file is loaded into the inferred project (e.g. a d.ts in
|
|
133
|
-
* node_modules that is not part of any project's import graph). Opens persist across
|
|
134
|
-
* subsequent snapshots until the file is closed via {@link closeFiles}.
|
|
135
|
-
* After calling updateSnapshot with openFiles, getDefaultProjectForFile returns the
|
|
136
|
-
* resolved configured or inferred project.
|
|
137
|
-
*/
|
|
138
|
-
openFiles?: DocumentIdentifier[];
|
|
139
|
-
/**
|
|
140
|
-
* Files to release in the new snapshot. A file is only fully closed once every
|
|
141
|
-
* API client that opened it closes it.
|
|
142
|
-
*/
|
|
143
|
-
closeFiles?: DocumentIdentifier[];
|
|
144
|
-
}
|
|
145
|
-
export interface FileChangeSummary {
|
|
146
|
-
changed?: DocumentIdentifier[];
|
|
147
|
-
created?: DocumentIdentifier[];
|
|
148
|
-
deleted?: DocumentIdentifier[];
|
|
39
|
+
/** FileChanges are not supplied by the LSP */
|
|
40
|
+
fileChanges?: never;
|
|
149
41
|
}
|
|
150
|
-
export type FileChanges = FileChangeSummary | {
|
|
151
|
-
invalidateAll: true;
|
|
152
|
-
};
|
|
153
42
|
/**
|
|
154
|
-
* Parameters for updateSnapshot
|
|
43
|
+
* Parameters for updateSnapshot, including deprecated members handled by `toUpdateSnapshotRequest`
|
|
155
44
|
*/
|
|
156
|
-
export interface UpdateSnapshotParams extends
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
* and does not advance the session's latest snapshot. The resulting snapshot is only
|
|
163
|
-
* for the caller's own queries and must be released when done.
|
|
164
|
-
*/
|
|
165
|
-
export interface UpdateTemporarySnapshotParams {
|
|
166
|
-
/** The current client snapshot on which to layer the temporary update. */
|
|
167
|
-
snapshot: number;
|
|
168
|
-
/** The file whose content is temporarily overridden. */
|
|
169
|
-
file: DocumentIdentifier;
|
|
170
|
-
/** The temporary content for the file. */
|
|
171
|
-
newText: string;
|
|
45
|
+
export interface UpdateSnapshotParams extends CoreUpdateSnapshotParams {
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated Use {@link openProjects} instead.
|
|
48
|
+
* Path to a tsconfig.json file to open in the new snapshot.
|
|
49
|
+
*/
|
|
50
|
+
openProject?: string;
|
|
172
51
|
}
|
|
173
52
|
/**
|
|
174
53
|
* Builds the wire request for updateSnapshot, applying the deprecated `openProject`
|
|
@@ -176,142 +55,4 @@ export interface UpdateTemporarySnapshotParams {
|
|
|
176
55
|
* never sent on the wire.
|
|
177
56
|
*/
|
|
178
57
|
export declare function toUpdateSnapshotRequest(params?: UpdateSnapshotParams): UpdateSnapshotParams;
|
|
179
|
-
/**
|
|
180
|
-
* Changes to source files within a single project.
|
|
181
|
-
*/
|
|
182
|
-
export interface ProjectFileChanges {
|
|
183
|
-
/** Source file paths whose content changed */
|
|
184
|
-
changedFiles?: string[];
|
|
185
|
-
/** Source file paths removed from the project's program */
|
|
186
|
-
deletedFiles?: string[];
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Changes between two consecutive snapshots, reported per-project.
|
|
190
|
-
*/
|
|
191
|
-
export interface SnapshotChanges {
|
|
192
|
-
/** Project handles mapped to their file changes. Projects not listed are unchanged. */
|
|
193
|
-
changedProjects?: Record<string, ProjectFileChanges>;
|
|
194
|
-
/** Project handles that were removed from the snapshot */
|
|
195
|
-
removedProjects?: string[];
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Response from updateSnapshot.
|
|
199
|
-
*/
|
|
200
|
-
export interface UpdateSnapshotResponse {
|
|
201
|
-
/** Handle for the newly created snapshot */
|
|
202
|
-
snapshot: number;
|
|
203
|
-
/** List of projects in the snapshot */
|
|
204
|
-
projects: ProjectResponse[];
|
|
205
|
-
/** Changes from the previous snapshot (absent for the first snapshot) */
|
|
206
|
-
changes?: SnapshotChanges;
|
|
207
|
-
}
|
|
208
|
-
export interface ProjectResponse {
|
|
209
|
-
id: Path;
|
|
210
|
-
configFileName: string;
|
|
211
|
-
parsedCommandLine: ParsedCommandLine;
|
|
212
|
-
/** @deprecated Use `parsedCommandLine.options`. */
|
|
213
|
-
compilerOptions: CompilerOptions;
|
|
214
|
-
/** @deprecated Use `parsedCommandLine.fileNames`. */
|
|
215
|
-
rootFiles: string[];
|
|
216
|
-
}
|
|
217
|
-
export interface SourceFileResponse {
|
|
218
|
-
/** Base64-encoded binary AST data */
|
|
219
|
-
data: string;
|
|
220
|
-
}
|
|
221
|
-
export interface SourceFileMetadata {
|
|
222
|
-
isDefaultLibrary: boolean;
|
|
223
|
-
isFromExternalLibrary: boolean;
|
|
224
|
-
packageJsonType: string;
|
|
225
|
-
packageJsonDirectory: string;
|
|
226
|
-
impliedNodeFormat: ModuleKind;
|
|
227
|
-
}
|
|
228
|
-
export interface SymbolResponse {
|
|
229
|
-
id: number;
|
|
230
|
-
/**
|
|
231
|
-
* The project the symbol was first observed in. Used as the default project for
|
|
232
|
-
* follow-up lookups that need a project context (e.g. members/exports), since symbols
|
|
233
|
-
* are shared snapshot-wide and such lookups can vary by project.
|
|
234
|
-
*/
|
|
235
|
-
project: Path;
|
|
236
|
-
name: __String;
|
|
237
|
-
flags: number;
|
|
238
|
-
checkFlags: CheckFlags;
|
|
239
|
-
declarations?: string[];
|
|
240
|
-
valueDeclaration?: string;
|
|
241
|
-
parent?: number;
|
|
242
|
-
exportSymbol?: number;
|
|
243
|
-
}
|
|
244
|
-
export interface TypeResponse {
|
|
245
|
-
id: number;
|
|
246
|
-
flags: number;
|
|
247
|
-
objectFlags?: number;
|
|
248
|
-
/** Literal value. BigInt literals are encoded as a decimal string (e.g. "-123") since JSON cannot represent bigint. Absent values are serialized as null. */
|
|
249
|
-
value?: string | number | boolean | null;
|
|
250
|
-
freshType?: number;
|
|
251
|
-
regularType?: number;
|
|
252
|
-
target?: number;
|
|
253
|
-
typeParameters?: number[];
|
|
254
|
-
outerTypeParameters?: number[];
|
|
255
|
-
localTypeParameters?: number[];
|
|
256
|
-
elementFlags?: number[];
|
|
257
|
-
fixedLength?: number;
|
|
258
|
-
readonly?: boolean;
|
|
259
|
-
objectType?: number;
|
|
260
|
-
indexType?: number;
|
|
261
|
-
checkType?: number;
|
|
262
|
-
extendsType?: number;
|
|
263
|
-
baseType?: number;
|
|
264
|
-
substConstraint?: number;
|
|
265
|
-
texts?: string[];
|
|
266
|
-
intrinsicName?: string;
|
|
267
|
-
isThisType?: boolean;
|
|
268
|
-
aliasTypeArguments?: number[];
|
|
269
|
-
aliasSymbol?: number;
|
|
270
|
-
symbol?: number;
|
|
271
|
-
}
|
|
272
|
-
export interface SignatureResponse {
|
|
273
|
-
id: number;
|
|
274
|
-
flags: number;
|
|
275
|
-
declaration?: string;
|
|
276
|
-
typeParameters?: number[];
|
|
277
|
-
parameters?: number[];
|
|
278
|
-
thisParameter?: number;
|
|
279
|
-
target?: number;
|
|
280
|
-
}
|
|
281
|
-
export interface TypePredicateResponse {
|
|
282
|
-
kind: number;
|
|
283
|
-
parameterIndex: number;
|
|
284
|
-
parameterName?: string;
|
|
285
|
-
type?: TypeResponse;
|
|
286
|
-
}
|
|
287
|
-
export interface IndexInfoResponse {
|
|
288
|
-
keyType: TypeResponse;
|
|
289
|
-
valueType: TypeResponse;
|
|
290
|
-
isReadonly?: boolean;
|
|
291
|
-
declaration?: string;
|
|
292
|
-
}
|
|
293
|
-
export interface ProfileParams {
|
|
294
|
-
dir: string;
|
|
295
|
-
}
|
|
296
|
-
export interface ProfileResult {
|
|
297
|
-
file: string;
|
|
298
|
-
}
|
|
299
|
-
export interface CompletionEntryLabelDetailsResponse {
|
|
300
|
-
detail?: string;
|
|
301
|
-
description?: string;
|
|
302
|
-
}
|
|
303
|
-
export interface CompletionEntryResponse {
|
|
304
|
-
name: string;
|
|
305
|
-
kind?: CompletionItemKind;
|
|
306
|
-
sortText?: string;
|
|
307
|
-
insertText?: string;
|
|
308
|
-
filterText?: string;
|
|
309
|
-
detail?: string;
|
|
310
|
-
labelDetails?: CompletionEntryLabelDetailsResponse;
|
|
311
|
-
symbol?: SymbolResponse;
|
|
312
|
-
}
|
|
313
|
-
export interface CompletionInfoResponse {
|
|
314
|
-
isIncomplete: boolean;
|
|
315
|
-
entries: CompletionEntryResponse[];
|
|
316
|
-
}
|
|
317
58
|
//# sourceMappingURL=proto.d.ts.map
|
package/dist/api/proto.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proto.d.ts","sourceRoot":"","sources":["../../src/api/proto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proto.d.ts","sourceRoot":"","sources":["../../src/api/proto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,oBAAoB,IAAI,wBAAwB,EACnD,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,kBAAkB,IAAI,iBAAiB,EAAE,kBAAkB,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEtH,cAAc,sBAAsB,CAAC;AAErC,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,aAAa,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,KAAK;CAAG,CAAC,MAAM,aAAa,CAAC,CAAC;AAE7N,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,EAAE,mBAAmB,CAAC,CAAC;AACjG,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,YAAY,EAAE,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,eAAe,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,cAAc,GAAG,qBAAqB,GAAG,aAAa,GAAG,eAAe,GAAG,eAAe,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAE7P;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,2CAA2C;IAC3C,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAKtE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAKzE;AAED,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACrE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,CAS3F"}
|