@volar/language-server 1.6.7 → 1.6.9-patch.1

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/protocol.d.ts CHANGED
@@ -91,6 +91,3 @@ export declare namespace GetVirtualFileRequest {
91
91
  type ErrorType = never;
92
92
  const type: vscode.RequestType<ParamsType, ResponseType, never>;
93
93
  }
94
- export declare namespace ReportStats {
95
- const type: vscode.NotificationType0;
96
- }
package/out/protocol.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportStats = exports.GetVirtualFileRequest = exports.GetVirtualFilesRequest = exports.ReloadProjectNotification = exports.WriteVirtualFilesNotification = exports.AutoInsertRequest = exports.GetProjectFilesRequest = exports.GetProjectsRequest = exports.GetMatchTsConfigRequest = exports.FindFileReferenceRequest = exports.FsReadDirectoryRequest = exports.FsReadFileRequest = void 0;
3
+ exports.GetVirtualFileRequest = exports.GetVirtualFilesRequest = exports.ReloadProjectNotification = exports.WriteVirtualFilesNotification = exports.AutoInsertRequest = exports.GetProjectFilesRequest = exports.GetProjectsRequest = exports.GetMatchTsConfigRequest = exports.FindFileReferenceRequest = exports.FsReadDirectoryRequest = exports.FsReadFileRequest = void 0;
4
4
  const vscode = require("vscode-languageserver-protocol");
5
5
  /**
6
6
  * Server request client
@@ -52,8 +52,4 @@ var GetVirtualFileRequest;
52
52
  (function (GetVirtualFileRequest) {
53
53
  GetVirtualFileRequest.type = new vscode.RequestType('volar/client/virtualFile');
54
54
  })(GetVirtualFileRequest = exports.GetVirtualFileRequest || (exports.GetVirtualFileRequest = {}));
55
- var ReportStats;
56
- (function (ReportStats) {
57
- ReportStats.type = new vscode.NotificationType0('volar/client/stats');
58
- })(ReportStats = exports.ReportStats || (exports.ReportStats = {}));
59
55
  //# sourceMappingURL=protocol.js.map
package/out/types.d.ts CHANGED
@@ -10,10 +10,9 @@ import { ProjectContext } from './common/project';
10
10
  export type FileSystemHost = {
11
11
  ready(connection: vscode.Connection): void;
12
12
  reload(): void;
13
- getWorkspaceFileSystem(rootUri: URI): FileSystem;
13
+ getWorkspaceFileSystem(rootUri: URI): ts.System;
14
14
  onDidChangeWatchedFiles(cb: (params: vscode.DidChangeWatchedFilesParams) => void): () => void;
15
15
  };
16
- export type FileSystem = Pick<ts.System, 'newLine' | 'useCaseSensitiveFileNames' | 'fileExists' | 'readFile' | 'readDirectory' | 'getCurrentDirectory' | 'realpath' | 'resolvePath'> & Partial<ts.System>;
17
16
  export interface RuntimeEnvironment {
18
17
  uriToFileName: (uri: string) => string;
19
18
  fileNameToUri: (fileName: string) => string;
@@ -32,7 +31,7 @@ export interface RuntimeEnvironment {
32
31
  interface LanguageServerPluginContext extends ProjectContext {
33
32
  env: ServiceEnvironment;
34
33
  host: embedded.LanguageServiceHost;
35
- sys: FileSystem;
34
+ sys: ts.System;
36
35
  }
37
36
  export interface LanguageServerPlugin {
38
37
  (initOptions: InitializationOptions, modules: {
@@ -41,6 +40,7 @@ export interface LanguageServerPlugin {
41
40
  extraFileExtensions?: ts.FileExtensionInfo[];
42
41
  watchFileExtensions?: string[];
43
42
  resolveConfig?(config: Config, ctx: LanguageServerPluginContext | undefined): Config;
43
+ resolveExistingOptions?(options: ts.CompilerOptions | undefined): ts.CompilerOptions | undefined;
44
44
  onInitialized?(getLanguageService: (uri: string) => Promise<LanguageService | undefined>, env: RuntimeEnvironment): void;
45
45
  };
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-server",
3
- "version": "1.6.7",
3
+ "version": "1.6.9-patch.1",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "directory": "packages/language-server"
16
16
  },
17
17
  "dependencies": {
18
- "@volar/language-core": "1.6.7",
19
- "@volar/language-service": "1.6.7",
18
+ "@volar/language-core": "1.6.9",
19
+ "@volar/language-service": "1.6.9",
20
20
  "@vscode/l10n": "^0.0.11",
21
21
  "request-light": "^0.7.0",
22
22
  "typesafe-path": "^0.2.2",
@@ -26,5 +26,7 @@
26
26
  "vscode-languageserver-textdocument": "^1.0.8",
27
27
  "vscode-uri": "^3.0.7"
28
28
  },
29
- "gitHead": "17154cd7d468c5b45baf50ea4b2e0f83406b6c03"
29
+ "devDependencies": {
30
+ "@volar/source-map": "1.6.9"
31
+ }
30
32
  }