@volar/language-server 1.10.0 → 1.10.2

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.
Files changed (38) hide show
  1. package/out/browser/index.d.ts +1 -0
  2. package/out/browser/index.js +17 -2
  3. package/out/common/cancellationPipe.d.ts +1 -0
  4. package/out/common/cancellationPipe.js +24 -1
  5. package/out/common/configurationHost.d.ts +1 -0
  6. package/out/common/configurationHost.js +24 -1
  7. package/out/common/documents.d.ts +3 -0
  8. package/out/common/documents.js +24 -1
  9. package/out/common/features/customFeatures.d.ts +1 -0
  10. package/out/common/features/customFeatures.js +23 -25
  11. package/out/common/features/languageFeatures.d.ts +2 -1
  12. package/out/common/features/languageFeatures.js +36 -14
  13. package/out/common/project.d.ts +5 -2
  14. package/out/common/project.js +28 -5
  15. package/out/common/schemaRequestHandlers/http.d.ts +1 -0
  16. package/out/common/server.d.ts +2 -1
  17. package/out/common/server.js +35 -19
  18. package/out/common/utils/inferredCompilerOptions.d.ts +1 -0
  19. package/out/common/utils/isFileInDir.d.ts +1 -0
  20. package/out/common/utils/isFileInDir.js +24 -1
  21. package/out/common/utils/registerFeatures.d.ts +1 -0
  22. package/out/common/utils/registerFeatures.js +24 -1
  23. package/out/common/utils/serverConfig.d.ts +1 -0
  24. package/out/common/utils/uriMap.d.ts +3 -0
  25. package/out/common/utils/uriMap.js +28 -1
  26. package/out/common/workspaces.d.ts +1290 -894
  27. package/out/common/workspaces.js +252 -40
  28. package/out/index.d.ts +1 -0
  29. package/out/node/index.d.ts +1 -0
  30. package/out/node/index.js +18 -3
  31. package/out/protocol.d.ts +1 -0
  32. package/out/protocol.js +24 -1
  33. package/out/types.d.ts +1 -0
  34. package/package.json +6 -6
  35. package/out/common/workspace.d.ts +0 -1159
  36. package/out/common/workspace.js +0 -230
  37. package/out/node/fs.d.ts +0 -0
  38. package/out/node/fs.js +0 -1
@@ -1,14 +1,38 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.createUriMap = exports._ = void 0;
4
27
  const vscode_uri_1 = require("vscode-uri");
5
- exports._ = require("vscode-uri");
28
+ exports._ = __importStar(require("vscode-uri"));
6
29
  function createUriMap(fileNameToUri, map = new Map()) {
7
30
  const uriToUri = new Map();
8
31
  const pathToUri = new Map();
9
32
  return {
10
33
  clear,
11
34
  values,
35
+ uriKeys: keys,
12
36
  uriDelete,
13
37
  uriGet,
14
38
  uriHas,
@@ -35,6 +59,9 @@ function createUriMap(fileNameToUri, map = new Map()) {
35
59
  function values() {
36
60
  return map.values();
37
61
  }
62
+ function keys() {
63
+ return map.keys();
64
+ }
38
65
  function uriDelete(_uri) {
39
66
  return map.delete(getUriByUri(_uri));
40
67
  }