@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.
- package/out/baseLanguageService.d.ts +6 -7
- package/out/baseLanguageService.js +7 -10
- package/out/documentFeatures/colorPresentations.d.ts +2 -2
- package/out/documentFeatures/documentColors.d.ts +2 -2
- package/out/documentFeatures/documentSymbols.d.ts +2 -2
- package/out/documentFeatures/documentSymbols.js +34 -6
- package/out/documentFeatures/foldingRanges.d.ts +2 -2
- package/out/documentFeatures/format.d.ts +2 -4
- package/out/documentFeatures/format.js +113 -151
- package/out/documentFeatures/linkedEditingRanges.d.ts +2 -2
- package/out/documentFeatures/selectionRanges.d.ts +2 -2
- package/out/index.d.ts +1 -1
- package/out/index.js +3 -3
- package/out/languageFeatures/autoInsert.d.ts +2 -2
- package/out/languageFeatures/callHierarchy.d.ts +2 -2
- package/out/languageFeatures/codeActionResolve.d.ts +2 -2
- package/out/languageFeatures/codeActionResolve.js +9 -3
- package/out/languageFeatures/codeActions.d.ts +5 -2
- package/out/languageFeatures/codeActions.js +17 -6
- package/out/languageFeatures/codeLens.d.ts +11 -4
- package/out/languageFeatures/codeLens.js +22 -14
- package/out/languageFeatures/codeLensResolve.d.ts +4 -2
- package/out/languageFeatures/codeLensResolve.js +19 -11
- package/out/languageFeatures/complete.d.ts +2 -2
- package/out/languageFeatures/completeResolve.d.ts +2 -2
- package/out/languageFeatures/definition.d.ts +2 -2
- package/out/languageFeatures/documentHighlights.d.ts +2 -2
- package/out/languageFeatures/documentLinks.d.ts +2 -2
- package/out/languageFeatures/documentLinks.js +1 -1
- package/out/languageFeatures/documentSemanticTokens.d.ts +2 -2
- package/out/languageFeatures/fileReferences.d.ts +2 -2
- package/out/languageFeatures/fileRename.d.ts +2 -2
- package/out/languageFeatures/fileRename.js +1 -1
- package/out/languageFeatures/hover.d.ts +2 -2
- package/out/languageFeatures/inlayHints.d.ts +2 -2
- package/out/languageFeatures/inlayHints.js +2 -3
- package/out/languageFeatures/references.d.ts +2 -2
- package/out/languageFeatures/rename.d.ts +3 -3
- package/out/languageFeatures/rename.js +54 -34
- package/out/languageFeatures/renamePrepare.d.ts +2 -2
- package/out/languageFeatures/renamePrepare.js +9 -13
- package/out/languageFeatures/signatureHelp.d.ts +2 -2
- package/out/languageFeatures/validation.d.ts +4 -2
- package/out/languageFeatures/validation.js +42 -9
- package/out/languageFeatures/workspaceSymbols.d.ts +2 -2
- package/out/languageFeatures/workspaceSymbols.js +3 -2
- package/out/transformer/documentSymbol.d.ts +2 -0
- package/out/transformer/documentSymbol.js +18 -0
- package/out/transformer/index.d.ts +2 -2
- package/out/transformer/index.js +5 -5
- package/out/transformer/workspaceSymbol.d.ts +2 -0
- package/out/transformer/workspaceSymbol.js +15 -0
- package/out/types.d.ts +65 -43
- package/out/utils/dedupe.d.ts +0 -1
- package/out/utils/dedupe.js +1 -13
- package/out/utils/featureWorkers.d.ts +4 -4
- package/out/utils/featureWorkers.js +27 -17
- package/package.json +9 -9
- package/out/languageFeatures/executeCommand.d.ts +0 -11
- 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
|