@volar/language-service 1.2.0-alpha.8 → 1.3.0-alpha.0

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 (60) hide show
  1. package/out/baseLanguageService.d.ts +6 -7
  2. package/out/baseLanguageService.js +7 -10
  3. package/out/documentFeatures/colorPresentations.d.ts +2 -2
  4. package/out/documentFeatures/documentColors.d.ts +2 -2
  5. package/out/documentFeatures/documentSymbols.d.ts +2 -2
  6. package/out/documentFeatures/documentSymbols.js +34 -6
  7. package/out/documentFeatures/foldingRanges.d.ts +2 -2
  8. package/out/documentFeatures/format.d.ts +2 -4
  9. package/out/documentFeatures/format.js +113 -151
  10. package/out/documentFeatures/linkedEditingRanges.d.ts +2 -2
  11. package/out/documentFeatures/selectionRanges.d.ts +2 -2
  12. package/out/index.d.ts +1 -1
  13. package/out/index.js +3 -3
  14. package/out/languageFeatures/autoInsert.d.ts +2 -2
  15. package/out/languageFeatures/callHierarchy.d.ts +2 -2
  16. package/out/languageFeatures/codeActionResolve.d.ts +2 -2
  17. package/out/languageFeatures/codeActionResolve.js +9 -3
  18. package/out/languageFeatures/codeActions.d.ts +5 -2
  19. package/out/languageFeatures/codeActions.js +17 -6
  20. package/out/languageFeatures/codeLens.d.ts +11 -4
  21. package/out/languageFeatures/codeLens.js +22 -14
  22. package/out/languageFeatures/codeLensResolve.d.ts +4 -2
  23. package/out/languageFeatures/codeLensResolve.js +19 -11
  24. package/out/languageFeatures/complete.d.ts +2 -2
  25. package/out/languageFeatures/completeResolve.d.ts +2 -2
  26. package/out/languageFeatures/definition.d.ts +2 -2
  27. package/out/languageFeatures/documentHighlights.d.ts +2 -2
  28. package/out/languageFeatures/documentLinks.d.ts +2 -2
  29. package/out/languageFeatures/documentLinks.js +1 -1
  30. package/out/languageFeatures/documentSemanticTokens.d.ts +2 -2
  31. package/out/languageFeatures/fileReferences.d.ts +2 -2
  32. package/out/languageFeatures/fileRename.d.ts +2 -2
  33. package/out/languageFeatures/fileRename.js +1 -1
  34. package/out/languageFeatures/hover.d.ts +2 -2
  35. package/out/languageFeatures/inlayHints.d.ts +2 -2
  36. package/out/languageFeatures/inlayHints.js +2 -3
  37. package/out/languageFeatures/references.d.ts +2 -2
  38. package/out/languageFeatures/rename.d.ts +3 -3
  39. package/out/languageFeatures/rename.js +54 -34
  40. package/out/languageFeatures/renamePrepare.d.ts +2 -2
  41. package/out/languageFeatures/renamePrepare.js +9 -13
  42. package/out/languageFeatures/signatureHelp.d.ts +2 -2
  43. package/out/languageFeatures/validation.d.ts +4 -2
  44. package/out/languageFeatures/validation.js +42 -9
  45. package/out/languageFeatures/workspaceSymbols.d.ts +2 -2
  46. package/out/languageFeatures/workspaceSymbols.js +3 -2
  47. package/out/transformer/documentSymbol.d.ts +2 -0
  48. package/out/transformer/documentSymbol.js +18 -0
  49. package/out/transformer/index.d.ts +2 -2
  50. package/out/transformer/index.js +5 -5
  51. package/out/transformer/workspaceSymbol.d.ts +2 -0
  52. package/out/transformer/workspaceSymbol.js +15 -0
  53. package/out/types.d.ts +65 -43
  54. package/out/utils/dedupe.d.ts +0 -1
  55. package/out/utils/dedupe.js +1 -13
  56. package/out/utils/featureWorkers.d.ts +4 -4
  57. package/out/utils/featureWorkers.js +27 -17
  58. package/package.json +9 -9
  59. package/out/languageFeatures/executeCommand.d.ts +0 -11
  60. package/out/languageFeatures/executeCommand.js +0 -32
@@ -1,32 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.register = exports.executePluginCommand = void 0;
12
- const randomCommandId = Math.random().toString(36).slice(2); // TODO
13
- exports.executePluginCommand = `volar.${randomCommandId}.executePluginCommand`;
14
- function register(context) {
15
- return (command, args, executeCommandContext) => __awaiter(this, void 0, void 0, function* () {
16
- var _a, _b;
17
- if (command === exports.executePluginCommand) {
18
- const [_uri, pluginId, originalCommand] = args;
19
- if (pluginId !== undefined) {
20
- const plugin = context.plugins[pluginId];
21
- yield ((_a = plugin === null || plugin === void 0 ? void 0 : plugin.doExecuteCommand) === null || _a === void 0 ? void 0 : _a.call(plugin, originalCommand.command, originalCommand.arguments, executeCommandContext));
22
- }
23
- else {
24
- for (const plugin of Object.values(context.plugins)) {
25
- yield ((_b = plugin.doExecuteCommand) === null || _b === void 0 ? void 0 : _b.call(plugin, originalCommand.command, originalCommand.arguments, executeCommandContext));
26
- }
27
- }
28
- }
29
- });
30
- }
31
- exports.register = register;
32
- //# sourceMappingURL=executeCommand.js.map