UNPKG

1.16 kBTypeScriptView Raw
1import ts_module from "typescript/lib/tsserverlibrary";
2/**
3 * The host for a `LanguageService`. This provides all the `LanguageService` requires to respond
4 * to the `LanguageService` requests.
5 *
6 * This interface describes the requirements of the `LanguageService` on its host.
7 *
8 * The host interface is host language agnostic.
9 */
10export interface LanguageServiceHost {
11 /**
12 * TODO: add comment
13 */
14 getCompilationSettings(fileName: string): ts_module.CompilerOptions;
15 /**
16 * TODO: add comment
17 */
18 resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ts_module.ResolvedProjectReference | undefined, options: ts_module.CompilerOptions): (ts_module.ResolvedModule | undefined)[];
19 /**
20 * TODO: add comment
21 */
22 getScriptFileNames(): string[];
23 /**
24 * TODO: add comment
25 */
26 resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference: ts_module.ResolvedProjectReference | undefined, options: ts_module.CompilerOptions): (ts_module.ResolvedTypeReferenceDirective | undefined)[];
27}