UNPKG

1.46 kBTypeScriptView Raw
1import { CancellationToken, Position, Location, Range, CompletionItem, Hover, Definition, CodeLens, ReferenceContext, DocumentSymbol, SymbolInformation, CodeAction } from "vscode-languageserver";
2import { GraphQLWorkspace } from "./workspace";
3import { DocumentUri } from "./project/base";
4export declare class GraphQLLanguageProvider {
5 workspace: GraphQLWorkspace;
6 constructor(workspace: GraphQLWorkspace);
7 provideStats(uri?: DocumentUri): Promise<import("./project/base").ProjectStats | {
8 loaded: boolean;
9 }>;
10 provideCompletionItems(uri: DocumentUri, position: Position, _token: CancellationToken): Promise<CompletionItem[]>;
11 provideHover(uri: DocumentUri, position: Position, _token: CancellationToken): Promise<Hover | null>;
12 provideDefinition(uri: DocumentUri, position: Position, _token: CancellationToken): Promise<Definition | null>;
13 provideReferences(uri: DocumentUri, position: Position, _context: ReferenceContext, _token: CancellationToken): Promise<Location[] | null>;
14 provideDocumentSymbol(uri: DocumentUri, _token: CancellationToken): Promise<DocumentSymbol[]>;
15 provideWorkspaceSymbol(query: string, _token: CancellationToken): Promise<SymbolInformation[]>;
16 provideCodeLenses(uri: DocumentUri, _token: CancellationToken): Promise<CodeLens[]>;
17 provideCodeAction(uri: DocumentUri, range: Range, _token: CancellationToken): Promise<CodeAction[]>;
18}
19//# sourceMappingURL=languageProvider.d.ts.map
\No newline at end of file