typescript 7.1.0-dev.20260930.4 → 7.1.0-dev.20261002.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 +32 -24
- package/dist/api/async/api.d.ts.map +1 -1
- package/dist/api/async/api.js +142 -54
- package/dist/api/async/api.js.map +1 -1
- package/dist/api/compilerOptions.generated.d.ts +122 -0
- package/dist/api/compilerOptions.generated.d.ts.map +1 -0
- package/dist/api/compilerOptions.generated.js +8 -0
- package/dist/api/compilerOptions.generated.js.map +1 -0
- package/dist/api/node/node.d.ts +6 -1
- package/dist/api/node/node.d.ts.map +1 -1
- package/dist/api/node/node.js +4 -1
- package/dist/api/node/node.js.map +1 -1
- package/dist/api/path.d.ts.map +1 -1
- package/dist/api/path.js +194 -11
- package/dist/api/path.js.map +1 -1
- package/dist/api/proto.d.ts +1 -0
- package/dist/api/proto.d.ts.map +1 -1
- package/dist/api/proto.generated.d.ts +44 -153
- package/dist/api/proto.generated.d.ts.map +1 -1
- package/dist/api/proto.generated.js +1 -10
- package/dist/api/proto.generated.js.map +1 -1
- package/dist/api/proto.js +1 -0
- package/dist/api/proto.js.map +1 -1
- package/dist/api/sourceFileCache.d.ts +8 -2
- package/dist/api/sourceFileCache.d.ts.map +1 -1
- package/dist/api/sourceFileCache.js +30 -12
- package/dist/api/sourceFileCache.js.map +1 -1
- package/dist/api/sync/api.d.ts +38 -24
- package/dist/api/sync/api.d.ts.map +1 -1
- package/dist/api/sync/api.js +168 -64
- package/dist/api/sync/api.js.map +1 -1
- package/dist/api/userPreferences.generated.d.ts +195 -0
- package/dist/api/userPreferences.generated.d.ts.map +1 -0
- package/dist/api/userPreferences.generated.js +3 -0
- package/dist/api/userPreferences.generated.js.map +1 -0
- 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/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/scriptTarget.d.ts.map +1 -1
- package/dist/enums/scriptTarget.enum.d.ts.map +1 -1
- package/dist/enums/scriptTarget.enum.js +1 -0
- package/dist/enums/scriptTarget.enum.js.map +1 -1
- package/dist/enums/scriptTarget.js +1 -0
- package/dist/enums/scriptTarget.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/package.json +12 -9
- package/schemas/jsconfig.schema.json +2205 -0
- package/schemas/tsconfig.schema.json +2204 -0
|
@@ -76,7 +76,13 @@ export class SourceFileCache {
|
|
|
76
76
|
}
|
|
77
77
|
let record = this.findDescriptor(file, entries);
|
|
78
78
|
if (!record) {
|
|
79
|
-
record = this.addRecord(entries, {
|
|
79
|
+
record = this.addRecord(entries, {
|
|
80
|
+
descriptor: file,
|
|
81
|
+
refs: new Set(),
|
|
82
|
+
symbolsById: new Map(),
|
|
83
|
+
symbolsByDeclarationNodeIndex: new Map(),
|
|
84
|
+
declarationSymbolRequests: new Map(),
|
|
85
|
+
});
|
|
80
86
|
}
|
|
81
87
|
this.retainRecordForSnapshot(record, snapshotId, projectId);
|
|
82
88
|
return record;
|
|
@@ -97,16 +103,18 @@ export class SourceFileCache {
|
|
|
97
103
|
if (!descriptorsEqual(descriptorFromFile(file), record.descriptor)) {
|
|
98
104
|
throw new Error(`Source file does not match cached record '${record.descriptor.fileName}'`);
|
|
99
105
|
}
|
|
100
|
-
|
|
106
|
+
const result = record.file ??= file;
|
|
107
|
+
result.symbolCache = record;
|
|
108
|
+
return result;
|
|
101
109
|
}
|
|
102
110
|
getOrCreateSymbol(record, file, id, create) {
|
|
103
111
|
if (!descriptorsEqual(file, record.descriptor)) {
|
|
104
112
|
throw new Error(`Symbol ${id} does not belong to '${record.descriptor.fileName}'`);
|
|
105
113
|
}
|
|
106
|
-
let symbol = record.
|
|
114
|
+
let symbol = record.symbolsById.get(id);
|
|
107
115
|
if (!symbol) {
|
|
108
116
|
symbol = create();
|
|
109
|
-
record.
|
|
117
|
+
record.symbolsById.set(id, symbol);
|
|
110
118
|
}
|
|
111
119
|
return symbol;
|
|
112
120
|
}
|
|
@@ -137,14 +145,19 @@ export class SourceFileCache {
|
|
|
137
145
|
entries = [];
|
|
138
146
|
this.cache.set(file.path, entries);
|
|
139
147
|
}
|
|
140
|
-
|
|
141
|
-
if (
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
let record = this.find(file, entries);
|
|
149
|
+
if (!record) {
|
|
150
|
+
record = file.symbolCache ?? {
|
|
151
|
+
descriptor: descriptorFromFile(file),
|
|
152
|
+
refs: new Set(),
|
|
153
|
+
symbolsById: new Map(),
|
|
154
|
+
symbolsByDeclarationNodeIndex: new Map(),
|
|
155
|
+
declarationSymbolRequests: new Map(),
|
|
156
|
+
};
|
|
157
|
+
this.addRecord(entries, record);
|
|
145
158
|
}
|
|
146
|
-
|
|
147
|
-
return file;
|
|
159
|
+
record.refs.add(ref);
|
|
160
|
+
return this.attachFile(record, file);
|
|
148
161
|
}
|
|
149
162
|
addRecord(entries, record) {
|
|
150
163
|
entries.push(record);
|
|
@@ -258,9 +271,14 @@ export class SourceFileCache {
|
|
|
258
271
|
paths.add(path);
|
|
259
272
|
}
|
|
260
273
|
/**
|
|
261
|
-
*
|
|
274
|
+
* Drop local cache ownership without releasing server-side snapshots or leases.
|
|
275
|
+
* Caller-held ASTs may keep detached records alive; newly cached records need not
|
|
276
|
+
* preserve object identity with those detached records.
|
|
262
277
|
*/
|
|
263
278
|
clear() {
|
|
279
|
+
for (const record of this.recordsByNodeId.values()) {
|
|
280
|
+
record.refs.clear();
|
|
281
|
+
}
|
|
264
282
|
this.cache.clear();
|
|
265
283
|
this.snapshotProjectPaths.clear();
|
|
266
284
|
this.leasePaths.clear();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceFileCache.js","sourceRoot":"","sources":["../../src/api/sourceFileCache.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,SAAS,cAAc,CAAC,UAAkB,EAAE,SAAiB;IACzD,OAAO,YAAY,UAAU,IAAI,SAAS,EAAE,CAAC;AACjD,CAAC;AAED,SAAS,WAAW,CAAC,OAAe;IAChC,OAAO,SAAS,OAAO,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,kBAAkB,CAAC,IAAsB;IAC9C,OAAO;QACH,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;KACtB,CAAC;AACN,CAAC;AAED,SAAS,gBAAgB,CAAC,IAA0B,EAAE,KAA2B;IAC7E,OAAO,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ;QACnC,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI;QACxB,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,WAAW;QACtC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import { TypePredicateKind } from "#enums/typePredicateKind";
|
|
21
21
|
import { type __String, type CallLikeExpression, type Declaration, type Expression, type FileReference, type Identifier, ModifierFlags, type NamedTupleMember, type Node, type ParameterDeclaration, type Path, type SourceFile, type StringLiteralLikeNode, type SyntaxKind, type TypeNode } from "../../ast/index.ts";
|
|
22
22
|
import type { APIOptions, LSPConnectionOptions } from "../options.ts";
|
|
23
|
-
import type { BuildResponse, CleanBuildResponse, CompactSymbolReference, CompilerOptions, ConfiguredProjectId, CreateBuildOrchestratorResponse, CreateProgramOptions as ProtocolCreateProgramOptions, CreateSnapshotParams as ProtocolCreateSnapshotParams, CreateSnapshotProgramParams as ProtocolCreateSnapshotProgramParams, CreateSnapshotResponse, CreateSourceFileOptions, Diagnostic, DocumentIdentifier, DocumentPosition, FileNotifications, InferredProjectId, LanguageServerSnapshotChanges as ProtocolLanguageServerSnapshotChanges, ModuleResolutionEntry, ModuleResolutionSpec, PackageId, ParsedCommandLine, ProjectId, ProjectReference, ProjectResponse, ProtocolSymbolResponse, ReadConfigFileResponse, ReconfigureSnapshotProgramParams as ProtocolReconfigureSnapshotProgramParams, ResolutionMode, ResolvedModule, ResolvedTypeReferenceDirective, ResolveModuleNameResult, SignaturePropertyMethod, SignatureResponse, SourceFileMetadata, StaticModuleResolution, SymbolPropertyMethod, SymbolReference, SymbolResponse, SymbolsPropertyMethod, SyntheticProjectId, TextEdit, TypeAcquisition, TypePropertyMethod, TypeResponse, TypesPropertyMethod } from "../proto.ts";
|
|
23
|
+
import type { BuildResponse, CleanBuildResponse, CompactSymbolReference, CompilerOptions, CompletionPreferences, ConfiguredProjectId, CreateBuildOrchestratorResponse, CreateProgramOptions as ProtocolCreateProgramOptions, CreateSnapshotParams as ProtocolCreateSnapshotParams, CreateSnapshotProgramParams as ProtocolCreateSnapshotProgramParams, CreateSnapshotResponse, CreateSourceFileOptions, Diagnostic, DocumentIdentifier, DocumentPosition, FileNotifications, InferredProjectId, LanguageServerSnapshotChanges as ProtocolLanguageServerSnapshotChanges, ModuleResolutionEntry, ModuleResolutionSpec, PackageId, ParsedCommandLine, ProjectId, ProjectReference, ProjectResponse, ProtocolSymbolResponse, ReadConfigFileResponse, ReconfigureSnapshotProgramParams as ProtocolReconfigureSnapshotProgramParams, ResolutionMode, ResolvedModule, ResolvedTypeReferenceDirective, ResolveModuleNameResult, SignaturePropertyMethod, SignatureResponse, SourceFileMetadata, StaticModuleResolution, SymbolPropertyMethod, SymbolReference, SymbolResponse, SymbolsPropertyMethod, SyntheticProjectId, TextEdit, TypeAcquisition, TypePropertyMethod, TypeResponse, TypesPropertyMethod, UserPreferences } from "../proto.ts";
|
|
24
24
|
import { type CachedSourceFile, SourceFileCache } from "../sourceFileCache.ts";
|
|
25
25
|
import type { RequestTiming, TimingAccumulators, TimingInfo } from "../timing.ts";
|
|
26
26
|
import { Client, type ClientSocketOptions, type ClientSpawnOptions } from "./client.ts";
|
|
@@ -28,7 +28,7 @@ import type { AssertsIdentifierTypePredicate, AssertsThisTypePredicate, BigIntLi
|
|
|
28
28
|
export { formatDiagnostics, formatDiagnosticsWithColorAndContext } from "../diagnosticFormatter.ts";
|
|
29
29
|
export { documentURIToFileName, fileNameToDocumentURI } from "../path.ts";
|
|
30
30
|
export { CheckFlags, CompletionItemKind, DiagnosticCategory, ElementFlags, EmitOnly, IndexKind, JsxEmit, ModifierFlags, ModuleKind, ModuleResolutionKind, NodeBuilderFlags, ObjectFlags, ScriptKind, SignatureFlags, SignatureKind, SymbolFlags, SymbolOwnerKind, TypeFlags, TypeFormatFlags, TypePredicateKind };
|
|
31
|
-
export type { APIImportAdderAction as ImportAdderAction, APIOptions, AssertsIdentifierTypePredicate, AssertsThisTypePredicate, BigIntLiteralType, BooleanLiteralType, ClientSocketOptions, ClientSpawnOptions, CompilerOptions, CompletionEntry, CompletionInfo, CompletionOptions, ConditionalType, ConfiguredProjectId, CreateSourceFileOptions, Diagnostic, DocumentIdentifier, DocumentPosition, EmitOutput, EmitOutputFile, EmitResult, FileNotifications, FormatDiagnosticsHost, FreshableType, GenericType, GetImportEditsForSymbolsOptions, IdentifierTypePredicate, IndexedAccessType, IndexInfo, IndexType, InferredProjectId, InterfaceType, IntersectionType, IntrinsicType, JSDocTagInfo, LiteralType, LSPConnectionOptions, MappedType, ModuleResolutionEntry, ModuleResolutionSpec, NumberLiteralType, ObjectType, PackageId, ParsedCommandLine, ProjectId, ProjectReference, ReadConfigFileResponse, RequestTiming, ResolutionMode, ResolvedModule, ResolvedTypeReferenceDirective, ResolveModuleNameResult, SourceFileMetadata, StaticModuleResolution, StringLiteralType, StringMappingType, StructuredType, SubstitutionType, SyntheticProjectId, TemplateLiteralType, TextEdit, ThisTypePredicate, TimingAccumulators, TimingInfo, TupleType, TupleTypeReference, Type, TypeAcquisition, TypeParameter, TypePredicate, TypePredicateBase, TypeReference, UnionOrIntersectionType, UnionType, };
|
|
31
|
+
export type { APIImportAdderAction as ImportAdderAction, APIOptions, AssertsIdentifierTypePredicate, AssertsThisTypePredicate, BigIntLiteralType, BooleanLiteralType, ClientSocketOptions, ClientSpawnOptions, CompilerOptions, CompletionEntry, CompletionInfo, CompletionOptions, CompletionPreferences, ConditionalType, ConfiguredProjectId, CreateSourceFileOptions, Diagnostic, DocumentIdentifier, DocumentPosition, EmitOutput, EmitOutputFile, EmitResult, FileNotifications, FormatDiagnosticsHost, FreshableType, GenericType, GetImportEditsForSymbolsOptions, IdentifierTypePredicate, IndexedAccessType, IndexInfo, IndexType, InferredProjectId, InterfaceType, IntersectionType, IntrinsicType, JSDocTagInfo, LiteralType, LSPConnectionOptions, MappedType, ModuleResolutionEntry, ModuleResolutionSpec, NumberLiteralType, ObjectType, PackageId, ParsedCommandLine, ProjectId, ProjectReference, ReadConfigFileResponse, RequestTiming, ResolutionMode, ResolvedModule, ResolvedTypeReferenceDirective, ResolveModuleNameResult, SourceFileMetadata, StaticModuleResolution, StringLiteralType, StringMappingType, StructuredType, SubstitutionType, SyntheticProjectId, TemplateLiteralType, TextEdit, ThisTypePredicate, TimingAccumulators, TimingInfo, TupleType, TupleTypeReference, Type, TypeAcquisition, TypeParameter, TypePredicate, TypePredicateBase, TypeReference, UnionOrIntersectionType, UnionType, UserPreferences, };
|
|
32
32
|
export interface ModuleResolverOptions {
|
|
33
33
|
moduleResolutions?: ModuleResolutionSpec | undefined;
|
|
34
34
|
resolveModuleName?: ResolveModuleNameCallback | undefined;
|
|
@@ -71,8 +71,10 @@ export interface TranspileOutput {
|
|
|
71
71
|
export { all, type AllAPIRequestGenerator, type AnyAPIRequestGenerator, type APIRequestGenerator, defer, type DeferredAPIRequestGenerator, type ExecutedGeneratorsResults } from "./generatorSupport.ts";
|
|
72
72
|
import { type AnyAPIRequestGenerator, type ExecutedGeneratorsResults } from "./generatorSupport.ts";
|
|
73
73
|
export declare class API<FromLSP extends boolean = false> implements FormatDiagnosticsHost {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
/** @internal */
|
|
75
|
+
readonly client: Client;
|
|
76
|
+
/** @internal */
|
|
77
|
+
readonly sourceFileCache: SourceFileCache<Symbol>;
|
|
76
78
|
private toPath;
|
|
77
79
|
private currentDirectory;
|
|
78
80
|
private readonly decoder;
|
|
@@ -85,6 +87,14 @@ export declare class API<FromLSP extends boolean = false> implements FormatDiagn
|
|
|
85
87
|
readonly printer: Printer;
|
|
86
88
|
readonly internal: InternalAPI;
|
|
87
89
|
constructor(options?: APIOptions | LSPConnectionOptions);
|
|
90
|
+
/**
|
|
91
|
+
* Looks up a remote declaration's binder symbol. Throws for synthesized or configuration ASTs.
|
|
92
|
+
*/
|
|
93
|
+
get getSymbol(): {
|
|
94
|
+
(declaration: Declaration): Symbol;
|
|
95
|
+
gen(declaration: Declaration): Generator<ProtocolRequest, Symbol, ProtocolResponse["result"]>;
|
|
96
|
+
};
|
|
97
|
+
private get fetchDeclarationSymbol();
|
|
88
98
|
/**
|
|
89
99
|
* Create an API instance from an existing LSP connection's API session.
|
|
90
100
|
* Use this when connecting to an API pipe provided by an LSP server via custom/initializeAPISession.
|
|
@@ -235,15 +245,19 @@ export declare class API<FromLSP extends boolean = false> implements FormatDiagn
|
|
|
235
245
|
type EnsureInitialized = (() => void) & {
|
|
236
246
|
gen(): Generator<ProtocolRequest, void, ProtocolResponse["result"]>;
|
|
237
247
|
};
|
|
248
|
+
/** Looks up a remote declaration's binder symbol through its API. Throws for non-remote declarations. */
|
|
249
|
+
export declare function getSymbol(declaration: Declaration): Symbol;
|
|
250
|
+
export declare namespace getSymbol {
|
|
251
|
+
function gen(declaration: Declaration): Generator<ProtocolRequest, Symbol, ProtocolResponse["result"]>;
|
|
252
|
+
}
|
|
238
253
|
/** An independently retained source file and its disposable remote-lifetime lease. */
|
|
239
254
|
export declare class RetainedSourceFile {
|
|
240
255
|
readonly sourceFile: SourceFile;
|
|
241
256
|
private readonly lease;
|
|
242
|
-
private readonly client;
|
|
243
257
|
private readonly onDispose;
|
|
244
258
|
private disposed;
|
|
245
259
|
private disposePromise;
|
|
246
|
-
constructor(sourceFile: SourceFile, lease: number,
|
|
260
|
+
constructor(sourceFile: SourceFile, lease: number, onDispose: () => void);
|
|
247
261
|
[globalThis.Symbol.dispose](): void;
|
|
248
262
|
get dispose(): {
|
|
249
263
|
(): void;
|
|
@@ -321,7 +335,7 @@ export declare class Snapshot {
|
|
|
321
335
|
readonly operation: SnapshotOperation;
|
|
322
336
|
private projectMap;
|
|
323
337
|
private toPath;
|
|
324
|
-
private
|
|
338
|
+
private readonly api;
|
|
325
339
|
private disposed;
|
|
326
340
|
private disposePromise;
|
|
327
341
|
private onDispose;
|
|
@@ -329,7 +343,8 @@ export declare class Snapshot {
|
|
|
329
343
|
private projectDataMap;
|
|
330
344
|
private updateSnapshot;
|
|
331
345
|
readonly internal: SnapshotInternalAPI;
|
|
332
|
-
|
|
346
|
+
private get client();
|
|
347
|
+
constructor(data: CreateSnapshotResponse, toPath: (fileName: string, basePath?: string) => Path, api: API<boolean>, onDispose: () => void, updateSnapshot: SnapshotUpdater, baseSnapshot?: Snapshot);
|
|
333
348
|
getProjects(): readonly Project[];
|
|
334
349
|
getConfiguredProject(configFileName: string): Project<ConfiguredProjectId> | undefined;
|
|
335
350
|
getProject<Id extends ProjectId>(projectId: Id): Project<Id> | undefined;
|
|
@@ -393,15 +408,15 @@ declare class SnapshotObjectRegistry {
|
|
|
393
408
|
clear(): void;
|
|
394
409
|
}
|
|
395
410
|
declare class ProjectObjectRegistry {
|
|
396
|
-
private client;
|
|
397
411
|
private snapshotId;
|
|
398
412
|
readonly project: Project;
|
|
399
413
|
private snapshotRegistry;
|
|
400
|
-
private sourceFileCache;
|
|
401
414
|
private types;
|
|
402
415
|
private signatures;
|
|
403
416
|
private disposed;
|
|
404
|
-
|
|
417
|
+
private get client();
|
|
418
|
+
private get sourceFileCache();
|
|
419
|
+
constructor(snapshotId: number, project: Project, snapshotRegistry: SnapshotObjectRegistry);
|
|
405
420
|
getOrCreateSymbol(data: ProtocolSymbolResponse): Symbol;
|
|
406
421
|
/** Find an already-interned symbol and retain its file record for this registry. */
|
|
407
422
|
getCachedSymbol(reference: CompactSymbolReference): Symbol | undefined;
|
|
@@ -467,6 +482,8 @@ declare class ProjectObjectRegistry {
|
|
|
467
482
|
};
|
|
468
483
|
}
|
|
469
484
|
export declare class Project<Id extends ProjectId = ProjectId> {
|
|
485
|
+
/** @internal */
|
|
486
|
+
readonly api: API<boolean>;
|
|
470
487
|
readonly id: Id;
|
|
471
488
|
readonly configFileName: string;
|
|
472
489
|
readonly currentDirectory: string;
|
|
@@ -479,9 +496,8 @@ export declare class Project<Id extends ProjectId = ProjectId> {
|
|
|
479
496
|
readonly program: Program<Id>;
|
|
480
497
|
readonly checker: Checker;
|
|
481
498
|
readonly languageService: LanguageService;
|
|
482
|
-
private client;
|
|
483
499
|
private snapshotId;
|
|
484
|
-
constructor(data: ProjectResponse, snapshotId: number,
|
|
500
|
+
constructor(data: ProjectResponse, snapshotId: number, toPath: (fileName: string, basePath?: string) => Path, api: API<boolean>, snapshotRegistry: SnapshotObjectRegistry);
|
|
485
501
|
/** @deprecated Use `languageService.getImportAdderEdits`. */
|
|
486
502
|
get getImportAdderEdits(): {
|
|
487
503
|
(file: DocumentIdentifier, actions: readonly APIImportAdderAction[]): readonly TextEdit[];
|
|
@@ -497,9 +513,9 @@ export declare class Project<Id extends ProjectId = ProjectId> {
|
|
|
497
513
|
export declare class LanguageService {
|
|
498
514
|
private snapshotId;
|
|
499
515
|
private project;
|
|
500
|
-
private client;
|
|
501
516
|
private objectRegistry;
|
|
502
|
-
|
|
517
|
+
private get client();
|
|
518
|
+
constructor(snapshotId: number, project: Project, objectRegistry: ProjectObjectRegistry);
|
|
503
519
|
get getImportAdderEdits(): {
|
|
504
520
|
(file: DocumentIdentifier, actions: readonly APIImportAdderAction[]): readonly TextEdit[];
|
|
505
521
|
gen(file: DocumentIdentifier, actions: readonly APIImportAdderAction[]): Generator<ProtocolRequest, readonly TextEdit[], ProtocolResponse["result"]>;
|
|
@@ -526,15 +542,14 @@ export declare class Program<Id extends ProjectId = ProjectId> implements Format
|
|
|
526
542
|
readonly snapshotId: number;
|
|
527
543
|
readonly id: Id;
|
|
528
544
|
private readonly project;
|
|
529
|
-
private readonly client;
|
|
530
|
-
private readonly sourceFileCache;
|
|
531
545
|
private readonly toPath;
|
|
532
|
-
private readonly formatDiagnosticsHost;
|
|
533
546
|
private readonly decoder;
|
|
534
547
|
private readonly sourceFileMetadataCache;
|
|
535
548
|
private ownedSnapshot;
|
|
536
549
|
private disposePromise;
|
|
537
|
-
|
|
550
|
+
private get client();
|
|
551
|
+
private get sourceFileCache();
|
|
552
|
+
constructor(snapshotId: number, project: Project<Id>, toPath: (fileName: string, basePath?: string) => Path);
|
|
538
553
|
getCurrentDirectory(): string;
|
|
539
554
|
getCanonicalFileName(fileName: string): string;
|
|
540
555
|
getNewLine(): string;
|
|
@@ -779,11 +794,11 @@ export declare class BuildOrchestrator {
|
|
|
779
794
|
export declare class Checker {
|
|
780
795
|
private snapshotId;
|
|
781
796
|
private project;
|
|
782
|
-
private client;
|
|
783
797
|
private objectRegistry;
|
|
784
798
|
private wellKnownSymbols;
|
|
785
799
|
private wellKnownSignatures;
|
|
786
|
-
|
|
800
|
+
private get client();
|
|
801
|
+
constructor(snapshotId: number, project: Project, objectRegistry: ProjectObjectRegistry);
|
|
787
802
|
dispose(): void;
|
|
788
803
|
get getSymbolAtLocation(): {
|
|
789
804
|
(node: Node): Symbol | undefined;
|
|
@@ -1316,11 +1331,10 @@ export interface SignatureUsage {
|
|
|
1316
1331
|
/** The node handle for the call expression, if the reference is invoked. */
|
|
1317
1332
|
call?: NodeHandle | undefined;
|
|
1318
1333
|
}
|
|
1319
|
-
/** A cached source-file record and
|
|
1334
|
+
/** A cached source-file record and its owning API. */
|
|
1320
1335
|
interface SourceFileOwner {
|
|
1321
1336
|
readonly record: CachedSourceFile<Symbol>;
|
|
1322
|
-
readonly
|
|
1323
|
-
readonly client: Client;
|
|
1337
|
+
readonly api: API<boolean>;
|
|
1324
1338
|
}
|
|
1325
1339
|
type SymbolStorage = {
|
|
1326
1340
|
readonly kind: typeof SymbolOwnerKind.File;
|