@volar/language-server 1.2.0-alpha.3 → 1.2.0-alpha.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.
package/out/common/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as embedded from '@volar/language-core';
|
|
2
2
|
import * as embeddedLS from '@volar/language-service';
|
|
3
|
-
import {
|
|
3
|
+
import { Config } from '@volar/language-service';
|
|
4
4
|
import * as path from 'typesafe-path';
|
|
5
5
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
6
6
|
import { URI } from 'vscode-uri';
|
|
@@ -10,7 +10,7 @@ export interface ProjectContext {
|
|
|
10
10
|
rootUri: URI;
|
|
11
11
|
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
12
12
|
documentRegistry: ts.DocumentRegistry | undefined;
|
|
13
|
-
serverConfig:
|
|
13
|
+
serverConfig: Config | undefined;
|
|
14
14
|
}
|
|
15
15
|
export type Project = ReturnType<typeof createProject>;
|
|
16
16
|
export declare function createProject(context: ProjectContext): Promise<{
|
package/out/common/project.js
CHANGED
|
@@ -71,6 +71,7 @@ function createProject(context) {
|
|
|
71
71
|
};
|
|
72
72
|
const env = {
|
|
73
73
|
rootUri: context.rootUri,
|
|
74
|
+
locale: context.workspace.workspaces.initParams.locale,
|
|
74
75
|
configurationHost: context.workspace.workspaces.configurationHost,
|
|
75
76
|
fileSystemProvider: context.workspace.workspaces.server.runtimeEnv.fileSystemProvide,
|
|
76
77
|
documentContext: getDocumentContext(context.workspace.workspaces.ts, languageServiceHost, context.rootUri.toString()),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function loadConfig(dir: string, configFile: string | undefined):
|
|
1
|
+
import { Config } from "@volar/language-service";
|
|
2
|
+
export declare function loadConfig(dir: string, configFile: string | undefined): Config | undefined;
|
package/out/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { FileSystemProvider } from 'vscode-html-languageservice';
|
|
|
5
5
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
6
6
|
import * as vscode from 'vscode-languageserver';
|
|
7
7
|
import { URI } from 'vscode-uri';
|
|
8
|
-
import {
|
|
8
|
+
import { Config, LanguageServiceRuntimeContext } from '@volar/language-service';
|
|
9
9
|
import { ProjectContext } from './common/project';
|
|
10
10
|
export type FileSystemHost = {
|
|
11
11
|
ready(connection: vscode.Connection): void;
|
|
@@ -40,7 +40,7 @@ export type LanguageServerPlugin<A extends LanguageServerInitializationOptions =
|
|
|
40
40
|
fileRenameOperationFilter: string[];
|
|
41
41
|
fileWatcher: string[];
|
|
42
42
|
};
|
|
43
|
-
resolveConfig?(config:
|
|
43
|
+
resolveConfig?(config: Config, ctx: LanguageServiceContext): void;
|
|
44
44
|
onInitialize?(_: vscode.InitializeResult): void;
|
|
45
45
|
onInitialized?(getLanguageService: (uri: string) => Promise<C>): void;
|
|
46
46
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.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.2.0-alpha.
|
|
21
|
-
"@volar/language-service": "1.2.0-alpha.
|
|
22
|
-
"@volar/shared": "1.2.0-alpha.
|
|
20
|
+
"@volar/language-core": "1.2.0-alpha.5",
|
|
21
|
+
"@volar/language-service": "1.2.0-alpha.5",
|
|
22
|
+
"@volar/shared": "1.2.0-alpha.5",
|
|
23
23
|
"@vscode/l10n": "^0.0.10",
|
|
24
24
|
"request-light": "^0.6.0",
|
|
25
25
|
"typesafe-path": "^0.2.2",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
30
30
|
"vscode-uri": "^3.0.7"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "a31d022987c454762d1ba3c9ef8e7d74a5bca06a"
|
|
33
33
|
}
|