@volar/language-service 1.0.8 → 1.0.10
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/baseDocumentService.d.ts +8 -9
- package/out/baseLanguageService.d.ts +3 -5
- package/out/documentFeatures/format.js +14 -11
- package/out/documentFeatures/selectionRanges.js +24 -2
- package/out/documents.d.ts +18 -19
- package/out/languageFeatures/codeActions.js +2 -1
- package/out/languageFeatures/complete.d.ts +1 -4
- package/out/languageFeatures/complete.js +27 -28
- package/out/languageFeatures/documentSemanticTokens.d.ts +1 -1
- package/out/languageFeatures/documentSemanticTokens.js +3 -3
- package/out/languageFeatures/hover.js +2 -2
- package/out/languageFeatures/inlayHints.js +2 -1
- package/out/languageFeatures/renamePrepare.js +2 -2
- package/out/languageFeatures/validation.d.ts +1 -1
- package/out/languageFeatures/validation.js +32 -16
- package/out/types.d.ts +1 -1
- package/out/utils/common.d.ts +8 -0
- package/out/utils/common.js +53 -0
- package/out/utils/featureWorkers.d.ts +1 -1
- package/package.json +10 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LanguageModule } from '@volar/language-core';
|
|
2
|
-
import * as shared from '@volar/shared';
|
|
3
2
|
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
4
3
|
import { DocumentServiceRuntimeContext, LanguageServicePlugin, LanguageServicePluginContext } from './types';
|
|
5
4
|
import type * as _ from 'vscode-languageserver-protocol';
|
|
@@ -12,17 +11,17 @@ export declare function createDocumentServiceContext(options: {
|
|
|
12
11
|
}): DocumentServiceRuntimeContext;
|
|
13
12
|
export declare function isTsDocument(document: TextDocument): boolean;
|
|
14
13
|
export declare function createDocumentService(context: DocumentServiceRuntimeContext): {
|
|
15
|
-
format: (document:
|
|
14
|
+
format: (document: TextDocument, options: _.FormattingOptions, range?: _.Range | undefined, onTypeParams?: {
|
|
16
15
|
ch: string;
|
|
17
16
|
position: _.Position;
|
|
18
17
|
} | undefined) => Promise<_.TextEdit[] | undefined>;
|
|
19
|
-
getFoldingRanges: (document:
|
|
20
|
-
getSelectionRanges: (document:
|
|
21
|
-
findLinkedEditingRanges: (document:
|
|
22
|
-
findDocumentSymbols: (document:
|
|
23
|
-
findDocumentColors: (document:
|
|
24
|
-
getColorPresentations: (document:
|
|
25
|
-
doAutoInsert: (document:
|
|
18
|
+
getFoldingRanges: (document: TextDocument) => Promise<_.FoldingRange[] | undefined>;
|
|
19
|
+
getSelectionRanges: (document: TextDocument, positions: _.Position[]) => Promise<_.SelectionRange[] | undefined>;
|
|
20
|
+
findLinkedEditingRanges: (document: TextDocument, position: _.Position) => Promise<_.LinkedEditingRanges | undefined>;
|
|
21
|
+
findDocumentSymbols: (document: TextDocument) => Promise<_.SymbolInformation[] | undefined>;
|
|
22
|
+
findDocumentColors: (document: TextDocument) => Promise<_.ColorInformation[] | undefined>;
|
|
23
|
+
getColorPresentations: (document: TextDocument, color: _.Color, range: _.Range) => Promise<_.ColorPresentation[] | undefined>;
|
|
24
|
+
doAutoInsert: (document: TextDocument, position: _.Position, options: {
|
|
26
25
|
lastChange: {
|
|
27
26
|
range: _.Range;
|
|
28
27
|
rangeOffset: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createEmbeddedLanguageServiceHost, LanguageServiceHost } from '@volar/language-core';
|
|
2
2
|
import * as executeCommand from './languageFeatures/executeCommand';
|
|
3
3
|
import { LanguageServicePlugin, LanguageServicePluginContext, LanguageServiceRuntimeContext } from './types';
|
|
4
|
+
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
5
|
import type * as _ from 'vscode-languageserver-protocol';
|
|
5
6
|
export type LanguageService = ReturnType<typeof createLanguageService>;
|
|
6
7
|
export declare function createLanguageServiceContext(options: {
|
|
@@ -20,12 +21,9 @@ export declare function createLanguageService(context: LanguageServiceRuntimeCon
|
|
|
20
21
|
prepareRename: (uri: string, position: _.Position) => Promise<NonNullable<_.Range | _.ResponseError<void> | null | undefined> | undefined>;
|
|
21
22
|
doRename: (uri: string, position: _.Position, newName: string) => Promise<_.WorkspaceEdit | undefined>;
|
|
22
23
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<_.WorkspaceEdit | undefined>;
|
|
23
|
-
getSemanticTokens: (uri: string, range: _.Range | undefined,
|
|
24
|
+
getSemanticTokens: (uri: string, range: _.Range | undefined, legend: _.SemanticTokensLegend, cancelToken: _.CancellationToken, reportProgress?: ((tokens: import("./types").SemanticToken[]) => void) | undefined) => Promise<import("./types").SemanticToken[] | undefined> | undefined;
|
|
24
25
|
doHover: (uri: string, position: _.Position) => Promise<_.Hover | undefined>;
|
|
25
|
-
doComplete: (uri: string, position: _.Position, completionContext?: _.CompletionContext | undefined) => Promise<
|
|
26
|
-
isIncomplete: boolean;
|
|
27
|
-
items: _.CompletionItem[];
|
|
28
|
-
}>;
|
|
26
|
+
doComplete: (uri: string, position: _.Position, completionContext?: _.CompletionContext | undefined) => Promise<_.CompletionList>;
|
|
29
27
|
doCodeActions: (uri: string, range: _.Range, codeActionContext: _.CodeActionContext) => Promise<_.CodeAction[] | undefined>;
|
|
30
28
|
doCodeActionResolve: (item: _.CodeAction) => Promise<_.CodeAction>;
|
|
31
29
|
doCompletionResolve: (item: _.CompletionItem) => Promise<_.CompletionItem>;
|
|
@@ -167,20 +167,23 @@ function register(context) {
|
|
|
167
167
|
continue;
|
|
168
168
|
if (!edits.length)
|
|
169
169
|
return edits;
|
|
170
|
-
let newText = vscode_languageserver_textdocument_1.TextDocument.applyEdits(formatDocument, edits);
|
|
171
170
|
if (initialIndentBracket) {
|
|
171
|
+
let newText = vscode_languageserver_textdocument_1.TextDocument.applyEdits(formatDocument, edits);
|
|
172
172
|
newText = newText.substring(newText.indexOf(initialIndentBracket[0]) + initialIndentBracket[0].length, newText.lastIndexOf(initialIndentBracket[1]));
|
|
173
|
+
if (newText === document.getText()) {
|
|
174
|
+
edits = [];
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
edits = [{
|
|
178
|
+
newText,
|
|
179
|
+
range: {
|
|
180
|
+
start: document.positionAt(0),
|
|
181
|
+
end: document.positionAt(document.getText().length),
|
|
182
|
+
},
|
|
183
|
+
}];
|
|
184
|
+
}
|
|
173
185
|
}
|
|
174
|
-
|
|
175
|
-
return [];
|
|
176
|
-
}
|
|
177
|
-
return [{
|
|
178
|
-
range: {
|
|
179
|
-
start: document.positionAt(0),
|
|
180
|
-
end: document.positionAt(document.getText().length),
|
|
181
|
-
},
|
|
182
|
-
newText,
|
|
183
|
-
}];
|
|
186
|
+
return edits;
|
|
184
187
|
}
|
|
185
188
|
});
|
|
186
189
|
}
|
|
@@ -5,9 +5,31 @@ const transforms_1 = require("@volar/transforms");
|
|
|
5
5
|
const shared = require("@volar/shared");
|
|
6
6
|
function register(context) {
|
|
7
7
|
return (document, positions) => {
|
|
8
|
-
return (0, featureWorkers_1.documentArgFeatureWorker)(context, document, positions, sourceMap => !!sourceMap.embeddedFile.capabilities.
|
|
8
|
+
return (0, featureWorkers_1.documentArgFeatureWorker)(context, document, positions, sourceMap => !!sourceMap.embeddedFile.capabilities.documentFormatting, (positions, sourceMap) => {
|
|
9
|
+
const result = positions
|
|
9
10
|
.map(position => sourceMap.toGeneratedPosition(position))
|
|
10
|
-
.filter(shared.notEmpty)
|
|
11
|
+
.filter(shared.notEmpty);
|
|
12
|
+
if (result.length) {
|
|
13
|
+
return [result];
|
|
14
|
+
}
|
|
15
|
+
return [];
|
|
16
|
+
}, (plugin, document, positions) => { var _a; return (_a = plugin.getSelectionRanges) === null || _a === void 0 ? void 0 : _a.call(plugin, document, positions); }, (item, sourceMap) => (0, transforms_1.transformSelectionRanges)(item, range => sourceMap.toSourceRange(range)), results => {
|
|
17
|
+
for (let i = 0; i < results[0].length; i++) {
|
|
18
|
+
const first = results[0][i];
|
|
19
|
+
let lastParent = first;
|
|
20
|
+
while (lastParent.parent) {
|
|
21
|
+
lastParent = lastParent.parent;
|
|
22
|
+
}
|
|
23
|
+
for (let j = 1; j < results.length; j++) {
|
|
24
|
+
const other = results[j][i];
|
|
25
|
+
lastParent.parent = other;
|
|
26
|
+
while (lastParent.parent) {
|
|
27
|
+
lastParent = lastParent.parent;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return results[0];
|
|
32
|
+
});
|
|
11
33
|
};
|
|
12
34
|
}
|
|
13
35
|
exports.register = register;
|
package/out/documents.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentRegistry, EmbeddedFile, PositionCapabilities, SourceFile, TeleportMappingData } from '@volar/language-core';
|
|
2
|
-
import * as shared from '@volar/shared';
|
|
3
2
|
import { Mapping, SourceMapBase } from '@volar/source-map';
|
|
4
3
|
import * as vscode from 'vscode-languageserver-protocol';
|
|
5
4
|
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
@@ -16,15 +15,15 @@ export declare class SourceMap<Data = undefined> extends SourceMapBase<Data> {
|
|
|
16
15
|
toSourceRanges(range: vscode.Range, filter?: (data: Data) => boolean): Generator<vscode.Range, void, unknown>;
|
|
17
16
|
toGeneratedRanges(range: vscode.Range, filter?: (data: Data) => boolean): Generator<vscode.Range, void, unknown>;
|
|
18
17
|
protected toRanges(range: vscode.Range, filter: (data: Data) => boolean, api: 'toSourcePositionsBase' | 'toGeneratedPositionsBase', api2: 'matchSourcePosition' | 'matchGeneratedPosition'): Generator<vscode.Range, void, unknown>;
|
|
19
|
-
toSourcePosition(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'):
|
|
20
|
-
toGeneratedPosition(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'):
|
|
21
|
-
toSourcePositions(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<
|
|
22
|
-
toGeneratedPositions(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<
|
|
23
|
-
toSourcePositionsBase(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<readonly [
|
|
24
|
-
toGeneratedPositionsBase(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<readonly [
|
|
25
|
-
protected toPositions(position: vscode.Position, filter: (data: Data) => boolean, fromDoc: TextDocument, toDoc: TextDocument, from: 'sourceRange' | 'generatedRange', to: 'sourceRange' | 'generatedRange', baseOffset: 'left' | 'right'): Generator<readonly [
|
|
26
|
-
protected matchSourcePosition(position: vscode.Position, mapping: Mapping, baseOffset: 'left' | 'right'):
|
|
27
|
-
protected matchGeneratedPosition(position: vscode.Position, mapping: Mapping, baseOffset: 'left' | 'right'):
|
|
18
|
+
toSourcePosition(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): import("vscode-languageserver-textdocument").Position | undefined;
|
|
19
|
+
toGeneratedPosition(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): import("vscode-languageserver-textdocument").Position | undefined;
|
|
20
|
+
toSourcePositions(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<import("vscode-languageserver-textdocument").Position, void, unknown>;
|
|
21
|
+
toGeneratedPositions(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<import("vscode-languageserver-textdocument").Position, void, unknown>;
|
|
22
|
+
toSourcePositionsBase(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<readonly [import("vscode-languageserver-textdocument").Position, Mapping<Data>], void, unknown>;
|
|
23
|
+
toGeneratedPositionsBase(position: vscode.Position, filter?: (data: Data) => boolean, baseOffset?: 'left' | 'right'): Generator<readonly [import("vscode-languageserver-textdocument").Position, Mapping<Data>], void, unknown>;
|
|
24
|
+
protected toPositions(position: vscode.Position, filter: (data: Data) => boolean, fromDoc: TextDocument, toDoc: TextDocument, from: 'sourceRange' | 'generatedRange', to: 'sourceRange' | 'generatedRange', baseOffset: 'left' | 'right'): Generator<readonly [import("vscode-languageserver-textdocument").Position, Mapping<Data>], void, unknown>;
|
|
25
|
+
protected matchSourcePosition(position: vscode.Position, mapping: Mapping, baseOffset: 'left' | 'right'): import("vscode-languageserver-textdocument").Position | undefined;
|
|
26
|
+
protected matchGeneratedPosition(position: vscode.Position, mapping: Mapping, baseOffset: 'left' | 'right'): import("vscode-languageserver-textdocument").Position | undefined;
|
|
28
27
|
}
|
|
29
28
|
export declare class EmbeddedDocumentSourceMap extends SourceMap<PositionCapabilities> {
|
|
30
29
|
embeddedFile: EmbeddedFile;
|
|
@@ -36,35 +35,35 @@ export declare class TeleportSourceMap extends SourceMap<TeleportMappingData> {
|
|
|
36
35
|
embeddedFile: EmbeddedFile;
|
|
37
36
|
document: TextDocument;
|
|
38
37
|
constructor(embeddedFile: EmbeddedFile, document: TextDocument, mappings: Mapping<TeleportMappingData>[]);
|
|
39
|
-
findTeleports(start: vscode.Position): Generator<readonly [
|
|
38
|
+
findTeleports(start: vscode.Position): Generator<readonly [import("vscode-languageserver-textdocument").Position, import("@volar/language-core").TeleportCapabilities], void, unknown>;
|
|
40
39
|
}
|
|
41
40
|
export declare function parseSourceFileDocuments(rootUri: URI, mapper: DocumentRegistry): {
|
|
42
41
|
getAll: () => {
|
|
43
42
|
uri: string;
|
|
44
43
|
file: SourceFile;
|
|
45
44
|
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
46
|
-
getEmbeddedDocument: (embeddedFile: SourceFile) =>
|
|
45
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => TextDocument;
|
|
47
46
|
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
48
47
|
getTeleports: () => TeleportSourceMap[];
|
|
49
|
-
getDocument: () =>
|
|
48
|
+
getDocument: () => TextDocument;
|
|
50
49
|
}[];
|
|
51
50
|
get: (uri: string) => {
|
|
52
51
|
uri: string;
|
|
53
52
|
file: SourceFile;
|
|
54
53
|
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
55
|
-
getEmbeddedDocument: (embeddedFile: SourceFile) =>
|
|
54
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => TextDocument;
|
|
56
55
|
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
57
56
|
getTeleports: () => TeleportSourceMap[];
|
|
58
|
-
getDocument: () =>
|
|
57
|
+
getDocument: () => TextDocument;
|
|
59
58
|
} | undefined;
|
|
60
59
|
fromEmbeddedDocument: (document: TextDocument) => {
|
|
61
60
|
uri: string;
|
|
62
61
|
file: SourceFile;
|
|
63
62
|
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
64
|
-
getEmbeddedDocument: (embeddedFile: SourceFile) =>
|
|
63
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => TextDocument;
|
|
65
64
|
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
66
65
|
getTeleports: () => TeleportSourceMap[];
|
|
67
|
-
getDocument: () =>
|
|
66
|
+
getDocument: () => TextDocument;
|
|
68
67
|
} | undefined;
|
|
69
68
|
sourceMapFromEmbeddedDocumentUri: (uri: string) => EmbeddedDocumentSourceMap | undefined;
|
|
70
69
|
teleportfromEmbeddedDocumentUri: (uri: string) => TeleportSourceMap | undefined;
|
|
@@ -73,8 +72,8 @@ export declare function parseSourceFileDocument(rootUri: URI, sourceFile: Source
|
|
|
73
72
|
uri: string;
|
|
74
73
|
file: SourceFile;
|
|
75
74
|
getSourceMap: (embedded: EmbeddedFile) => EmbeddedDocumentSourceMap;
|
|
76
|
-
getEmbeddedDocument: (embeddedFile: SourceFile) =>
|
|
75
|
+
getEmbeddedDocument: (embeddedFile: SourceFile) => TextDocument;
|
|
77
76
|
getSourceMaps: () => EmbeddedDocumentSourceMap[];
|
|
78
77
|
getTeleports: () => TeleportSourceMap[];
|
|
79
|
-
getDocument: () =>
|
|
78
|
+
getDocument: () => TextDocument;
|
|
80
79
|
};
|
|
@@ -12,6 +12,7 @@ exports.register = void 0;
|
|
|
12
12
|
const shared = require("@volar/shared");
|
|
13
13
|
const transforms_1 = require("@volar/transforms");
|
|
14
14
|
const vscode = require("vscode-languageserver-protocol");
|
|
15
|
+
const common_1 = require("../utils/common");
|
|
15
16
|
const dedupe = require("../utils/dedupe");
|
|
16
17
|
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
17
18
|
const rename_1 = require("./rename");
|
|
@@ -35,7 +36,7 @@ function register(context) {
|
|
|
35
36
|
let minStart;
|
|
36
37
|
let maxEnd;
|
|
37
38
|
for (const mapping of sourceMap.mappings) {
|
|
38
|
-
const overlapRange =
|
|
39
|
+
const overlapRange = (0, common_1.getOverlapRange)(offsetRange.start, offsetRange.end, mapping.sourceRange[0], mapping.sourceRange[1]);
|
|
39
40
|
if (overlapRange) {
|
|
40
41
|
const start = (_a = sourceMap.toGeneratedOffset(overlapRange.start)) === null || _a === void 0 ? void 0 : _a[0];
|
|
41
42
|
const end = (_b = sourceMap.toGeneratedOffset(overlapRange.end)) === null || _b === void 0 ? void 0 : _b[0];
|
|
@@ -8,7 +8,4 @@ export interface PluginCompletionData {
|
|
|
8
8
|
embeddedDocumentUri: string;
|
|
9
9
|
} | undefined;
|
|
10
10
|
}
|
|
11
|
-
export declare function register(context: LanguageServiceRuntimeContext): (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext) => Promise<
|
|
12
|
-
isIncomplete: boolean;
|
|
13
|
-
items: vscode.CompletionItem[];
|
|
14
|
-
}>;
|
|
11
|
+
export declare function register(context: LanguageServiceRuntimeContext): (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext) => Promise<vscode.CompletionList>;
|
|
@@ -34,16 +34,14 @@ function register(context) {
|
|
|
34
34
|
cacheData.list.isIncomplete = false;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
|
-
cacheData.list =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} });
|
|
46
|
-
}) });
|
|
37
|
+
cacheData.list = (0, transforms_1.transformCompletionList)(embeddedCompletionList, range => sourceMap.toSourceRange(range), (newItem, oldItem) => newItem.data = {
|
|
38
|
+
uri,
|
|
39
|
+
originalItem: oldItem,
|
|
40
|
+
pluginId: context.plugins.indexOf(cacheData.plugin),
|
|
41
|
+
sourceMap: {
|
|
42
|
+
embeddedDocumentUri: sourceMap.mappedDocument.uri,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
47
|
else if (document = context.getTextDocument(uri)) {
|
|
@@ -54,14 +52,12 @@ function register(context) {
|
|
|
54
52
|
cacheData.list.isIncomplete = false;
|
|
55
53
|
continue;
|
|
56
54
|
}
|
|
57
|
-
cacheData.list = Object.assign(Object.assign({}, completionList), { items: completionList.items.map(item => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} });
|
|
64
|
-
}) });
|
|
55
|
+
cacheData.list = Object.assign(Object.assign({}, completionList), { items: completionList.items.map(item => (Object.assign(Object.assign({}, item), { data: {
|
|
56
|
+
uri,
|
|
57
|
+
originalItem: item,
|
|
58
|
+
pluginId: context.plugins.indexOf(cacheData.plugin),
|
|
59
|
+
sourceMap: undefined,
|
|
60
|
+
} }))) });
|
|
65
61
|
}
|
|
66
62
|
}
|
|
67
63
|
}
|
|
@@ -99,19 +95,20 @@ function register(context) {
|
|
|
99
95
|
const embeddedCompletionList = yield plugin.complete.on(sourceMap.mappedDocument, mapped, completionContext);
|
|
100
96
|
if (!embeddedCompletionList || !embeddedCompletionList.items.length)
|
|
101
97
|
continue;
|
|
98
|
+
if (typeof (_data === null || _data === void 0 ? void 0 : _data.completion) === 'object' && _data.completion.autoImportOnly) {
|
|
99
|
+
embeddedCompletionList.items = embeddedCompletionList.items.filter(item => !!item.labelDetails);
|
|
100
|
+
}
|
|
102
101
|
if (!isAdditional) {
|
|
103
102
|
cache.mainCompletion = { documentUri: sourceMap.mappedDocument.uri };
|
|
104
103
|
}
|
|
105
|
-
const completionList =
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
} });
|
|
114
|
-
}) });
|
|
104
|
+
const completionList = (0, transforms_1.transformCompletionList)(embeddedCompletionList, range => sourceMap.toSourceRange(range), (newItem, oldItem) => newItem.data = {
|
|
105
|
+
uri,
|
|
106
|
+
originalItem: oldItem,
|
|
107
|
+
pluginId: context.plugins.indexOf(plugin),
|
|
108
|
+
sourceMap: {
|
|
109
|
+
embeddedDocumentUri: sourceMap.mappedDocument.uri,
|
|
110
|
+
}
|
|
111
|
+
});
|
|
115
112
|
cache.data.push({
|
|
116
113
|
sourceMap: {
|
|
117
114
|
embeddedDocumentUri: sourceMap.mappedDocument.uri,
|
|
@@ -166,8 +163,10 @@ function register(context) {
|
|
|
166
163
|
return (((_a = b.complete) === null || _a === void 0 ? void 0 : _a.isAdditional) ? -1 : 1) - (((_b = a.complete) === null || _b === void 0 ? void 0 : _b.isAdditional) ? -1 : 1);
|
|
167
164
|
}
|
|
168
165
|
function combineCompletionList(lists) {
|
|
166
|
+
var _a;
|
|
169
167
|
return {
|
|
170
168
|
isIncomplete: lists.some(list => list.isIncomplete),
|
|
169
|
+
itemDefaults: (_a = lists.find(list => list.itemDefaults)) === null || _a === void 0 ? void 0 : _a.itemDefaults,
|
|
171
170
|
items: lists.map(list => list.items).flat().filter((result) => {
|
|
172
171
|
var _a;
|
|
173
172
|
return result.label.indexOf('__VLS_') === -1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as vscode from 'vscode-languageserver-protocol';
|
|
2
2
|
import { SemanticToken } from '@volar/language-service';
|
|
3
3
|
import type { LanguageServiceRuntimeContext } from '../types';
|
|
4
|
-
export declare function register(context: LanguageServiceRuntimeContext): (uri: string, range: vscode.Range | undefined,
|
|
4
|
+
export declare function register(context: LanguageServiceRuntimeContext): (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, cancelToken: vscode.CancellationToken, reportProgress?: ((tokens: SemanticToken[]) => void) | undefined) => Promise<SemanticToken[] | undefined> | undefined;
|
|
@@ -4,7 +4,7 @@ const shared = require("@volar/shared");
|
|
|
4
4
|
const vscode = require("vscode-languageserver-protocol");
|
|
5
5
|
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
6
6
|
function register(context) {
|
|
7
|
-
return (uri, range,
|
|
7
|
+
return (uri, range, legend, cancelToken, reportProgress) => {
|
|
8
8
|
const document = context.getTextDocument(uri);
|
|
9
9
|
if (!document)
|
|
10
10
|
return;
|
|
@@ -16,7 +16,7 @@ function register(context) {
|
|
|
16
16
|
document.getText().length,
|
|
17
17
|
];
|
|
18
18
|
return (0, featureWorkers_1.languageFeatureWorker)(context, uri, offsetRange, function* (offsetRange, sourceMap) {
|
|
19
|
-
if (
|
|
19
|
+
if (cancelToken === null || cancelToken === void 0 ? void 0 : cancelToken.isCancellationRequested)
|
|
20
20
|
return;
|
|
21
21
|
let range;
|
|
22
22
|
for (const mapping of sourceMap.mappings) {
|
|
@@ -37,7 +37,7 @@ function register(context) {
|
|
|
37
37
|
}
|
|
38
38
|
}, (plugin, document, offsetRange) => {
|
|
39
39
|
var _a;
|
|
40
|
-
return (_a = plugin.findDocumentSemanticTokens) === null || _a === void 0 ? void 0 : _a.call(plugin, document, vscode.Range.create(document.positionAt(offsetRange[0]), document.positionAt(offsetRange[1])));
|
|
40
|
+
return (_a = plugin.findDocumentSemanticTokens) === null || _a === void 0 ? void 0 : _a.call(plugin, document, vscode.Range.create(document.positionAt(offsetRange[0]), document.positionAt(offsetRange[1])), legend);
|
|
41
41
|
}, (tokens, sourceMap) => tokens.map(_token => {
|
|
42
42
|
if (!sourceMap)
|
|
43
43
|
return _token;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.register = void 0;
|
|
3
3
|
const vscode = require("vscode-languageserver-protocol");
|
|
4
|
-
const shared = require("@volar/shared");
|
|
5
4
|
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
5
|
+
const common_1 = require("../utils/common");
|
|
6
6
|
function register(context) {
|
|
7
7
|
return (uri, position) => {
|
|
8
8
|
return (0, featureWorkers_1.languageFeatureWorker)(context, uri, position, (position, sourceMap) => sourceMap.toGeneratedPositions(position, data => !!data.hover), (plugin, document, position) => { var _a; return (_a = plugin.doHover) === null || _a === void 0 ? void 0 : _a.call(plugin, document, position); }, (item, sourceMap) => {
|
|
@@ -17,7 +17,7 @@ function register(context) {
|
|
|
17
17
|
var _a, _b;
|
|
18
18
|
return ({
|
|
19
19
|
contents: hovers.map(getHoverTexts).flat(),
|
|
20
|
-
range: (_b = (_a = hovers.find(hover => hover.range &&
|
|
20
|
+
range: (_b = (_a = hovers.find(hover => hover.range && (0, common_1.isInsideRange)(hover.range, { start: position, end: position }))) === null || _a === void 0 ? void 0 : _a.range) !== null && _b !== void 0 ? _b : hovers[0].range,
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
};
|
|
@@ -12,6 +12,7 @@ exports.register = void 0;
|
|
|
12
12
|
const shared = require("@volar/shared");
|
|
13
13
|
const transforms_1 = require("@volar/transforms");
|
|
14
14
|
const vscode = require("vscode-languageserver-protocol");
|
|
15
|
+
const common_1 = require("../utils/common");
|
|
15
16
|
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
16
17
|
function register(context) {
|
|
17
18
|
return (uri, range) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -32,7 +33,7 @@ function register(context) {
|
|
|
32
33
|
let minStart;
|
|
33
34
|
let maxEnd;
|
|
34
35
|
for (const mapping of sourceMap.mappings) {
|
|
35
|
-
const overlapRange =
|
|
36
|
+
const overlapRange = (0, common_1.getOverlapRange)(offsetRange.start, offsetRange.end, mapping.sourceRange[0], mapping.sourceRange[1]);
|
|
36
37
|
if (overlapRange) {
|
|
37
38
|
const start = (_a = sourceMap.toGeneratedOffset(overlapRange.start)) === null || _a === void 0 ? void 0 : _a[0];
|
|
38
39
|
const end = (_b = sourceMap.toGeneratedOffset(overlapRange.end)) === null || _b === void 0 ? void 0 : _b[0];
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.register = void 0;
|
|
12
|
-
const shared_1 = require("@volar/shared");
|
|
13
12
|
const vscode = require("vscode-languageserver-protocol");
|
|
13
|
+
const common_1 = require("../utils/common");
|
|
14
14
|
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
15
15
|
// https://github.com/microsoft/vscode/blob/dcf27391b7dd7c1cece483806af75b4f87188e70/extensions/html/language-configuration.json#L35
|
|
16
16
|
const htmlWordPatterns = /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\\"\,\.\<\>\/\s]+)/g;
|
|
@@ -32,7 +32,7 @@ function register(context) {
|
|
|
32
32
|
}
|
|
33
33
|
return prepares[0];
|
|
34
34
|
});
|
|
35
|
-
return result !== null && result !== void 0 ? result : (document ? (0,
|
|
35
|
+
return result !== null && result !== void 0 ? result : (document ? (0, common_1.getWordRange)(htmlWordPatterns, position, document) : undefined);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
exports.register = register;
|
|
@@ -3,5 +3,5 @@ import type { LanguageServiceRuntimeContext } from '../types';
|
|
|
3
3
|
export declare function updateRange(range: vscode.Range, change: {
|
|
4
4
|
range: vscode.Range;
|
|
5
5
|
newEnd: vscode.Position;
|
|
6
|
-
}): vscode.Range;
|
|
6
|
+
}): vscode.Range | undefined;
|
|
7
7
|
export declare function register(context: LanguageServiceRuntimeContext): (uri: string, token?: vscode.CancellationToken, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -14,8 +14,12 @@ const vscode_languageserver_textdocument_1 = require("vscode-languageserver-text
|
|
|
14
14
|
const dedupe = require("../utils/dedupe");
|
|
15
15
|
const featureWorkers_1 = require("../utils/featureWorkers");
|
|
16
16
|
function updateRange(range, change) {
|
|
17
|
-
updatePosition(range.start, change, false)
|
|
18
|
-
|
|
17
|
+
if (!updatePosition(range.start, change, false)) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (!updatePosition(range.end, change, true)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
19
23
|
if (range.end.line === range.start.line && range.end.character <= range.start.character) {
|
|
20
24
|
range.end.character++;
|
|
21
25
|
}
|
|
@@ -26,13 +30,16 @@ function updatePosition(position, change, isEnd) {
|
|
|
26
30
|
if (change.range.end.line > position.line) {
|
|
27
31
|
if (change.newEnd.line > position.line) {
|
|
28
32
|
// No change
|
|
33
|
+
return true;
|
|
29
34
|
}
|
|
30
35
|
else if (change.newEnd.line === position.line) {
|
|
31
36
|
position.character = Math.min(position.character, change.newEnd.character);
|
|
37
|
+
return true;
|
|
32
38
|
}
|
|
33
39
|
else if (change.newEnd.line < position.line) {
|
|
34
40
|
position.line = change.newEnd.line;
|
|
35
41
|
position.character = change.newEnd.character;
|
|
42
|
+
return true;
|
|
36
43
|
}
|
|
37
44
|
}
|
|
38
45
|
else if (change.range.end.line === position.line) {
|
|
@@ -53,25 +60,30 @@ function updatePosition(position, change, isEnd) {
|
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
}
|
|
63
|
+
return true;
|
|
56
64
|
}
|
|
57
65
|
else {
|
|
58
|
-
if (change.newEnd.line
|
|
59
|
-
if (change.newEnd.line < change.range.end.line) {
|
|
60
|
-
position.line = change.newEnd.line;
|
|
61
|
-
position.character = change.newEnd.character;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
66
|
+
if (change.newEnd.line === change.range.end.line) {
|
|
65
67
|
const offset = change.range.end.character - position.character;
|
|
66
68
|
if (-characterDiff > offset) {
|
|
67
69
|
position.character += characterDiff + offset;
|
|
68
70
|
}
|
|
69
71
|
}
|
|
72
|
+
else if (change.newEnd.line < change.range.end.line) {
|
|
73
|
+
position.line = change.newEnd.line;
|
|
74
|
+
position.character = change.newEnd.character;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
// No change
|
|
78
|
+
}
|
|
79
|
+
return true;
|
|
70
80
|
}
|
|
71
81
|
}
|
|
72
82
|
else if (change.range.end.line < position.line) {
|
|
73
83
|
position.line += change.newEnd.line - change.range.end.line;
|
|
84
|
+
return true;
|
|
74
85
|
}
|
|
86
|
+
return false;
|
|
75
87
|
}
|
|
76
88
|
function register(context) {
|
|
77
89
|
const responseCache = new Map();
|
|
@@ -91,11 +103,14 @@ function register(context) {
|
|
|
91
103
|
}).get(uri);
|
|
92
104
|
const newSnapshot = context.host.getScriptSnapshot(shared.getPathOfUri(uri));
|
|
93
105
|
const newDocument = newSnapshot ? vscode_languageserver_textdocument_1.TextDocument.create('file://a.txt', 'txt', 0, newSnapshot.getText(0, newSnapshot.getLength())) : undefined;
|
|
106
|
+
let failedToUpdateRange = false;
|
|
107
|
+
let errorsUpdated = false;
|
|
108
|
+
let lastCheckCancelAt = 0;
|
|
94
109
|
for (const _cache of Object.values(cache)) {
|
|
95
110
|
const oldSnapshot = _cache.snapshot;
|
|
96
111
|
const change = oldSnapshot ? newSnapshot === null || newSnapshot === void 0 ? void 0 : newSnapshot.getChangeRange(oldSnapshot) : undefined;
|
|
97
112
|
_cache.snapshot = newSnapshot;
|
|
98
|
-
if (newDocument && oldSnapshot && newSnapshot && change) {
|
|
113
|
+
if (!failedToUpdateRange && newDocument && oldSnapshot && newSnapshot && change) {
|
|
99
114
|
const oldDocument = vscode_languageserver_textdocument_1.TextDocument.create('file://a.txt', 'txt', 0, oldSnapshot.getText(0, oldSnapshot.getLength()));
|
|
100
115
|
const changeRange = {
|
|
101
116
|
range: {
|
|
@@ -105,12 +120,13 @@ function register(context) {
|
|
|
105
120
|
newEnd: newDocument.positionAt(change.span.start + change.newLength),
|
|
106
121
|
};
|
|
107
122
|
for (const error of _cache.errors) {
|
|
108
|
-
updateRange(error.range, changeRange)
|
|
123
|
+
if (!updateRange(error.range, changeRange)) {
|
|
124
|
+
failedToUpdateRange = true;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
109
127
|
}
|
|
110
128
|
}
|
|
111
129
|
}
|
|
112
|
-
let shouldSend = false;
|
|
113
|
-
let lastCheckCancelAt = 0;
|
|
114
130
|
yield worker('onSyntactic', scriptTsCache_syntactic, cache.tsSyntactic);
|
|
115
131
|
doResponse();
|
|
116
132
|
yield worker('onSuggestion', scriptTsCache_suggestion, cache.tsSuggestion);
|
|
@@ -120,9 +136,9 @@ function register(context) {
|
|
|
120
136
|
yield worker('onDeclaration', scriptTsCache_declaration, cache.tsDeclaration);
|
|
121
137
|
return getErrors();
|
|
122
138
|
function doResponse() {
|
|
123
|
-
if (
|
|
139
|
+
if (errorsUpdated && !failedToUpdateRange) {
|
|
124
140
|
response === null || response === void 0 ? void 0 : response(getErrors());
|
|
125
|
-
|
|
141
|
+
errorsUpdated = false;
|
|
126
142
|
}
|
|
127
143
|
}
|
|
128
144
|
function getErrors() {
|
|
@@ -159,7 +175,7 @@ function register(context) {
|
|
|
159
175
|
}
|
|
160
176
|
}
|
|
161
177
|
const errors = yield ((_e = (_d = plugin.validation) === null || _d === void 0 ? void 0 : _d[mode]) === null || _e === void 0 ? void 0 : _e.call(_d, document));
|
|
162
|
-
|
|
178
|
+
errorsUpdated = true;
|
|
163
179
|
pluginCache.set(document.uri, {
|
|
164
180
|
documentVersion: document.version,
|
|
165
181
|
errors,
|
package/out/types.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export interface LanguageServicePlugin {
|
|
|
78
78
|
findDocumentHighlights?(document: TextDocument, position: vscode.Position): NullableResult<vscode.DocumentHighlight[]>;
|
|
79
79
|
findDocumentLinks?(document: TextDocument): NullableResult<vscode.DocumentLink[]>;
|
|
80
80
|
findDocumentSymbols?(document: TextDocument): NullableResult<vscode.SymbolInformation[]>;
|
|
81
|
-
findDocumentSemanticTokens?(document: TextDocument, range: vscode.Range): NullableResult<SemanticToken[]>;
|
|
81
|
+
findDocumentSemanticTokens?(document: TextDocument, range: vscode.Range, legend: vscode.SemanticTokensLegend): NullableResult<SemanticToken[]>;
|
|
82
82
|
findWorkspaceSymbols?(query: string): NullableResult<vscode.SymbolInformation[]>;
|
|
83
83
|
doExecuteCommand?(command: string, args: any[], context: ExecuteCommandContext): NotNullableResult<void>;
|
|
84
84
|
findDocumentColors?(document: TextDocument): NullableResult<vscode.ColorInformation[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as vscode from 'vscode-languageserver-protocol';
|
|
2
|
+
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
3
|
+
export declare function getOverlapRange(range1Start: number, range1End: number, range2Start: number, range2End: number): {
|
|
4
|
+
start: number;
|
|
5
|
+
end: number;
|
|
6
|
+
} | undefined;
|
|
7
|
+
export declare function isInsideRange(parent: vscode.Range, child: vscode.Range): boolean;
|
|
8
|
+
export declare function getWordRange(wordPattern: RegExp, position: vscode.Position, document: TextDocument): vscode.Range | undefined;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.getWordRange = exports.isInsideRange = exports.getOverlapRange = void 0;
|
|
3
|
+
function getOverlapRange(range1Start, range1End, range2Start, range2End) {
|
|
4
|
+
const start = Math.max(range1Start, range2Start);
|
|
5
|
+
const end = Math.min(range1End, range2End);
|
|
6
|
+
if (start > end)
|
|
7
|
+
return undefined;
|
|
8
|
+
return {
|
|
9
|
+
start,
|
|
10
|
+
end,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
exports.getOverlapRange = getOverlapRange;
|
|
14
|
+
function isInsideRange(parent, child) {
|
|
15
|
+
if (child.start.line < parent.start.line)
|
|
16
|
+
return false;
|
|
17
|
+
if (child.end.line > parent.end.line)
|
|
18
|
+
return false;
|
|
19
|
+
if (child.start.line === parent.start.line && child.start.character < parent.start.character)
|
|
20
|
+
return false;
|
|
21
|
+
if (child.end.line === parent.end.line && child.end.character > parent.end.character)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.isInsideRange = isInsideRange;
|
|
26
|
+
function getWordRange(wordPattern, position, document) {
|
|
27
|
+
const lineStart = {
|
|
28
|
+
line: position.line,
|
|
29
|
+
character: 0,
|
|
30
|
+
};
|
|
31
|
+
const lineEnd = {
|
|
32
|
+
line: position.line + 1,
|
|
33
|
+
character: 0,
|
|
34
|
+
};
|
|
35
|
+
const offset = document.offsetAt(position);
|
|
36
|
+
const lineStartOffset = document.offsetAt(lineStart);
|
|
37
|
+
const lineText = document.getText({ start: lineStart, end: lineEnd });
|
|
38
|
+
for (const match of lineText.matchAll(wordPattern)) {
|
|
39
|
+
if (match.index === undefined)
|
|
40
|
+
continue;
|
|
41
|
+
const matchStart = match.index + lineStartOffset;
|
|
42
|
+
const matchEnd = matchStart + match[0].length;
|
|
43
|
+
if (offset >= matchStart && offset <= matchEnd) {
|
|
44
|
+
return {
|
|
45
|
+
start: document.positionAt(matchStart),
|
|
46
|
+
end: document.positionAt(matchEnd),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
exports.getWordRange = getWordRange;
|
|
53
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -3,5 +3,5 @@ import type { DocumentServiceRuntimeContext, LanguageServiceRuntimeContext } fro
|
|
|
3
3
|
import { LanguageServicePlugin } from '@volar/language-service';
|
|
4
4
|
import { EmbeddedDocumentSourceMap, SourceFileDocument } from '../documents';
|
|
5
5
|
export declare function documentFeatureWorker<T>(context: DocumentServiceRuntimeContext, document: TextDocument, isValidSourceMap: (sourceMap: EmbeddedDocumentSourceMap) => boolean, worker: (plugin: LanguageServicePlugin, document: TextDocument) => T, transform: (result: NonNullable<Awaited<T>>, sourceMap: EmbeddedDocumentSourceMap) => T | undefined, combineResult?: (results: NonNullable<Awaited<T>>[]) => NonNullable<Awaited<T>>): Promise<NonNullable<Awaited<T>> | undefined>;
|
|
6
|
-
export declare function documentArgFeatureWorker<T, K>(context: DocumentServiceRuntimeContext, document: TextDocument, arg: K, isValidSourceMap: (sourceMap: EmbeddedDocumentSourceMap) => boolean, transformArg: (arg: K, sourceMap: EmbeddedDocumentSourceMap) => Generator<K> | [
|
|
6
|
+
export declare function documentArgFeatureWorker<T, K>(context: DocumentServiceRuntimeContext, document: TextDocument, arg: K, isValidSourceMap: (sourceMap: EmbeddedDocumentSourceMap) => boolean, transformArg: (arg: K, sourceMap: EmbeddedDocumentSourceMap) => Generator<K> | K[], worker: (plugin: LanguageServicePlugin, document: TextDocument, arg: K) => T, transform: (result: NonNullable<Awaited<T>>, sourceMap: EmbeddedDocumentSourceMap) => T | undefined, combineResult?: (results: NonNullable<Awaited<T>>[]) => NonNullable<Awaited<T>>): Promise<NonNullable<Awaited<T>> | undefined>;
|
|
7
7
|
export declare function languageFeatureWorker<T, K>(context: LanguageServiceRuntimeContext, uri: string, arg: K, transformArg: (arg: K, sourceMap: EmbeddedDocumentSourceMap) => Generator<K> | K[], worker: (plugin: LanguageServicePlugin, document: TextDocument, arg: K, sourceMap: EmbeddedDocumentSourceMap | undefined, vueDocument: SourceFileDocument | undefined) => T, transform: (result: NonNullable<Awaited<T>>, sourceMap: EmbeddedDocumentSourceMap | undefined) => Awaited<T> | undefined, combineResult?: (results: NonNullable<Awaited<T>>[]) => NonNullable<Awaited<T>>, reportProgress?: (result: NonNullable<Awaited<T>>) => void): Promise<NonNullable<Awaited<T>> | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-service",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"directory": "packages/language-service"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.0.
|
|
17
|
-
"@volar/shared": "1.0.
|
|
18
|
-
"@volar/source-map": "1.0.
|
|
19
|
-
"@volar/transforms": "1.0.
|
|
20
|
-
"@volar/typescript-faster": "1.0.
|
|
21
|
-
"@vue/reactivity": "^3.2.
|
|
22
|
-
"vscode-html-languageservice": "^5.0.
|
|
23
|
-
"vscode-json-languageservice": "^5.1.
|
|
16
|
+
"@volar/language-core": "1.0.10",
|
|
17
|
+
"@volar/shared": "1.0.10",
|
|
18
|
+
"@volar/source-map": "1.0.10",
|
|
19
|
+
"@volar/transforms": "1.0.10",
|
|
20
|
+
"@volar/typescript-faster": "1.0.10",
|
|
21
|
+
"@vue/reactivity": "^3.2.45",
|
|
22
|
+
"vscode-html-languageservice": "^5.0.3",
|
|
23
|
+
"vscode-json-languageservice": "^5.1.3",
|
|
24
24
|
"vscode-languageserver-protocol": "^3.17.2",
|
|
25
25
|
"vscode-languageserver-textdocument": "^1.0.7",
|
|
26
26
|
"vscode-uri": "^3.0.6"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "89b82f92fdc30674b03941c5f17c60df8c46211c"
|
|
29
29
|
}
|