@volar/language-server 1.0.16 → 1.0.18
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/out/{utils/webFileSystemHost.d.ts → browser/fileSystems.d.ts} +0 -0
- package/out/{utils/webFileSystemHost.js → browser/fileSystems.js} +4 -4
- package/out/{browser.d.ts → browser/index.d.ts} +2 -2
- package/out/{browser.js → browser/index.js} +32 -28
- package/out/{utils/ts → browser/typescript}/core.d.ts +0 -0
- package/out/{utils/ts → browser/typescript}/core.js +0 -0
- package/out/{utils/ts → browser/typescript}/corePublic.d.ts +0 -0
- package/out/{utils/ts → browser/typescript}/corePublic.js +0 -0
- package/out/{utils/ts → browser/typescript}/path.d.ts +0 -0
- package/out/{utils/ts → browser/typescript}/path.js +0 -0
- package/out/{utils/ts → browser/typescript}/types.d.ts +0 -0
- package/out/{utils/ts → browser/typescript}/types.js +0 -0
- package/out/{utils/ts → browser/typescript}/utilities.d.ts +0 -0
- package/out/{utils/ts → browser/typescript}/utilities.js +0 -0
- package/out/{utils → common}/cancellationPipe.d.ts +0 -0
- package/out/{utils → common}/cancellationPipe.js +0 -0
- package/out/{utils → common}/configurationHost.d.ts +1 -1
- package/out/{utils → common}/configurationHost.js +7 -5
- package/out/{utils/snapshots.d.ts → common/documents.d.ts} +1 -1
- package/out/{utils/snapshots.js → common/documents.js} +5 -5
- package/out/{features → common/features}/customFeatures.d.ts +1 -1
- package/out/{features → common/features}/customFeatures.js +20 -42
- package/out/common/features/documentFeatures.d.ts +4 -0
- package/out/{features → common/features}/documentFeatures.js +1 -1
- package/out/common/features/languageFeatures.d.ts +4 -0
- package/out/{features → common/features}/languageFeatures.js +4 -5
- package/out/{utils → common}/project.d.ts +14 -9
- package/out/{utils → common}/project.js +24 -16
- package/out/{schemaRequestHandlers → common/schemaRequestHandlers}/file.d.ts +0 -0
- package/out/{schemaRequestHandlers → common/schemaRequestHandlers}/file.js +0 -0
- package/out/{schemaRequestHandlers → common/schemaRequestHandlers}/http.d.ts +0 -0
- package/out/{schemaRequestHandlers → common/schemaRequestHandlers}/http.js +0 -0
- package/out/common/server.d.ts +8 -0
- package/out/{server.js → common/server.js} +94 -34
- package/out/{utils/documentServiceHost.d.ts → common/syntaxServicesHost.d.ts} +2 -2
- package/out/{utils/documentServiceHost.js → common/syntaxServicesHost.js} +10 -10
- package/out/{utils → common/utils}/inferredCompilerOptions.d.ts +0 -0
- package/out/{utils → common/utils}/inferredCompilerOptions.js +0 -0
- package/out/{registerFeatures.d.ts → common/utils/registerFeatures.d.ts} +2 -3
- package/out/{registerFeatures.js → common/utils/registerFeatures.js} +5 -48
- package/out/{utils/config.d.ts → common/utils/serverConfig.d.ts} +0 -0
- package/out/{utils/config.js → common/utils/serverConfig.js} +1 -1
- package/out/{utils → common/utils}/uriMap.d.ts +0 -0
- package/out/{utils → common/utils}/uriMap.js +0 -0
- package/out/common/workspace.d.ts +1186 -0
- package/out/{utils/workspaceProjects.js → common/workspace.js} +29 -13
- package/out/common/workspaces.d.ts +1465 -0
- package/out/{utils → common}/workspaces.js +15 -10
- package/out/{utils/nodeFileSystemHost.d.ts → node/fileSystem.d.ts} +0 -0
- package/out/{utils/nodeFileSystemHost.js → node/fileSystem.js} +17 -19
- package/out/{node.d.ts → node/index.d.ts} +2 -2
- package/out/node/index.js +107 -0
- package/out/protocol.d.ts +4 -6
- package/out/protocol.js +1 -5
- package/out/types.d.ts +5 -3
- package/package.json +5 -5
- package/out/features/documentFeatures.d.ts +0 -4
- package/out/features/languageFeatures.d.ts +0 -4
- package/out/node.js +0 -103
- package/out/server.d.ts +0 -3
- package/out/utils/iterableWeakSet.d.ts +0 -7
- package/out/utils/iterableWeakSet.js +0 -40
- package/out/utils/workspaceProjects.d.ts +0 -162
- package/out/utils/workspaces.d.ts +0 -429
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
2
|
-
import * as path from 'typesafe-path';
|
|
3
|
-
import * as vscode from 'vscode-languageserver';
|
|
4
|
-
import { Project } from './project';
|
|
5
|
-
import { LanguageServerPlugin, RuntimeEnvironment, FileSystemHost, LanguageServerInitializationOptions } from '../types';
|
|
6
|
-
import { createSnapshots } from './snapshots';
|
|
7
|
-
import { URI } from 'vscode-uri';
|
|
8
|
-
import { ConfigurationHost } from '@volar/language-service';
|
|
9
|
-
import { CancellationTokenHost } from './cancellationPipe';
|
|
10
|
-
export declare const rootTsConfigNames: string[];
|
|
11
|
-
export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], fsHost: FileSystemHost, rootUri: URI, ts: typeof import('typescript/lib/tsserverlibrary'), tsLocalized: ts.MapLike<string> | undefined, documents: ReturnType<typeof createSnapshots>, configHost: ConfigurationHost | undefined, cancelTokenHost: CancellationTokenHost, serverOptions: LanguageServerInitializationOptions): Promise<{
|
|
12
|
-
projects: {
|
|
13
|
-
clear: () => void;
|
|
14
|
-
values: () => IterableIterator<Project>;
|
|
15
|
-
uriDelete: (_uri: string) => boolean;
|
|
16
|
-
uriGet: (_uri: string) => Project | undefined;
|
|
17
|
-
uriHas: (_uri: string) => boolean;
|
|
18
|
-
uriSet: (_uri: string, item: Project) => void;
|
|
19
|
-
pathDelete: (path: string) => boolean;
|
|
20
|
-
pathGet: (path: string) => Project | undefined;
|
|
21
|
-
pathHas: (path: string) => Project | undefined;
|
|
22
|
-
pathSet: (path: string, item: Project) => void;
|
|
23
|
-
};
|
|
24
|
-
documentRegistry: ts.DocumentRegistry;
|
|
25
|
-
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
26
|
-
tsconfig: string;
|
|
27
|
-
project: {
|
|
28
|
-
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
29
|
-
scripts: {
|
|
30
|
-
clear: () => void;
|
|
31
|
-
values: () => IterableIterator<{
|
|
32
|
-
version: number;
|
|
33
|
-
fileName: string;
|
|
34
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
35
|
-
snapshotVersion: number | undefined;
|
|
36
|
-
}>;
|
|
37
|
-
uriDelete: (_uri: string) => boolean;
|
|
38
|
-
uriGet: (_uri: string) => {
|
|
39
|
-
version: number;
|
|
40
|
-
fileName: string;
|
|
41
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
42
|
-
snapshotVersion: number | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
uriHas: (_uri: string) => boolean;
|
|
45
|
-
uriSet: (_uri: string, item: {
|
|
46
|
-
version: number;
|
|
47
|
-
fileName: string;
|
|
48
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
49
|
-
snapshotVersion: number | undefined;
|
|
50
|
-
}) => void;
|
|
51
|
-
pathDelete: (path: string) => boolean;
|
|
52
|
-
pathGet: (path: string) => {
|
|
53
|
-
version: number;
|
|
54
|
-
fileName: string;
|
|
55
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
56
|
-
snapshotVersion: number | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
pathHas: (path: string) => {
|
|
59
|
-
version: number;
|
|
60
|
-
fileName: string;
|
|
61
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
62
|
-
snapshotVersion: number | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
pathSet: (path: string, item: {
|
|
65
|
-
version: number;
|
|
66
|
-
fileName: string;
|
|
67
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
68
|
-
snapshotVersion: number | undefined;
|
|
69
|
-
}) => void;
|
|
70
|
-
};
|
|
71
|
-
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
72
|
-
getLanguageService: () => {
|
|
73
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
74
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
75
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
76
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
77
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
78
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
79
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
80
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
81
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
82
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
83
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
84
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
85
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
86
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
87
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
88
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
89
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
90
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
91
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
92
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
93
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
94
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
95
|
-
lastChange: {
|
|
96
|
-
range: vscode.Range;
|
|
97
|
-
rangeOffset: number;
|
|
98
|
-
rangeLength: number;
|
|
99
|
-
text: string;
|
|
100
|
-
};
|
|
101
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
102
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
103
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
104
|
-
callHierarchy: {
|
|
105
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
106
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
107
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
108
|
-
};
|
|
109
|
-
dispose: () => void;
|
|
110
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
111
|
-
};
|
|
112
|
-
getLanguageServiceDontCreate: () => {
|
|
113
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
114
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
115
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
116
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
117
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
118
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
119
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
120
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
121
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
122
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
123
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
124
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
125
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
126
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
127
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
128
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
129
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
130
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
131
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
132
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
133
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
134
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
135
|
-
lastChange: {
|
|
136
|
-
range: vscode.Range;
|
|
137
|
-
rangeOffset: number;
|
|
138
|
-
rangeLength: number;
|
|
139
|
-
text: string;
|
|
140
|
-
};
|
|
141
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
142
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
143
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
144
|
-
callHierarchy: {
|
|
145
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
146
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
147
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
148
|
-
};
|
|
149
|
-
dispose: () => void;
|
|
150
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
151
|
-
} | undefined;
|
|
152
|
-
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
153
|
-
tryAddFile: (fileName: string) => void;
|
|
154
|
-
dispose: () => void;
|
|
155
|
-
};
|
|
156
|
-
} | undefined>;
|
|
157
|
-
getInferredProject: () => Project;
|
|
158
|
-
getInferredProjectDontCreate: () => Project | undefined;
|
|
159
|
-
reload: () => void;
|
|
160
|
-
dispose(): void;
|
|
161
|
-
}>;
|
|
162
|
-
export declare function sortTsConfigs(file: path.PosixPath, a: path.PosixPath, b: path.PosixPath): number;
|
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
/// <reference types="typesafe-path" />
|
|
2
|
-
import { ConfigurationHost } from '@volar/language-service';
|
|
3
|
-
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
|
-
import * as vscode from 'vscode-languageserver';
|
|
5
|
-
import { URI } from 'vscode-uri';
|
|
6
|
-
import { FileSystemHost, LanguageServerPlugin, RuntimeEnvironment, LanguageServerInitializationOptions } from '../types';
|
|
7
|
-
import { createSnapshots } from './snapshots';
|
|
8
|
-
import { CancellationTokenHost } from './cancellationPipe';
|
|
9
|
-
export interface Workspaces extends ReturnType<typeof createWorkspaces> {
|
|
10
|
-
}
|
|
11
|
-
export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], fsHost: FileSystemHost, configurationHost: ConfigurationHost | undefined, ts: typeof import('typescript/lib/tsserverlibrary'), tsLocalized: ts.MapLike<string> | undefined, client: vscode.ClientCapabilities, options: LanguageServerInitializationOptions, documents: ReturnType<typeof createSnapshots>, connection: vscode.Connection, cancelTokenHost: CancellationTokenHost): {
|
|
12
|
-
workspaces: Map<string, Promise<{
|
|
13
|
-
projects: {
|
|
14
|
-
clear: () => void;
|
|
15
|
-
values: () => IterableIterator<import("./project").Project>;
|
|
16
|
-
uriDelete: (_uri: string) => boolean;
|
|
17
|
-
uriGet: (_uri: string) => import("./project").Project | undefined;
|
|
18
|
-
uriHas: (_uri: string) => boolean;
|
|
19
|
-
uriSet: (_uri: string, item: import("./project").Project) => void;
|
|
20
|
-
pathDelete: (path: string) => boolean;
|
|
21
|
-
pathGet: (path: string) => import("./project").Project | undefined;
|
|
22
|
-
pathHas: (path: string) => import("./project").Project | undefined;
|
|
23
|
-
pathSet: (path: string, item: import("./project").Project) => void;
|
|
24
|
-
};
|
|
25
|
-
documentRegistry: ts.DocumentRegistry;
|
|
26
|
-
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
27
|
-
tsconfig: string;
|
|
28
|
-
project: {
|
|
29
|
-
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
30
|
-
scripts: {
|
|
31
|
-
clear: () => void;
|
|
32
|
-
values: () => IterableIterator<{
|
|
33
|
-
version: number;
|
|
34
|
-
fileName: string;
|
|
35
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
36
|
-
snapshotVersion: number | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
uriDelete: (_uri: string) => boolean;
|
|
39
|
-
uriGet: (_uri: string) => {
|
|
40
|
-
version: number;
|
|
41
|
-
fileName: string;
|
|
42
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
43
|
-
snapshotVersion: number | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
uriHas: (_uri: string) => boolean;
|
|
46
|
-
uriSet: (_uri: string, item: {
|
|
47
|
-
version: number;
|
|
48
|
-
fileName: string;
|
|
49
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
50
|
-
snapshotVersion: number | undefined;
|
|
51
|
-
}) => void;
|
|
52
|
-
pathDelete: (path: string) => boolean;
|
|
53
|
-
pathGet: (path: string) => {
|
|
54
|
-
version: number;
|
|
55
|
-
fileName: string;
|
|
56
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
57
|
-
snapshotVersion: number | undefined;
|
|
58
|
-
} | undefined;
|
|
59
|
-
pathHas: (path: string) => {
|
|
60
|
-
version: number;
|
|
61
|
-
fileName: string;
|
|
62
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
63
|
-
snapshotVersion: number | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
pathSet: (path: string, item: {
|
|
66
|
-
version: number;
|
|
67
|
-
fileName: string;
|
|
68
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
69
|
-
snapshotVersion: number | undefined;
|
|
70
|
-
}) => void;
|
|
71
|
-
};
|
|
72
|
-
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
73
|
-
getLanguageService: () => {
|
|
74
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
75
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
76
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
77
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
78
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
79
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
80
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
81
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
82
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
83
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
84
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
85
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
86
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
87
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
88
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
89
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
90
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
91
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
92
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
93
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
94
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
95
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
96
|
-
lastChange: {
|
|
97
|
-
range: vscode.Range;
|
|
98
|
-
rangeOffset: number;
|
|
99
|
-
rangeLength: number;
|
|
100
|
-
text: string;
|
|
101
|
-
};
|
|
102
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
103
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
104
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
105
|
-
callHierarchy: {
|
|
106
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
107
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
108
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
109
|
-
};
|
|
110
|
-
dispose: () => void;
|
|
111
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
112
|
-
};
|
|
113
|
-
getLanguageServiceDontCreate: () => {
|
|
114
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
115
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
116
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
117
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
118
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
119
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
120
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
121
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
122
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
123
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
124
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
125
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
126
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
127
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
128
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
129
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
130
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
131
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
132
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
133
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
134
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
135
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
136
|
-
lastChange: {
|
|
137
|
-
range: vscode.Range;
|
|
138
|
-
rangeOffset: number;
|
|
139
|
-
rangeLength: number;
|
|
140
|
-
text: string;
|
|
141
|
-
};
|
|
142
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
143
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
144
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
145
|
-
callHierarchy: {
|
|
146
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
147
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
148
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
149
|
-
};
|
|
150
|
-
dispose: () => void;
|
|
151
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
152
|
-
} | undefined;
|
|
153
|
-
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
154
|
-
tryAddFile: (fileName: string) => void;
|
|
155
|
-
dispose: () => void;
|
|
156
|
-
};
|
|
157
|
-
} | undefined>;
|
|
158
|
-
getInferredProject: () => import("./project").Project;
|
|
159
|
-
getInferredProjectDontCreate: () => import("./project").Project | undefined;
|
|
160
|
-
reload: () => void;
|
|
161
|
-
dispose(): void;
|
|
162
|
-
}>>;
|
|
163
|
-
getProject: (uri: string) => Promise<{
|
|
164
|
-
tsconfig: string;
|
|
165
|
-
project: {
|
|
166
|
-
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
167
|
-
scripts: {
|
|
168
|
-
clear: () => void;
|
|
169
|
-
values: () => IterableIterator<{
|
|
170
|
-
version: number;
|
|
171
|
-
fileName: string;
|
|
172
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
173
|
-
snapshotVersion: number | undefined;
|
|
174
|
-
}>;
|
|
175
|
-
uriDelete: (_uri: string) => boolean;
|
|
176
|
-
uriGet: (_uri: string) => {
|
|
177
|
-
version: number;
|
|
178
|
-
fileName: string;
|
|
179
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
180
|
-
snapshotVersion: number | undefined;
|
|
181
|
-
} | undefined;
|
|
182
|
-
uriHas: (_uri: string) => boolean;
|
|
183
|
-
uriSet: (_uri: string, item: {
|
|
184
|
-
version: number;
|
|
185
|
-
fileName: string;
|
|
186
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
187
|
-
snapshotVersion: number | undefined;
|
|
188
|
-
}) => void;
|
|
189
|
-
pathDelete: (path: string) => boolean;
|
|
190
|
-
pathGet: (path: string) => {
|
|
191
|
-
version: number;
|
|
192
|
-
fileName: string;
|
|
193
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
194
|
-
snapshotVersion: number | undefined;
|
|
195
|
-
} | undefined;
|
|
196
|
-
pathHas: (path: string) => {
|
|
197
|
-
version: number;
|
|
198
|
-
fileName: string;
|
|
199
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
200
|
-
snapshotVersion: number | undefined;
|
|
201
|
-
} | undefined;
|
|
202
|
-
pathSet: (path: string, item: {
|
|
203
|
-
version: number;
|
|
204
|
-
fileName: string;
|
|
205
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
206
|
-
snapshotVersion: number | undefined;
|
|
207
|
-
}) => void;
|
|
208
|
-
};
|
|
209
|
-
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
210
|
-
getLanguageService: () => {
|
|
211
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
212
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
213
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
214
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
215
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
216
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
217
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
218
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
219
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
220
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
221
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
222
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
223
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
224
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
225
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
226
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
227
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
228
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
229
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
230
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
231
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
232
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
233
|
-
lastChange: {
|
|
234
|
-
range: vscode.Range;
|
|
235
|
-
rangeOffset: number;
|
|
236
|
-
rangeLength: number;
|
|
237
|
-
text: string;
|
|
238
|
-
};
|
|
239
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
240
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
241
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
242
|
-
callHierarchy: {
|
|
243
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
244
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
245
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
246
|
-
};
|
|
247
|
-
dispose: () => void;
|
|
248
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
249
|
-
};
|
|
250
|
-
getLanguageServiceDontCreate: () => {
|
|
251
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
252
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
253
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
254
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
255
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
256
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
257
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
258
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
259
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
260
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
261
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
262
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
263
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
264
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
265
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
266
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
267
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
268
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
269
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
270
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
271
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
272
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
273
|
-
lastChange: {
|
|
274
|
-
range: vscode.Range;
|
|
275
|
-
rangeOffset: number;
|
|
276
|
-
rangeLength: number;
|
|
277
|
-
text: string;
|
|
278
|
-
};
|
|
279
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
280
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
281
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
282
|
-
callHierarchy: {
|
|
283
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
284
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
285
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
286
|
-
};
|
|
287
|
-
dispose: () => void;
|
|
288
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
289
|
-
} | undefined;
|
|
290
|
-
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
291
|
-
tryAddFile: (fileName: string) => void;
|
|
292
|
-
dispose: () => void;
|
|
293
|
-
};
|
|
294
|
-
} | {
|
|
295
|
-
tsconfig: undefined;
|
|
296
|
-
project: {
|
|
297
|
-
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
298
|
-
scripts: {
|
|
299
|
-
clear: () => void;
|
|
300
|
-
values: () => IterableIterator<{
|
|
301
|
-
version: number;
|
|
302
|
-
fileName: string;
|
|
303
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
304
|
-
snapshotVersion: number | undefined;
|
|
305
|
-
}>;
|
|
306
|
-
uriDelete: (_uri: string) => boolean;
|
|
307
|
-
uriGet: (_uri: string) => {
|
|
308
|
-
version: number;
|
|
309
|
-
fileName: string;
|
|
310
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
311
|
-
snapshotVersion: number | undefined;
|
|
312
|
-
} | undefined;
|
|
313
|
-
uriHas: (_uri: string) => boolean;
|
|
314
|
-
uriSet: (_uri: string, item: {
|
|
315
|
-
version: number;
|
|
316
|
-
fileName: string;
|
|
317
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
318
|
-
snapshotVersion: number | undefined;
|
|
319
|
-
}) => void;
|
|
320
|
-
pathDelete: (path: string) => boolean;
|
|
321
|
-
pathGet: (path: string) => {
|
|
322
|
-
version: number;
|
|
323
|
-
fileName: string;
|
|
324
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
325
|
-
snapshotVersion: number | undefined;
|
|
326
|
-
} | undefined;
|
|
327
|
-
pathHas: (path: string) => {
|
|
328
|
-
version: number;
|
|
329
|
-
fileName: string;
|
|
330
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
331
|
-
snapshotVersion: number | undefined;
|
|
332
|
-
} | undefined;
|
|
333
|
-
pathSet: (path: string, item: {
|
|
334
|
-
version: number;
|
|
335
|
-
fileName: string;
|
|
336
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
337
|
-
snapshotVersion: number | undefined;
|
|
338
|
-
}) => void;
|
|
339
|
-
};
|
|
340
|
-
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
341
|
-
getLanguageService: () => {
|
|
342
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
343
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
344
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
345
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
346
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
347
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
348
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
349
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
350
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
351
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
352
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
353
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
354
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
355
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
356
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
357
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
358
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
359
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
360
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
361
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
362
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
363
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
364
|
-
lastChange: {
|
|
365
|
-
range: vscode.Range;
|
|
366
|
-
rangeOffset: number;
|
|
367
|
-
rangeLength: number;
|
|
368
|
-
text: string;
|
|
369
|
-
};
|
|
370
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
371
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
372
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
373
|
-
callHierarchy: {
|
|
374
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
375
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
376
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
377
|
-
};
|
|
378
|
-
dispose: () => void;
|
|
379
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
380
|
-
};
|
|
381
|
-
getLanguageServiceDontCreate: () => {
|
|
382
|
-
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
383
|
-
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
384
|
-
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
385
|
-
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
386
|
-
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
387
|
-
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
388
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
389
|
-
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
390
|
-
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
391
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
392
|
-
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
393
|
-
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<vscode.CompletionList>;
|
|
394
|
-
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
395
|
-
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
396
|
-
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
397
|
-
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
398
|
-
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
399
|
-
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
400
|
-
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
401
|
-
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
402
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
403
|
-
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
404
|
-
lastChange: {
|
|
405
|
-
range: vscode.Range;
|
|
406
|
-
rangeOffset: number;
|
|
407
|
-
rangeLength: number;
|
|
408
|
-
text: string;
|
|
409
|
-
};
|
|
410
|
-
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
411
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
412
|
-
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
413
|
-
callHierarchy: {
|
|
414
|
-
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
415
|
-
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
416
|
-
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
417
|
-
};
|
|
418
|
-
dispose: () => void;
|
|
419
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
420
|
-
} | undefined;
|
|
421
|
-
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
422
|
-
tryAddFile: (fileName: string) => void;
|
|
423
|
-
dispose: () => void;
|
|
424
|
-
} | undefined;
|
|
425
|
-
} | undefined>;
|
|
426
|
-
reloadProject: () => Promise<void>;
|
|
427
|
-
add: (rootUri: URI) => void;
|
|
428
|
-
remove: (rootUri: URI) => void;
|
|
429
|
-
};
|