@volar/language-server 1.0.0-beta.4 → 1.0.0-beta.5

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.
@@ -1,2 +1,2 @@
1
- import * as vue from '@volar/vue-language-service';
2
- export declare function loadCustomPlugins(dir: string): vue.EmbeddedLanguageServicePlugin[];
1
+ import { LanguageServicePlugin } from '@volar/language-service';
2
+ export declare function loadCustomPlugins(dir: string): LanguageServicePlugin[];
@@ -1,5 +1,5 @@
1
1
  import * as vscode from 'vscode-languageserver';
2
- import { ConfigurationHost } from '@volar/vue-language-service';
2
+ import { ConfigurationHost } from '@volar/language-service';
3
3
  export declare function createConfigurationHost(params: vscode.InitializeParams, connection: vscode.Connection): ConfigurationHost & {
4
4
  ready(): void;
5
5
  };
@@ -1,9 +1,8 @@
1
1
  import { LanguageServerPlugin, RuntimeEnvironment } from '../types';
2
2
  import * as embedded from '@volar/language-service';
3
- import { ConfigurationHost } from '@volar/vue-language-service';
4
3
  import { URI } from 'vscode-uri';
5
4
  import type * as _ from 'vscode-languageserver-textdocument';
6
- export declare function createDocumentServiceHost(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], ts: typeof import('typescript/lib/tsserverlibrary'), configHost: ConfigurationHost | undefined): {
5
+ export declare function createDocumentServiceHost(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], ts: typeof import('typescript/lib/tsserverlibrary'), configHost: embedded.ConfigurationHost | undefined): {
7
6
  add: (rootUri: URI) => void;
8
7
  remove: (rootUri: URI) => void;
9
8
  get: (documentUri: string) => {
@@ -1,3 +1,3 @@
1
- import { ConfigurationHost } from '@volar/vue-language-service';
1
+ import { ConfigurationHost } from '@volar/language-service';
2
2
  import type * as ts from 'typescript/lib/tsserverlibrary';
3
3
  export declare function getInferredCompilerOptions(ts: typeof import('typescript/lib/tsserverlibrary'), configurationHost: ConfigurationHost | undefined): Promise<ts.CompilerOptions>;
@@ -4,7 +4,7 @@ import * as vscode from 'vscode-languageserver';
4
4
  import { URI } from 'vscode-uri';
5
5
  import { FileSystemHost, LanguageServerPlugin, RuntimeEnvironment } from '../types';
6
6
  import { createSnapshots } from './snapshots';
7
- import { ConfigurationHost } from '@volar/vue-language-service';
7
+ import { ConfigurationHost } from '@volar/language-service';
8
8
  import * as path from 'typesafe-path';
9
9
  import { CancellactionTokenHost } from './cancellationPipe';
10
10
  export interface Project extends ReturnType<typeof createProject> {
@@ -17,7 +17,7 @@ export declare function createProject(runtimeEnv: RuntimeEnvironment, plugins: R
17
17
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
18
18
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
19
19
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
20
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
20
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
21
21
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
22
22
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
23
23
  getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: embeddedLS.SemanticToken[]) => void) | undefined) => Promise<embeddedLS.SemanticToken[] | undefined> | undefined;
@@ -60,7 +60,7 @@ export declare function createProject(runtimeEnv: RuntimeEnvironment, plugins: R
60
60
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
61
61
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
62
62
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
63
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
63
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
64
64
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
65
65
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
66
66
  getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: embeddedLS.SemanticToken[]) => void) | undefined) => Promise<embeddedLS.SemanticToken[] | undefined> | undefined;
@@ -21,7 +21,7 @@ function createProject(runtimeEnv, plugins, fsHost, ts, rootUri, tsConfig, tsLoc
21
21
  const sys = fsHost.getWorkspaceFileSystem(rootUri);
22
22
  let typeRootVersion = 0;
23
23
  let projectVersion = 0;
24
- let projectVersionUpdateTime = 0;
24
+ let projectVersionUpdateTime = cancelTokenHost.getMtime();
25
25
  let vueLs;
26
26
  let parsedCommandLine = createParsedCommandLine(ts, sys, shared.getPathOfUri(rootUri.toString()), tsConfig, plugins);
27
27
  const scripts = shared.createUriMap();
@@ -6,7 +6,7 @@ import { Project } from './project';
6
6
  import { LanguageServerPlugin, RuntimeEnvironment, FileSystemHost } from '../types';
7
7
  import { createSnapshots } from './snapshots';
8
8
  import { URI } from 'vscode-uri';
9
- import { ConfigurationHost } from '@volar/vue-language-service';
9
+ import { ConfigurationHost } from '@volar/language-service';
10
10
  import { CancellactionTokenHost } from './cancellationPipe';
11
11
  export declare const rootTsConfigNames: string[];
12
12
  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: CancellactionTokenHost): Promise<{
@@ -32,10 +32,10 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
32
32
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
33
33
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
34
34
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
35
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
35
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
36
36
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
37
37
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
38
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
38
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
39
39
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
40
40
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
41
41
  isIncomplete: boolean;
@@ -58,7 +58,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
58
58
  text: string;
59
59
  };
60
60
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
61
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
61
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
62
62
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
63
63
  callHierarchy: {
64
64
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
@@ -75,10 +75,10 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
75
75
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
76
76
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
77
77
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
78
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
78
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
79
79
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
80
80
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
81
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
81
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
82
82
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
83
83
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
84
84
  isIncomplete: boolean;
@@ -101,7 +101,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
101
101
  text: string;
102
102
  };
103
103
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
104
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
104
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
105
105
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
106
106
  callHierarchy: {
107
107
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
@@ -216,7 +216,7 @@ function sortTsConfigs(fsPath, a, b) {
216
216
  return bWeight - aWeight;
217
217
  }
218
218
  const aLength = shared.normalizeFileName(a).split('/').length;
219
- const bLength = shared.normalizeFileName(a).split('/').length;
219
+ const bLength = shared.normalizeFileName(b).split('/').length;
220
220
  if (aLength === bLength) {
221
221
  const aWeight = path.basename(a) === 'tsconfig.json' ? 1 : 0;
222
222
  const bWeight = path.basename(b) === 'tsconfig.json' ? 1 : 0;
@@ -1,5 +1,5 @@
1
1
  import * as shared from '@volar/shared';
2
- import { ConfigurationHost } from '@volar/vue-language-service';
2
+ import { ConfigurationHost } from '@volar/language-service';
3
3
  import type * as ts from 'typescript/lib/tsserverlibrary';
4
4
  import * as vscode from 'vscode-languageserver';
5
5
  import { URI } from 'vscode-uri';
@@ -32,10 +32,10 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
32
32
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
33
33
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
34
34
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
35
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
35
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
36
36
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
37
37
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
38
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
38
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
39
39
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
40
40
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
41
41
  isIncomplete: boolean;
@@ -58,7 +58,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
58
58
  text: string;
59
59
  };
60
60
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
61
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
61
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
62
62
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
63
63
  callHierarchy: {
64
64
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
@@ -75,10 +75,10 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
75
75
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
76
76
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
77
77
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
78
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
78
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
79
79
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
80
80
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
81
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
81
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
82
82
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
83
83
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
84
84
  isIncomplete: boolean;
@@ -101,7 +101,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
101
101
  text: string;
102
102
  };
103
103
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
104
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
104
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
105
105
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
106
106
  callHierarchy: {
107
107
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
@@ -129,10 +129,10 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
129
129
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
130
130
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
131
131
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
132
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
132
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
133
133
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
134
134
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
135
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
135
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
136
136
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
137
137
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
138
138
  isIncomplete: boolean;
@@ -155,7 +155,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
155
155
  text: string;
156
156
  };
157
157
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
158
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
158
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
159
159
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
160
160
  callHierarchy: {
161
161
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
@@ -172,10 +172,10 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
172
172
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
173
173
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
174
174
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
175
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
175
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
176
176
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
177
177
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
178
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
178
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
179
179
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
180
180
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
181
181
  isIncomplete: boolean;
@@ -198,7 +198,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
198
198
  text: string;
199
199
  };
200
200
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
201
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
201
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
202
202
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
203
203
  callHierarchy: {
204
204
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
@@ -221,10 +221,10 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
221
221
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
222
222
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
223
223
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
224
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
224
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
225
225
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
226
226
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
227
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
227
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
228
228
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
229
229
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
230
230
  isIncomplete: boolean;
@@ -247,7 +247,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
247
247
  text: string;
248
248
  };
249
249
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
250
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
250
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
251
251
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
252
252
  callHierarchy: {
253
253
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
@@ -264,10 +264,10 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
264
264
  findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
265
265
  findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
266
266
  findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
267
- prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
267
+ prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
268
268
  doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
269
269
  getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
270
- getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
270
+ getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
271
271
  doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
272
272
  doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
273
273
  isIncomplete: boolean;
@@ -290,7 +290,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
290
290
  text: string;
291
291
  };
292
292
  }) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
293
- doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
293
+ doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
294
294
  getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
295
295
  callHierarchy: {
296
296
  doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-server",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -17,9 +17,9 @@
17
17
  "directory": "packages/language-server"
18
18
  },
19
19
  "dependencies": {
20
- "@volar/language-core": "1.0.0-beta.4",
21
- "@volar/language-service": "1.0.0-beta.4",
22
- "@volar/shared": "1.0.0-beta.4",
20
+ "@volar/language-core": "1.0.0-beta.5",
21
+ "@volar/language-service": "1.0.0-beta.5",
22
+ "@volar/shared": "1.0.0-beta.5",
23
23
  "request-light": "^0.5.8",
24
24
  "typesafe-path": "^0.2.0",
25
25
  "vscode-html-languageservice": "^5.0.1",
@@ -28,5 +28,5 @@
28
28
  "vscode-languageserver-textdocument": "^1.0.7",
29
29
  "vscode-uri": "^3.0.3"
30
30
  },
31
- "gitHead": "95f02fda8b432ca1d0cc08694ba3911c9e3b9ec6"
31
+ "gitHead": "4cea0daf2ef63a0c082b84267f7b08915c0ff43a"
32
32
  }