@volar/language-service 1.0.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/LICENSE +21 -0
- package/out/baseDocumentService.d.ts +35 -0
- package/out/baseDocumentService.js +100 -0
- package/out/baseLanguageService.d.ts +55 -0
- package/out/baseLanguageService.js +114 -0
- package/out/documentFeatures/autoInsert.d.ts +5 -0
- package/out/documentFeatures/autoInsert.js +25 -0
- package/out/documentFeatures/colorPresentations.d.ts +4 -0
- package/out/documentFeatures/colorPresentations.js +35 -0
- package/out/documentFeatures/documentColors.d.ts +4 -0
- package/out/documentFeatures/documentColors.js +21 -0
- package/out/documentFeatures/documentSymbols.d.ts +4 -0
- package/out/documentFeatures/documentSymbols.js +21 -0
- package/out/documentFeatures/foldingRanges.d.ts +4 -0
- package/out/documentFeatures/foldingRanges.js +16 -0
- package/out/documentFeatures/format.d.ts +7 -0
- package/out/documentFeatures/format.js +242 -0
- package/out/documentFeatures/linkedEditingRanges.d.ts +4 -0
- package/out/documentFeatures/linkedEditingRanges.js +23 -0
- package/out/documentFeatures/selectionRanges.d.ts +4 -0
- package/out/documentFeatures/selectionRanges.js +19 -0
- package/out/documents.d.ts +106 -0
- package/out/documents.js +227 -0
- package/out/index.d.ts +8 -0
- package/out/index.js +27 -0
- package/out/languageFeatures/autoInsert.d.ts +4 -0
- package/out/languageFeatures/autoInsert.js +35 -0
- package/out/languageFeatures/callHierarchy.d.ts +15 -0
- package/out/languageFeatures/callHierarchy.js +148 -0
- package/out/languageFeatures/codeActionResolve.d.ts +3 -0
- package/out/languageFeatures/codeActionResolve.js +45 -0
- package/out/languageFeatures/codeActions.d.ts +11 -0
- package/out/languageFeatures/codeActions.js +89 -0
- package/out/languageFeatures/codeLens.d.ts +8 -0
- package/out/languageFeatures/codeLens.js +45 -0
- package/out/languageFeatures/codeLensResolve.d.ts +3 -0
- package/out/languageFeatures/codeLensResolve.js +30 -0
- package/out/languageFeatures/complete.d.ts +14 -0
- package/out/languageFeatures/complete.js +181 -0
- package/out/languageFeatures/completeResolve.d.ts +3 -0
- package/out/languageFeatures/completeResolve.js +60 -0
- package/out/languageFeatures/definition.d.ts +4 -0
- package/out/languageFeatures/definition.js +85 -0
- package/out/languageFeatures/documentHighlights.d.ts +3 -0
- package/out/languageFeatures/documentHighlights.js +65 -0
- package/out/languageFeatures/documentLinks.d.ts +3 -0
- package/out/languageFeatures/documentLinks.js +53 -0
- package/out/languageFeatures/documentSemanticTokens.d.ts +4 -0
- package/out/languageFeatures/documentSemanticTokens.js +59 -0
- package/out/languageFeatures/executeCommand.d.ts +11 -0
- package/out/languageFeatures/executeCommand.js +31 -0
- package/out/languageFeatures/fileReferences.d.ts +4 -0
- package/out/languageFeatures/fileReferences.js +37 -0
- package/out/languageFeatures/fileRename.d.ts +3 -0
- package/out/languageFeatures/fileRename.js +36 -0
- package/out/languageFeatures/hover.d.ts +3 -0
- package/out/languageFeatures/hover.js +48 -0
- package/out/languageFeatures/inlayHints.d.ts +3 -0
- package/out/languageFeatures/inlayHints.js +65 -0
- package/out/languageFeatures/references.d.ts +3 -0
- package/out/languageFeatures/references.js +68 -0
- package/out/languageFeatures/rename.d.ts +19 -0
- package/out/languageFeatures/rename.js +226 -0
- package/out/languageFeatures/renamePrepare.d.ts +3 -0
- package/out/languageFeatures/renamePrepare.js +41 -0
- package/out/languageFeatures/signatureHelp.d.ts +3 -0
- package/out/languageFeatures/signatureHelp.js +14 -0
- package/out/languageFeatures/validation.d.ts +7 -0
- package/out/languageFeatures/validation.js +237 -0
- package/out/languageFeatures/workspaceSymbols.d.ts +3 -0
- package/out/languageFeatures/workspaceSymbols.js +34 -0
- package/out/plugin.d.ts +93 -0
- package/out/plugin.js +3 -0
- package/out/types.d.ts +43 -0
- package/out/types.js +4 -0
- package/out/utils/dedupe.d.ts +15 -0
- package/out/utils/dedupe.js +132 -0
- package/out/utils/definePlugin.d.ts +2 -0
- package/out/utils/definePlugin.js +27 -0
- package/out/utils/featureWorkers.d.ts +7 -0
- package/out/utils/featureWorkers.js +120 -0
- package/out/utils/singleFileTypeScriptService.d.ts +4 -0
- package/out/utils/singleFileTypeScriptService.js +30 -0
- package/package.json +32 -0
|
@@ -0,0 +1,242 @@
|
|
|
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 = void 0;
|
|
12
|
+
const vscode = require("vscode-languageserver-protocol");
|
|
13
|
+
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
|
14
|
+
function register(context) {
|
|
15
|
+
const ts = context.typescript;
|
|
16
|
+
return (document, options, range, onTypeParams) => __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f;
|
|
18
|
+
if (!range) {
|
|
19
|
+
range = vscode.Range.create(document.positionAt(0), document.positionAt(document.getText().length));
|
|
20
|
+
}
|
|
21
|
+
const vueDocument = context.getSourceFileDocument(document);
|
|
22
|
+
const originalDocument = document;
|
|
23
|
+
const rootEdits = onTypeParams
|
|
24
|
+
? yield tryFormat(document, onTypeParams.position, undefined, onTypeParams.ch)
|
|
25
|
+
: yield tryFormat(document, range, undefined);
|
|
26
|
+
if (!vueDocument)
|
|
27
|
+
return rootEdits;
|
|
28
|
+
if (rootEdits === null || rootEdits === void 0 ? void 0 : rootEdits.length) {
|
|
29
|
+
applyEdits(rootEdits);
|
|
30
|
+
}
|
|
31
|
+
let level = 0;
|
|
32
|
+
const initialIndentLanguageId = (_b = yield ((_a = context.pluginContext.env.configurationHost) === null || _a === void 0 ? void 0 : _a.getConfiguration('volar.format.initialIndent'))) !== null && _b !== void 0 ? _b : { html: true };
|
|
33
|
+
while (true) {
|
|
34
|
+
tryUpdateVueDocument();
|
|
35
|
+
const embeddeds = getEmbeddedsByLevel(vueDocument[0], level++);
|
|
36
|
+
if (embeddeds.length === 0)
|
|
37
|
+
break;
|
|
38
|
+
let edits = [];
|
|
39
|
+
let toPatchIndent;
|
|
40
|
+
for (const embedded of embeddeds) {
|
|
41
|
+
if (!embedded.capabilities.formatting)
|
|
42
|
+
continue;
|
|
43
|
+
const sourceMap = vueDocument[0].getSourceMap(embedded);
|
|
44
|
+
const initialIndentBracket = typeof embedded.capabilities.formatting === 'object' && initialIndentLanguageId[sourceMap.mappedDocument.languageId]
|
|
45
|
+
? embedded.capabilities.formatting.initialIndentBracket
|
|
46
|
+
: undefined;
|
|
47
|
+
let _edits;
|
|
48
|
+
if (onTypeParams) {
|
|
49
|
+
const embeddedPosition = (_c = sourceMap.getMappedRange(onTypeParams.position)) === null || _c === void 0 ? void 0 : _c[0].start;
|
|
50
|
+
if (embeddedPosition) {
|
|
51
|
+
_edits = yield tryFormat(sourceMap.mappedDocument, embeddedPosition, initialIndentBracket, onTypeParams.ch);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
let embeddedRange = (_d = sourceMap.getMappedRange(range.start, range.end)) === null || _d === void 0 ? void 0 : _d[0];
|
|
56
|
+
if (!embeddedRange) {
|
|
57
|
+
let start = (_e = sourceMap.getMappedRange(range.start)) === null || _e === void 0 ? void 0 : _e[0].start;
|
|
58
|
+
let end = (_f = sourceMap.getMappedRange(range.end)) === null || _f === void 0 ? void 0 : _f[0].end;
|
|
59
|
+
if (!start) {
|
|
60
|
+
const firstMapping = sourceMap.base.mappings.sort((a, b) => a.sourceRange.start - b.sourceRange.start)[0];
|
|
61
|
+
if (firstMapping && document.offsetAt(range.start) < firstMapping.sourceRange.start) {
|
|
62
|
+
start = sourceMap.mappedDocument.positionAt(firstMapping.mappedRange.start);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (!end) {
|
|
66
|
+
const lastMapping = sourceMap.base.mappings.sort((a, b) => b.sourceRange.start - a.sourceRange.start)[0];
|
|
67
|
+
if (lastMapping && document.offsetAt(range.end) > lastMapping.sourceRange.end) {
|
|
68
|
+
end = sourceMap.mappedDocument.positionAt(lastMapping.mappedRange.end);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (start && end) {
|
|
72
|
+
embeddedRange = { start, end };
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (embeddedRange) {
|
|
76
|
+
toPatchIndent = {
|
|
77
|
+
sourceMapEmbeddedDocumentUri: sourceMap.mappedDocument.uri,
|
|
78
|
+
};
|
|
79
|
+
_edits = yield tryFormat(sourceMap.mappedDocument, embeddedRange, initialIndentBracket);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (!_edits)
|
|
83
|
+
continue;
|
|
84
|
+
for (const textEdit of _edits) {
|
|
85
|
+
for (const [range] of sourceMap.getSourceRanges(textEdit.range.start, textEdit.range.end)) {
|
|
86
|
+
edits.push({
|
|
87
|
+
newText: textEdit.newText,
|
|
88
|
+
range,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (edits.length > 0) {
|
|
94
|
+
applyEdits(edits);
|
|
95
|
+
}
|
|
96
|
+
if (toPatchIndent) {
|
|
97
|
+
tryUpdateVueDocument();
|
|
98
|
+
const sourceMap = vueDocument[0].getSourceMaps().find(sourceMap => sourceMap.mappedDocument.uri === (toPatchIndent === null || toPatchIndent === void 0 ? void 0 : toPatchIndent.sourceMapEmbeddedDocumentUri));
|
|
99
|
+
if (sourceMap) {
|
|
100
|
+
const indentEdits = patchInterpolationIndent(vueDocument[0], sourceMap);
|
|
101
|
+
if (indentEdits.length > 0) {
|
|
102
|
+
applyEdits(indentEdits);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (document.getText() === originalDocument.getText())
|
|
108
|
+
return;
|
|
109
|
+
const editRange = vscode.Range.create(originalDocument.positionAt(0), originalDocument.positionAt(originalDocument.getText().length));
|
|
110
|
+
const textEdit = vscode.TextEdit.replace(editRange, document.getText());
|
|
111
|
+
return [textEdit];
|
|
112
|
+
function tryUpdateVueDocument() {
|
|
113
|
+
if (vueDocument && vueDocument[0].file.text !== document.getText()) {
|
|
114
|
+
context.updateSourceFile(vueDocument[0].file, ts.ScriptSnapshot.fromString(document.getText()));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function getEmbeddedsByLevel(vueDocument, level) {
|
|
118
|
+
const embeddeds = vueDocument.file.embeddeds;
|
|
119
|
+
const embeddedsLevels = [embeddeds];
|
|
120
|
+
while (true) {
|
|
121
|
+
if (embeddedsLevels.length > level)
|
|
122
|
+
return embeddedsLevels[level];
|
|
123
|
+
let nextEmbeddeds = [];
|
|
124
|
+
for (const embeddeds of embeddedsLevels[embeddedsLevels.length - 1]) {
|
|
125
|
+
nextEmbeddeds = nextEmbeddeds.concat(embeddeds.embeddeds);
|
|
126
|
+
}
|
|
127
|
+
embeddedsLevels.push(nextEmbeddeds);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function tryFormat(document, range, initialIndentBracket, ch) {
|
|
131
|
+
var _a, _b;
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
let formatDocument = document;
|
|
134
|
+
let formatRange = range;
|
|
135
|
+
if (initialIndentBracket) {
|
|
136
|
+
formatDocument = vscode_languageserver_textdocument_1.TextDocument.create(document.uri, document.languageId, document.version, initialIndentBracket[0] + document.getText() + initialIndentBracket[1]);
|
|
137
|
+
if (vscode.Position.is(range)) {
|
|
138
|
+
formatRange = formatDocument.positionAt(document.offsetAt(range) + initialIndentBracket[0].length);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
const startOffset = document.offsetAt(range.start);
|
|
142
|
+
const endOffset = document.offsetAt(range.end);
|
|
143
|
+
if (startOffset === 0 && endOffset === document.getText().length) {
|
|
144
|
+
// full format
|
|
145
|
+
formatRange = {
|
|
146
|
+
start: formatDocument.positionAt(0),
|
|
147
|
+
end: formatDocument.positionAt(formatDocument.getText().length),
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
// range format
|
|
152
|
+
formatRange = {
|
|
153
|
+
start: formatDocument.positionAt(startOffset + initialIndentBracket[0].length),
|
|
154
|
+
end: formatDocument.positionAt(endOffset + initialIndentBracket[0].length),
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
context.prepareLanguageServices(formatDocument);
|
|
160
|
+
for (const plugin of context.plugins) {
|
|
161
|
+
let edits;
|
|
162
|
+
try {
|
|
163
|
+
if (ch !== undefined && vscode.Position.is(formatRange)) {
|
|
164
|
+
edits = yield ((_a = plugin.formatOnType) === null || _a === void 0 ? void 0 : _a.call(plugin, formatDocument, formatRange, ch, options));
|
|
165
|
+
}
|
|
166
|
+
else if (ch === undefined && vscode.Range.is(formatRange)) {
|
|
167
|
+
edits = yield ((_b = plugin.format) === null || _b === void 0 ? void 0 : _b.call(plugin, formatDocument, formatRange, options));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
catch (err) {
|
|
171
|
+
console.error(err);
|
|
172
|
+
}
|
|
173
|
+
if (!edits)
|
|
174
|
+
continue;
|
|
175
|
+
if (!edits.length)
|
|
176
|
+
return edits;
|
|
177
|
+
let newText = vscode_languageserver_textdocument_1.TextDocument.applyEdits(formatDocument, edits);
|
|
178
|
+
if (initialIndentBracket) {
|
|
179
|
+
newText = newText.substring(newText.indexOf(initialIndentBracket[0]) + initialIndentBracket[0].length, newText.lastIndexOf(initialIndentBracket[1]));
|
|
180
|
+
}
|
|
181
|
+
if (newText === document.getText()) {
|
|
182
|
+
return [];
|
|
183
|
+
}
|
|
184
|
+
return [{
|
|
185
|
+
range: {
|
|
186
|
+
start: document.positionAt(0),
|
|
187
|
+
end: document.positionAt(document.getText().length),
|
|
188
|
+
},
|
|
189
|
+
newText,
|
|
190
|
+
}];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function applyEdits(textEdits) {
|
|
195
|
+
const newText = vscode_languageserver_textdocument_1.TextDocument.applyEdits(document, textEdits);
|
|
196
|
+
if (newText !== document.getText()) {
|
|
197
|
+
document = vscode_languageserver_textdocument_1.TextDocument.create(document.uri, document.languageId, document.version + 1, newText);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
exports.register = register;
|
|
203
|
+
function patchInterpolationIndent(vueDocument, sourceMap) {
|
|
204
|
+
const indentTextEdits = [];
|
|
205
|
+
const document = vueDocument.getDocument();
|
|
206
|
+
for (const mapped of sourceMap.base.mappings) {
|
|
207
|
+
const textRange = {
|
|
208
|
+
start: document.positionAt(mapped.sourceRange.start),
|
|
209
|
+
end: document.positionAt(mapped.sourceRange.end),
|
|
210
|
+
};
|
|
211
|
+
const text = document.getText(textRange);
|
|
212
|
+
if (text.indexOf('\n') === -1)
|
|
213
|
+
continue;
|
|
214
|
+
const lines = text.split('\n');
|
|
215
|
+
const removeIndent = getRemoveIndent(lines);
|
|
216
|
+
const baseIndent = getBaseIndent(mapped.sourceRange.start);
|
|
217
|
+
for (let i = 1; i < lines.length; i++) {
|
|
218
|
+
const line = lines[i];
|
|
219
|
+
if (line.startsWith(removeIndent)) {
|
|
220
|
+
lines[i] = line.replace(removeIndent, baseIndent);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
lines[i] = baseIndent.replace(removeIndent, '') + line;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
indentTextEdits.push({
|
|
227
|
+
newText: lines.join('\n'),
|
|
228
|
+
range: textRange,
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
return indentTextEdits;
|
|
232
|
+
function getRemoveIndent(lines) {
|
|
233
|
+
const lastLine = lines[lines.length - 1];
|
|
234
|
+
return lastLine.substring(0, lastLine.length - lastLine.trimStart().length);
|
|
235
|
+
}
|
|
236
|
+
function getBaseIndent(pos) {
|
|
237
|
+
const startPos = document.positionAt(pos);
|
|
238
|
+
const startLineText = document.getText({ start: startPos, end: { line: startPos.line, character: 0 } });
|
|
239
|
+
return startLineText.substring(0, startLineText.length - startLineText.trimStart().length);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DocumentServiceRuntimeContext } from '../types';
|
|
2
|
+
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
3
|
+
import * as vscode from 'vscode-languageserver-protocol';
|
|
4
|
+
export declare function register(context: DocumentServiceRuntimeContext): (document: TextDocument, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.register = void 0;
|
|
3
|
+
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
4
|
+
const shared = require("@volar/shared");
|
|
5
|
+
function register(context) {
|
|
6
|
+
return (document, position) => {
|
|
7
|
+
return (0, featureWorkers_1.documentArgFeatureWorker)(context, document, position, sourceMap => true, function* (position, sourceMap) {
|
|
8
|
+
for (const [mappedRange] of sourceMap.getMappedRanges(position, position, data => !!data.completion)) {
|
|
9
|
+
yield mappedRange.start;
|
|
10
|
+
}
|
|
11
|
+
}, (plugin, document, position) => { var _a; return (_a = plugin.findLinkedEditingRanges) === null || _a === void 0 ? void 0 : _a.call(plugin, document, position); }, (data, sourceMap) => ({
|
|
12
|
+
wordPattern: data.wordPattern,
|
|
13
|
+
ranges: data.ranges.map(range => {
|
|
14
|
+
var _a;
|
|
15
|
+
if (!sourceMap)
|
|
16
|
+
return range;
|
|
17
|
+
return (_a = sourceMap.getSourceRange(range.start, range.end)) === null || _a === void 0 ? void 0 : _a[0];
|
|
18
|
+
}).filter(shared.notEmpty),
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.register = register;
|
|
23
|
+
//# sourceMappingURL=linkedEditingRanges.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DocumentServiceRuntimeContext } from '../types';
|
|
2
|
+
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
3
|
+
import * as vscode from 'vscode-languageserver-protocol';
|
|
4
|
+
export declare function register(context: DocumentServiceRuntimeContext): (document: TextDocument, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.register = void 0;
|
|
3
|
+
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
4
|
+
const transforms_1 = require("@volar/transforms");
|
|
5
|
+
const shared = require("@volar/shared");
|
|
6
|
+
function register(context) {
|
|
7
|
+
return (document, positions) => {
|
|
8
|
+
return (0, featureWorkers_1.documentArgFeatureWorker)(context, document, positions, sourceMap => !!sourceMap.embeddedFile.capabilities.foldingRanges, (positions, sourceMap) => [positions
|
|
9
|
+
.map(position => { var _a; return (_a = sourceMap.getMappedRange(position, position)) === null || _a === void 0 ? void 0 : _a[0].start; })
|
|
10
|
+
.filter(shared.notEmpty)], (plugin, document, positions) => { var _a; return positions.length ? (_a = plugin.getSelectionRanges) === null || _a === void 0 ? void 0 : _a.call(plugin, document, positions) : undefined; }, (data, sourceMap) => (0, transforms_1.transformSelectionRanges)(data, range => {
|
|
11
|
+
var _a;
|
|
12
|
+
if (!sourceMap)
|
|
13
|
+
return range;
|
|
14
|
+
return (_a = sourceMap.getSourceRange(range.start, range.end)) === null || _a === void 0 ? void 0 : _a[0];
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
exports.register = register;
|
|
19
|
+
//# sourceMappingURL=selectionRanges.js.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { DocumentRegistry, EmbeddedFileSourceMap, SourceFile, PositionCapabilities, Teleport, TeleportMappingData, TeleportCapabilities, EmbeddedFile } from '@volar/language-core';
|
|
2
|
+
import * as shared from '@volar/shared';
|
|
3
|
+
import { SourceMapBase } from '@volar/source-map';
|
|
4
|
+
import * as vscode from 'vscode-languageserver-protocol';
|
|
5
|
+
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
6
|
+
import { URI } from 'vscode-uri';
|
|
7
|
+
export declare type SourceFileDocuments = ReturnType<typeof parseSourceFileDocuments>;
|
|
8
|
+
export declare type SourceFileDocument = ReturnType<typeof parseSourceFileDocument>;
|
|
9
|
+
export declare class SourceMap<Data = undefined> {
|
|
10
|
+
sourceDocument: TextDocument;
|
|
11
|
+
mappedDocument: TextDocument;
|
|
12
|
+
base: SourceMapBase<Data>;
|
|
13
|
+
constructor(sourceDocument: TextDocument, mappedDocument: TextDocument, base?: SourceMapBase<Data>);
|
|
14
|
+
getSourceRange<T extends number | vscode.Position>(start: T, end?: T, filter?: (data: Data) => boolean): [{
|
|
15
|
+
start: T;
|
|
16
|
+
end: T;
|
|
17
|
+
}, Data] | undefined;
|
|
18
|
+
getMappedRange<T extends number | vscode.Position>(start: T, end?: T, filter?: (data: Data) => boolean): [{
|
|
19
|
+
start: T;
|
|
20
|
+
end: T;
|
|
21
|
+
}, Data] | undefined;
|
|
22
|
+
getSourceRanges<T extends number | vscode.Position>(start: T, end?: T, filter?: (data: Data) => boolean): Generator<[{
|
|
23
|
+
start: T;
|
|
24
|
+
end: T;
|
|
25
|
+
}, Data], void, unknown>;
|
|
26
|
+
getMappedRanges<T extends number | vscode.Position>(start: T, end?: T, filter?: (data: Data) => boolean): Generator<[{
|
|
27
|
+
start: T;
|
|
28
|
+
end: T;
|
|
29
|
+
}, Data], void, unknown>;
|
|
30
|
+
protected getRanges<T extends number | vscode.Position>(start: T, end: T, sourceToTarget: boolean, filter?: (data: Data) => boolean): Generator<[{
|
|
31
|
+
start: T;
|
|
32
|
+
end: T;
|
|
33
|
+
}, Data], void, unknown>;
|
|
34
|
+
}
|
|
35
|
+
export declare class EmbeddedDocumentSourceMap extends SourceMap<PositionCapabilities> {
|
|
36
|
+
embeddedFile: EmbeddedFile;
|
|
37
|
+
sourceDocument: TextDocument;
|
|
38
|
+
mappedDocument: TextDocument;
|
|
39
|
+
constructor(embeddedFile: EmbeddedFile, sourceDocument: TextDocument, mappedDocument: TextDocument, _sourceMap: EmbeddedFileSourceMap);
|
|
40
|
+
}
|
|
41
|
+
export declare class TeleportSourceMap extends SourceMap<TeleportMappingData> {
|
|
42
|
+
embeddedFile: EmbeddedFile;
|
|
43
|
+
document: TextDocument;
|
|
44
|
+
constructor(embeddedFile: EmbeddedFile, document: TextDocument, teleport: Teleport);
|
|
45
|
+
findTeleports(start: vscode.Position, end?: vscode.Position, filter?: (data: TeleportCapabilities) => boolean): Generator<readonly [{
|
|
46
|
+
start: vscode.Position;
|
|
47
|
+
end: vscode.Position;
|
|
48
|
+
}, TeleportCapabilities], void, unknown>;
|
|
49
|
+
}
|
|
50
|
+
export declare function parseSourceFileDocuments(rootUri: URI, mapper: DocumentRegistry): {
|
|
51
|
+
getAll: () => {
|
|
52
|
+
uri: string;
|
|
53
|
+
file: SourceFile;
|
|
54
|
+
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
55
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => shared._0.TextDocument;
|
|
56
|
+
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
57
|
+
getTeleports: () => TeleportSourceMap[];
|
|
58
|
+
getDocument: () => shared._0.TextDocument;
|
|
59
|
+
}[];
|
|
60
|
+
get: (uri: string) => {
|
|
61
|
+
uri: string;
|
|
62
|
+
file: SourceFile;
|
|
63
|
+
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
64
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => shared._0.TextDocument;
|
|
65
|
+
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
66
|
+
getTeleports: () => TeleportSourceMap[];
|
|
67
|
+
getDocument: () => shared._0.TextDocument;
|
|
68
|
+
} | undefined;
|
|
69
|
+
fromEmbeddedDocument: (document: TextDocument) => {
|
|
70
|
+
uri: string;
|
|
71
|
+
file: SourceFile;
|
|
72
|
+
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
73
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => shared._0.TextDocument;
|
|
74
|
+
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
75
|
+
getTeleports: () => TeleportSourceMap[];
|
|
76
|
+
getDocument: () => shared._0.TextDocument;
|
|
77
|
+
} | undefined;
|
|
78
|
+
sourceMapFromEmbeddedDocumentUri: (uri: string) => EmbeddedDocumentSourceMap | undefined;
|
|
79
|
+
teleportfromEmbeddedDocumentUri: (uri: string) => TeleportSourceMap | undefined;
|
|
80
|
+
fromEmbeddedLocation: (uri: string, start: vscode.Position, end?: vscode.Position, filter?: ((data: PositionCapabilities) => boolean) | undefined, sourceMapFilter?: ((sourceMap: EmbeddedFileSourceMap) => boolean) | undefined) => Generator<{
|
|
81
|
+
uri: string;
|
|
82
|
+
range: {
|
|
83
|
+
start: vscode.Position;
|
|
84
|
+
end: vscode.Position;
|
|
85
|
+
};
|
|
86
|
+
sourceMap: EmbeddedDocumentSourceMap;
|
|
87
|
+
data: PositionCapabilities;
|
|
88
|
+
} | {
|
|
89
|
+
uri: string;
|
|
90
|
+
range: {
|
|
91
|
+
start: vscode.Position;
|
|
92
|
+
end: vscode.Position;
|
|
93
|
+
};
|
|
94
|
+
sourceMap?: undefined;
|
|
95
|
+
data?: undefined;
|
|
96
|
+
}, void, unknown>;
|
|
97
|
+
};
|
|
98
|
+
export declare function parseSourceFileDocument(rootUri: URI, sourceFile: SourceFile, mapper: DocumentRegistry): {
|
|
99
|
+
uri: string;
|
|
100
|
+
file: SourceFile;
|
|
101
|
+
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
102
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => shared._0.TextDocument;
|
|
103
|
+
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
104
|
+
getTeleports: () => TeleportSourceMap[];
|
|
105
|
+
getDocument: () => shared._0.TextDocument;
|
|
106
|
+
};
|
package/out/documents.js
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.parseSourceFileDocument = exports.parseSourceFileDocuments = exports.TeleportSourceMap = exports.EmbeddedDocumentSourceMap = exports.SourceMap = void 0;
|
|
3
|
+
const language_core_1 = require("@volar/language-core");
|
|
4
|
+
const shared = require("@volar/shared");
|
|
5
|
+
const source_map_1 = require("@volar/source-map");
|
|
6
|
+
const reactivity_1 = require("@vue/reactivity");
|
|
7
|
+
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
|
8
|
+
class SourceMap {
|
|
9
|
+
constructor(sourceDocument, mappedDocument, base = new source_map_1.SourceMapBase()) {
|
|
10
|
+
this.sourceDocument = sourceDocument;
|
|
11
|
+
this.mappedDocument = mappedDocument;
|
|
12
|
+
this.base = base;
|
|
13
|
+
}
|
|
14
|
+
getSourceRange(start, end, filter) {
|
|
15
|
+
for (const mapped of this.getRanges(start, end !== null && end !== void 0 ? end : start, false, filter)) {
|
|
16
|
+
return mapped;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
getMappedRange(start, end, filter) {
|
|
20
|
+
for (const mapped of this.getRanges(start, end !== null && end !== void 0 ? end : start, true, filter)) {
|
|
21
|
+
return mapped;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
getSourceRanges(start, end, filter) {
|
|
25
|
+
return this.getRanges(start, end !== null && end !== void 0 ? end : start, false, filter);
|
|
26
|
+
}
|
|
27
|
+
getMappedRanges(start, end, filter) {
|
|
28
|
+
return this.getRanges(start, end !== null && end !== void 0 ? end : start, true, filter);
|
|
29
|
+
}
|
|
30
|
+
*getRanges(start, end, sourceToTarget, filter) {
|
|
31
|
+
const startIsNumber = typeof start === 'number';
|
|
32
|
+
const endIsNumber = typeof end === 'number';
|
|
33
|
+
const toDoc = sourceToTarget ? this.mappedDocument : this.sourceDocument;
|
|
34
|
+
const fromDoc = sourceToTarget ? this.sourceDocument : this.mappedDocument;
|
|
35
|
+
const startOffset = startIsNumber ? start : fromDoc.offsetAt(start);
|
|
36
|
+
const endOffset = endIsNumber ? end : fromDoc.offsetAt(end);
|
|
37
|
+
for (const mapped of this.base.getRanges(startOffset, endOffset, sourceToTarget, filter)) {
|
|
38
|
+
yield getMapped(mapped);
|
|
39
|
+
}
|
|
40
|
+
function getMapped(mapped) {
|
|
41
|
+
if (startIsNumber) {
|
|
42
|
+
return mapped;
|
|
43
|
+
}
|
|
44
|
+
return [{
|
|
45
|
+
start: toDoc.positionAt(mapped[0].start),
|
|
46
|
+
end: toDoc.positionAt(mapped[0].end),
|
|
47
|
+
}, mapped[1]];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.SourceMap = SourceMap;
|
|
52
|
+
class EmbeddedDocumentSourceMap extends SourceMap {
|
|
53
|
+
constructor(embeddedFile, sourceDocument, mappedDocument, _sourceMap) {
|
|
54
|
+
super(sourceDocument, mappedDocument, _sourceMap);
|
|
55
|
+
this.embeddedFile = embeddedFile;
|
|
56
|
+
this.sourceDocument = sourceDocument;
|
|
57
|
+
this.mappedDocument = mappedDocument;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.EmbeddedDocumentSourceMap = EmbeddedDocumentSourceMap;
|
|
61
|
+
class TeleportSourceMap extends SourceMap {
|
|
62
|
+
constructor(embeddedFile, document, teleport) {
|
|
63
|
+
super(document, document, teleport);
|
|
64
|
+
this.embeddedFile = embeddedFile;
|
|
65
|
+
this.document = document;
|
|
66
|
+
}
|
|
67
|
+
*findTeleports(start, end, filter) {
|
|
68
|
+
for (const [teleRange, data] of this.getMappedRanges(start, end, filter ? data => filter(data.toGenedCapabilities) : undefined)) {
|
|
69
|
+
yield [teleRange, data.toGenedCapabilities];
|
|
70
|
+
}
|
|
71
|
+
for (const [teleRange, data] of this.getSourceRanges(start, end, filter ? data => filter(data.toSourceCapabilities) : undefined)) {
|
|
72
|
+
yield [teleRange, data.toSourceCapabilities];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.TeleportSourceMap = TeleportSourceMap;
|
|
77
|
+
function parseSourceFileDocuments(rootUri, mapper) {
|
|
78
|
+
const _sourceFiles = new WeakMap();
|
|
79
|
+
// reactivity
|
|
80
|
+
const embeddedDocumentsMap = (0, reactivity_1.computed)(() => {
|
|
81
|
+
const map = new Map();
|
|
82
|
+
for (const vueDocument of getAll()) {
|
|
83
|
+
for (const sourceMap of vueDocument.getSourceMaps()) {
|
|
84
|
+
map.set(sourceMap.mappedDocument, vueDocument);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return map;
|
|
88
|
+
});
|
|
89
|
+
const embeddedDocumentsMapLsType = (0, reactivity_1.computed)(() => {
|
|
90
|
+
const map = new Map();
|
|
91
|
+
for (const vueDocument of getAll()) {
|
|
92
|
+
for (const sourceMap of vueDocument.getSourceMaps()) {
|
|
93
|
+
map.set(sourceMap.mappedDocument.uri, sourceMap);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return map;
|
|
97
|
+
});
|
|
98
|
+
const teleportsMapLsType = (0, reactivity_1.computed)(() => {
|
|
99
|
+
const map = new Map();
|
|
100
|
+
for (const vueDocument of getAll()) {
|
|
101
|
+
for (const teleport of vueDocument.getTeleports()) {
|
|
102
|
+
map.set(teleport.mappedDocument.uri, teleport);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return map;
|
|
106
|
+
});
|
|
107
|
+
return {
|
|
108
|
+
getAll: getAll,
|
|
109
|
+
get: (uri) => {
|
|
110
|
+
const fileName = shared.getPathOfUri(uri);
|
|
111
|
+
const vueFile = mapper.get(fileName);
|
|
112
|
+
if (vueFile) {
|
|
113
|
+
return get(vueFile[0]);
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
fromEmbeddedDocument: (document) => {
|
|
117
|
+
return embeddedDocumentsMap.value.get(document);
|
|
118
|
+
},
|
|
119
|
+
sourceMapFromEmbeddedDocumentUri: (uri) => {
|
|
120
|
+
return embeddedDocumentsMapLsType.value.get(uri);
|
|
121
|
+
},
|
|
122
|
+
teleportfromEmbeddedDocumentUri: (uri) => {
|
|
123
|
+
return teleportsMapLsType.value.get(uri);
|
|
124
|
+
},
|
|
125
|
+
fromEmbeddedLocation: function* (uri, start, end, filter, sourceMapFilter) {
|
|
126
|
+
if (uri.endsWith('/__VLS_types.ts')) { // TODO: monkey fix
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (end === undefined)
|
|
130
|
+
end = start;
|
|
131
|
+
const sourceMap = embeddedDocumentsMapLsType.value.get(uri);
|
|
132
|
+
if (sourceMap) {
|
|
133
|
+
if (sourceMapFilter && !sourceMapFilter(sourceMap.base))
|
|
134
|
+
return;
|
|
135
|
+
for (const vueRange of sourceMap.getSourceRanges(start, end, filter)) {
|
|
136
|
+
yield {
|
|
137
|
+
uri: sourceMap.sourceDocument.uri,
|
|
138
|
+
range: vueRange[0],
|
|
139
|
+
sourceMap,
|
|
140
|
+
data: vueRange[1],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
yield {
|
|
146
|
+
uri,
|
|
147
|
+
range: {
|
|
148
|
+
start,
|
|
149
|
+
end,
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
function get(sourceFile) {
|
|
156
|
+
let vueDocument = _sourceFiles.get(sourceFile);
|
|
157
|
+
if (!vueDocument) {
|
|
158
|
+
vueDocument = parseSourceFileDocument(rootUri, sourceFile, mapper);
|
|
159
|
+
_sourceFiles.set(sourceFile, vueDocument);
|
|
160
|
+
}
|
|
161
|
+
return vueDocument;
|
|
162
|
+
}
|
|
163
|
+
function getAll() {
|
|
164
|
+
return mapper.getAll().map(file => get(file[0]));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.parseSourceFileDocuments = parseSourceFileDocuments;
|
|
168
|
+
function parseSourceFileDocument(rootUri, sourceFile, mapper) {
|
|
169
|
+
let documentVersion = 0;
|
|
170
|
+
const embeddedDocumentVersions = new Map();
|
|
171
|
+
const embeddedDocuments = new WeakMap();
|
|
172
|
+
const sourceMaps = new WeakMap();
|
|
173
|
+
// computed
|
|
174
|
+
const document = (0, reactivity_1.computed)(() => vscode_languageserver_textdocument_1.TextDocument.create(shared.getUriByPath(rootUri, sourceFile.fileName), sourceFile.fileName.endsWith('.md') ? 'markdown' : 'vue', documentVersion++, sourceFile.text));
|
|
175
|
+
const allSourceMaps = (0, reactivity_1.computed)(() => {
|
|
176
|
+
const result = [];
|
|
177
|
+
(0, language_core_1.forEachEmbeddeds)(sourceFile.embeddeds, embedded => {
|
|
178
|
+
result.push(getSourceMap(embedded));
|
|
179
|
+
});
|
|
180
|
+
return result;
|
|
181
|
+
});
|
|
182
|
+
const teleports = (0, reactivity_1.computed)(() => {
|
|
183
|
+
const result = [];
|
|
184
|
+
(0, language_core_1.forEachEmbeddeds)(sourceFile.embeddeds, embedded => {
|
|
185
|
+
if (embedded.teleportMappings) {
|
|
186
|
+
const embeddedDocument = getEmbeddedDocument(embedded);
|
|
187
|
+
const sourceMap = new TeleportSourceMap(embedded, embeddedDocument, mapper.getTeleportSourceMap(sourceFile, embedded.teleportMappings));
|
|
188
|
+
result.push(sourceMap);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
return result;
|
|
192
|
+
});
|
|
193
|
+
return {
|
|
194
|
+
uri: shared.getUriByPath(rootUri, sourceFile.fileName),
|
|
195
|
+
file: sourceFile,
|
|
196
|
+
getSourceMap,
|
|
197
|
+
getEmbeddedDocument,
|
|
198
|
+
getSourceMaps: () => allSourceMaps.value,
|
|
199
|
+
getTeleports: () => teleports.value,
|
|
200
|
+
getDocument: () => document.value,
|
|
201
|
+
};
|
|
202
|
+
function getSourceMap(embedded) {
|
|
203
|
+
let cache = sourceMaps.get(embedded);
|
|
204
|
+
if (!cache || cache[0] !== document.value.version) {
|
|
205
|
+
cache = [
|
|
206
|
+
document.value.version,
|
|
207
|
+
new EmbeddedDocumentSourceMap(embedded, document.value, getEmbeddedDocument(embedded), mapper.getSourceMap(sourceFile, embedded.mappings))
|
|
208
|
+
];
|
|
209
|
+
sourceMaps.set(embedded, cache);
|
|
210
|
+
}
|
|
211
|
+
return cache[1];
|
|
212
|
+
}
|
|
213
|
+
function getEmbeddedDocument(embeddedFile) {
|
|
214
|
+
var _a;
|
|
215
|
+
let document = embeddedDocuments.get(embeddedFile);
|
|
216
|
+
if (!document || document.getText() !== embeddedFile.text) {
|
|
217
|
+
const uri = shared.getUriByPath(rootUri, embeddedFile.fileName);
|
|
218
|
+
const newVersion = ((_a = embeddedDocumentVersions.get(uri.toLowerCase())) !== null && _a !== void 0 ? _a : 0) + 1;
|
|
219
|
+
embeddedDocumentVersions.set(uri.toLowerCase(), newVersion);
|
|
220
|
+
document = vscode_languageserver_textdocument_1.TextDocument.create(uri, shared.syntaxToLanguageId(embeddedFile.fileName.split('.').pop()), newVersion, embeddedFile.text);
|
|
221
|
+
embeddedDocuments.set(embeddedFile, document);
|
|
222
|
+
}
|
|
223
|
+
return document;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
exports.parseSourceFileDocument = parseSourceFileDocument;
|
|
227
|
+
//# sourceMappingURL=documents.js.map
|
package/out/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@volar/language-core';
|
|
2
|
+
export * from './baseDocumentService';
|
|
3
|
+
export * from './baseLanguageService';
|
|
4
|
+
export * from './documents';
|
|
5
|
+
export { executePluginCommand, ExecutePluginCommandArgs } from './languageFeatures/executeCommand';
|
|
6
|
+
export { mergeWorkspaceEdits } from './languageFeatures/rename';
|
|
7
|
+
export * from './plugin';
|
|
8
|
+
export * from './types';
|
package/out/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
13
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.mergeWorkspaceEdits = exports.executePluginCommand = void 0;
|
|
17
|
+
__exportStar(require("@volar/language-core"), exports);
|
|
18
|
+
__exportStar(require("./baseDocumentService"), exports);
|
|
19
|
+
__exportStar(require("./baseLanguageService"), exports);
|
|
20
|
+
__exportStar(require("./documents"), exports);
|
|
21
|
+
var executeCommand_1 = require("./languageFeatures/executeCommand");
|
|
22
|
+
Object.defineProperty(exports, "executePluginCommand", { enumerable: true, get: function () { return executeCommand_1.executePluginCommand; } });
|
|
23
|
+
var rename_1 = require("./languageFeatures/rename");
|
|
24
|
+
Object.defineProperty(exports, "mergeWorkspaceEdits", { enumerable: true, get: function () { return rename_1.mergeWorkspaceEdits; } });
|
|
25
|
+
__exportStar(require("./plugin"), exports);
|
|
26
|
+
__exportStar(require("./types"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|