@volar/monaco 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.
@@ -0,0 +1,490 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.asPosition = exports.asInlayHintLabelPart = exports.asInlayHintLabel = exports.asInlayHintKind = exports.asInlayHint = exports.asSelectionRange = exports.asFoldingRange = exports.asColorPresentation = exports.asColorInformation = exports.asLink = exports.asCodeAction = exports.asCodeLens = exports.asDocumentHighlightKind = exports.asDocumentHighlight = exports.asSymbolKind = exports.asSymbolTag = exports.asDocumentSymbol = exports.asWorkspaceEdit = exports.asMarkerSeverity = exports.asRelatedInformation = exports.asMarkerTag = exports.asMarkerData = exports.asParameterInformation = exports.asSignatureInformation = exports.asSignatureHelp = exports.asUri = exports.asLocation = exports.asMarkdownString = exports.asHover = exports.asRange = exports.asCompletionItemRange = exports.asTextEdit = exports.asCommand = exports.asCompletionItem = exports.asCompletionItemKind = exports.asCompletionList = void 0;
3
+ const monaco_editor_core_1 = require("monaco-editor-core");
4
+ const protocol = require("vscode-languageserver-protocol");
5
+ function asCompletionList(list, range) {
6
+ return {
7
+ incomplete: list.isIncomplete,
8
+ suggestions: list.items.map(item => asCompletionItem(item, range)),
9
+ };
10
+ }
11
+ exports.asCompletionList = asCompletionList;
12
+ function asCompletionItemKind(kind) {
13
+ switch (kind) {
14
+ case protocol.CompletionItemKind.Method:
15
+ return monaco_editor_core_1.languages.CompletionItemKind.Method;
16
+ case protocol.CompletionItemKind.Function:
17
+ return monaco_editor_core_1.languages.CompletionItemKind.Function;
18
+ case protocol.CompletionItemKind.Constructor:
19
+ return monaco_editor_core_1.languages.CompletionItemKind.Constructor;
20
+ case protocol.CompletionItemKind.Field:
21
+ return monaco_editor_core_1.languages.CompletionItemKind.Field;
22
+ case protocol.CompletionItemKind.Variable:
23
+ return monaco_editor_core_1.languages.CompletionItemKind.Variable;
24
+ case protocol.CompletionItemKind.Class:
25
+ return monaco_editor_core_1.languages.CompletionItemKind.Class;
26
+ case protocol.CompletionItemKind.Interface:
27
+ return monaco_editor_core_1.languages.CompletionItemKind.Interface;
28
+ case protocol.CompletionItemKind.Module:
29
+ return monaco_editor_core_1.languages.CompletionItemKind.Module;
30
+ case protocol.CompletionItemKind.Property:
31
+ return monaco_editor_core_1.languages.CompletionItemKind.Property;
32
+ case protocol.CompletionItemKind.Unit:
33
+ return monaco_editor_core_1.languages.CompletionItemKind.Unit;
34
+ case protocol.CompletionItemKind.Value:
35
+ return monaco_editor_core_1.languages.CompletionItemKind.Value;
36
+ case protocol.CompletionItemKind.Enum:
37
+ return monaco_editor_core_1.languages.CompletionItemKind.Enum;
38
+ case protocol.CompletionItemKind.Keyword:
39
+ return monaco_editor_core_1.languages.CompletionItemKind.Keyword;
40
+ case protocol.CompletionItemKind.Snippet:
41
+ return monaco_editor_core_1.languages.CompletionItemKind.Snippet;
42
+ case protocol.CompletionItemKind.Text:
43
+ return monaco_editor_core_1.languages.CompletionItemKind.Text;
44
+ case protocol.CompletionItemKind.Color:
45
+ return monaco_editor_core_1.languages.CompletionItemKind.Color;
46
+ case protocol.CompletionItemKind.File:
47
+ return monaco_editor_core_1.languages.CompletionItemKind.File;
48
+ case protocol.CompletionItemKind.Reference:
49
+ return monaco_editor_core_1.languages.CompletionItemKind.Reference;
50
+ case protocol.CompletionItemKind.Folder:
51
+ return monaco_editor_core_1.languages.CompletionItemKind.Folder;
52
+ case protocol.CompletionItemKind.EnumMember:
53
+ return monaco_editor_core_1.languages.CompletionItemKind.EnumMember;
54
+ case protocol.CompletionItemKind.Constant:
55
+ return monaco_editor_core_1.languages.CompletionItemKind.Constant;
56
+ case protocol.CompletionItemKind.Struct:
57
+ return monaco_editor_core_1.languages.CompletionItemKind.Struct;
58
+ case protocol.CompletionItemKind.Event:
59
+ return monaco_editor_core_1.languages.CompletionItemKind.Event;
60
+ case protocol.CompletionItemKind.Operator:
61
+ return monaco_editor_core_1.languages.CompletionItemKind.Operator;
62
+ case protocol.CompletionItemKind.TypeParameter:
63
+ return monaco_editor_core_1.languages.CompletionItemKind.TypeParameter;
64
+ default:
65
+ return monaco_editor_core_1.languages.CompletionItemKind.Text;
66
+ }
67
+ }
68
+ exports.asCompletionItemKind = asCompletionItemKind;
69
+ function asCompletionItem(item, range) {
70
+ var _a, _b, _c, _d;
71
+ return {
72
+ label: item.label,
73
+ kind: asCompletionItemKind(item.kind),
74
+ tags: item.tags,
75
+ detail: item.detail,
76
+ documentation: item.documentation,
77
+ sortText: item.sortText,
78
+ filterText: item.filterText,
79
+ preselect: item.preselect,
80
+ insertText: (_c = (_b = (_a = item.textEdit) === null || _a === void 0 ? void 0 : _a.newText) !== null && _b !== void 0 ? _b : item.insertText) !== null && _c !== void 0 ? _c : item.label,
81
+ insertTextRules: monaco_editor_core_1.languages.CompletionItemInsertTextRule.InsertAsSnippet,
82
+ range: item.textEdit ? asCompletionItemRange(item.textEdit) : asRange(range),
83
+ commitCharacters: item.commitCharacters,
84
+ additionalTextEdits: (_d = item.additionalTextEdits) === null || _d === void 0 ? void 0 : _d.map(asTextEdit),
85
+ command: item.command ? asCommand(item.command) : undefined,
86
+ };
87
+ }
88
+ exports.asCompletionItem = asCompletionItem;
89
+ function asCommand(command) {
90
+ return {
91
+ id: command.command,
92
+ title: command.title,
93
+ arguments: command.arguments,
94
+ };
95
+ }
96
+ exports.asCommand = asCommand;
97
+ function asTextEdit(edit) {
98
+ return {
99
+ range: asRange(edit.range),
100
+ text: edit.newText,
101
+ };
102
+ }
103
+ exports.asTextEdit = asTextEdit;
104
+ function asCompletionItemRange(textEdit) {
105
+ if (protocol.InsertReplaceEdit.is(textEdit)) {
106
+ const result = {
107
+ insert: asRange(textEdit.insert),
108
+ replace: asRange(textEdit.replace),
109
+ };
110
+ return result;
111
+ }
112
+ return asRange(textEdit.range);
113
+ }
114
+ exports.asCompletionItemRange = asCompletionItemRange;
115
+ function asRange(range) {
116
+ return {
117
+ startLineNumber: range.start.line + 1,
118
+ startColumn: range.start.character + 1,
119
+ endLineNumber: range.end.line + 1,
120
+ endColumn: range.end.character + 1,
121
+ };
122
+ }
123
+ exports.asRange = asRange;
124
+ function asHover(hover) {
125
+ return {
126
+ contents: asMarkdownString(hover.contents),
127
+ range: hover.range ? asRange(hover.range) : undefined,
128
+ };
129
+ }
130
+ exports.asHover = asHover;
131
+ function asMarkdownString(markdownString) {
132
+ if (typeof markdownString === 'string') {
133
+ return [{ value: markdownString }];
134
+ }
135
+ else if (Array.isArray(markdownString)) {
136
+ return markdownString.map(asMarkdownString).flat();
137
+ }
138
+ else {
139
+ return [markdownString];
140
+ }
141
+ }
142
+ exports.asMarkdownString = asMarkdownString;
143
+ function asLocation(definition) {
144
+ if (protocol.LocationLink.is(definition)) {
145
+ return {
146
+ uri: asUri(definition.targetUri),
147
+ range: asRange(definition.targetSelectionRange),
148
+ };
149
+ }
150
+ else {
151
+ return {
152
+ uri: asUri(definition.uri),
153
+ range: asRange(definition.range),
154
+ };
155
+ }
156
+ }
157
+ exports.asLocation = asLocation;
158
+ function asUri(uri) {
159
+ return monaco_editor_core_1.Uri.parse(uri);
160
+ }
161
+ exports.asUri = asUri;
162
+ function asSignatureHelp(signatureHelp) {
163
+ var _a, _b;
164
+ return {
165
+ signatures: signatureHelp.signatures.map(asSignatureInformation),
166
+ activeSignature: (_a = signatureHelp.activeSignature) !== null && _a !== void 0 ? _a : 0,
167
+ activeParameter: (_b = signatureHelp.activeParameter) !== null && _b !== void 0 ? _b : 0,
168
+ };
169
+ }
170
+ exports.asSignatureHelp = asSignatureHelp;
171
+ function asSignatureInformation(signatureInformation) {
172
+ return {
173
+ label: signatureInformation.label,
174
+ documentation: signatureInformation.documentation,
175
+ parameters: signatureInformation.parameters
176
+ ? signatureInformation.parameters.map(asParameterInformation)
177
+ : [],
178
+ activeParameter: signatureInformation.activeParameter,
179
+ };
180
+ }
181
+ exports.asSignatureInformation = asSignatureInformation;
182
+ function asParameterInformation(parameterInformation) {
183
+ return {
184
+ label: parameterInformation.label,
185
+ documentation: parameterInformation.documentation,
186
+ };
187
+ }
188
+ exports.asParameterInformation = asParameterInformation;
189
+ function asMarkerData(diagnostic) {
190
+ var _a, _b, _c;
191
+ return Object.assign(Object.assign({ code: (_a = diagnostic.code) === null || _a === void 0 ? void 0 : _a.toString(), severity: asMarkerSeverity(diagnostic.severity), message: diagnostic.message, source: diagnostic.source }, asRange(diagnostic.range)), { relatedInformation: (_b = diagnostic.relatedInformation) === null || _b === void 0 ? void 0 : _b.map(asRelatedInformation), tags: (_c = diagnostic.tags) === null || _c === void 0 ? void 0 : _c.map(asMarkerTag) });
192
+ }
193
+ exports.asMarkerData = asMarkerData;
194
+ function asMarkerTag(tag) {
195
+ switch (tag) {
196
+ case protocol.DiagnosticTag.Unnecessary:
197
+ return monaco_editor_core_1.MarkerTag.Unnecessary;
198
+ case protocol.DiagnosticTag.Deprecated:
199
+ return monaco_editor_core_1.MarkerTag.Deprecated;
200
+ }
201
+ }
202
+ exports.asMarkerTag = asMarkerTag;
203
+ function asRelatedInformation(relatedInformation) {
204
+ return Object.assign({ resource: asUri(relatedInformation.location.uri), message: relatedInformation.message }, asRange(relatedInformation.location.range));
205
+ }
206
+ exports.asRelatedInformation = asRelatedInformation;
207
+ function asMarkerSeverity(severity) {
208
+ switch (severity) {
209
+ case protocol.DiagnosticSeverity.Error:
210
+ return monaco_editor_core_1.MarkerSeverity.Error;
211
+ case protocol.DiagnosticSeverity.Warning:
212
+ return monaco_editor_core_1.MarkerSeverity.Warning;
213
+ case protocol.DiagnosticSeverity.Information:
214
+ return monaco_editor_core_1.MarkerSeverity.Info;
215
+ case protocol.DiagnosticSeverity.Hint:
216
+ return monaco_editor_core_1.MarkerSeverity.Hint;
217
+ default:
218
+ return monaco_editor_core_1.MarkerSeverity.Info;
219
+ }
220
+ }
221
+ exports.asMarkerSeverity = asMarkerSeverity;
222
+ function asWorkspaceEdit(workspaceEdit) {
223
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
224
+ const result = {
225
+ edits: [],
226
+ };
227
+ if (workspaceEdit.changes) {
228
+ for (const uri in workspaceEdit.changes) {
229
+ const edits = workspaceEdit.changes[uri];
230
+ for (const edit of edits) {
231
+ result.edits.push({
232
+ resource: asUri(uri),
233
+ textEdit: asTextEdit(edit),
234
+ versionId: undefined,
235
+ });
236
+ }
237
+ }
238
+ }
239
+ if (workspaceEdit.documentChanges) {
240
+ for (const documentChange of workspaceEdit.documentChanges) {
241
+ if (protocol.TextDocumentEdit.is(documentChange)) {
242
+ for (const edit of documentChange.edits) {
243
+ result.edits.push({
244
+ resource: asUri(documentChange.textDocument.uri),
245
+ textEdit: asTextEdit(edit),
246
+ versionId: (_a = documentChange.textDocument.version) !== null && _a !== void 0 ? _a : undefined,
247
+ });
248
+ }
249
+ }
250
+ else if (protocol.CreateFile.is(documentChange)) {
251
+ result.edits.push({
252
+ newResource: asUri(documentChange.uri),
253
+ options: {
254
+ overwrite: (_c = (_b = documentChange.options) === null || _b === void 0 ? void 0 : _b.overwrite) !== null && _c !== void 0 ? _c : false,
255
+ ignoreIfExists: (_e = (_d = documentChange.options) === null || _d === void 0 ? void 0 : _d.ignoreIfExists) !== null && _e !== void 0 ? _e : false,
256
+ },
257
+ });
258
+ }
259
+ else if (protocol.RenameFile.is(documentChange)) {
260
+ result.edits.push({
261
+ oldResource: asUri(documentChange.oldUri),
262
+ newResource: asUri(documentChange.newUri),
263
+ options: {
264
+ overwrite: (_g = (_f = documentChange.options) === null || _f === void 0 ? void 0 : _f.overwrite) !== null && _g !== void 0 ? _g : false,
265
+ ignoreIfExists: (_j = (_h = documentChange.options) === null || _h === void 0 ? void 0 : _h.ignoreIfExists) !== null && _j !== void 0 ? _j : false,
266
+ },
267
+ });
268
+ }
269
+ else if (protocol.DeleteFile.is(documentChange)) {
270
+ result.edits.push({
271
+ oldResource: asUri(documentChange.uri),
272
+ options: {
273
+ recursive: (_l = (_k = documentChange.options) === null || _k === void 0 ? void 0 : _k.recursive) !== null && _l !== void 0 ? _l : false,
274
+ ignoreIfNotExists: (_o = (_m = documentChange.options) === null || _m === void 0 ? void 0 : _m.ignoreIfNotExists) !== null && _o !== void 0 ? _o : false,
275
+ },
276
+ });
277
+ }
278
+ }
279
+ }
280
+ return result;
281
+ }
282
+ exports.asWorkspaceEdit = asWorkspaceEdit;
283
+ function asDocumentSymbol(symbol) {
284
+ var _a, _b;
285
+ return {
286
+ name: symbol.name,
287
+ detail: '',
288
+ kind: asSymbolKind(symbol.kind),
289
+ tags: (_b = (_a = symbol.tags) === null || _a === void 0 ? void 0 : _a.map(asSymbolTag)) !== null && _b !== void 0 ? _b : [],
290
+ range: asRange(symbol.range),
291
+ selectionRange: asRange(symbol.selectionRange),
292
+ children: symbol.children
293
+ ? symbol.children.map(asDocumentSymbol)
294
+ : undefined,
295
+ };
296
+ }
297
+ exports.asDocumentSymbol = asDocumentSymbol;
298
+ function asSymbolTag(tag) {
299
+ switch (tag) {
300
+ case protocol.SymbolTag.Deprecated:
301
+ return monaco_editor_core_1.languages.SymbolTag.Deprecated;
302
+ }
303
+ }
304
+ exports.asSymbolTag = asSymbolTag;
305
+ function asSymbolKind(kind) {
306
+ switch (kind) {
307
+ case protocol.SymbolKind.File:
308
+ return monaco_editor_core_1.languages.SymbolKind.File;
309
+ case protocol.SymbolKind.Module:
310
+ return monaco_editor_core_1.languages.SymbolKind.Module;
311
+ case protocol.SymbolKind.Namespace:
312
+ return monaco_editor_core_1.languages.SymbolKind.Namespace;
313
+ case protocol.SymbolKind.Package:
314
+ return monaco_editor_core_1.languages.SymbolKind.Package;
315
+ case protocol.SymbolKind.Class:
316
+ return monaco_editor_core_1.languages.SymbolKind.Class;
317
+ case protocol.SymbolKind.Method:
318
+ return monaco_editor_core_1.languages.SymbolKind.Method;
319
+ case protocol.SymbolKind.Property:
320
+ return monaco_editor_core_1.languages.SymbolKind.Property;
321
+ case protocol.SymbolKind.Field:
322
+ return monaco_editor_core_1.languages.SymbolKind.Field;
323
+ case protocol.SymbolKind.Constructor:
324
+ return monaco_editor_core_1.languages.SymbolKind.Constructor;
325
+ case protocol.SymbolKind.Enum:
326
+ return monaco_editor_core_1.languages.SymbolKind.Enum;
327
+ case protocol.SymbolKind.Interface:
328
+ return monaco_editor_core_1.languages.SymbolKind.Interface;
329
+ case protocol.SymbolKind.Function:
330
+ return monaco_editor_core_1.languages.SymbolKind.Function;
331
+ case protocol.SymbolKind.Variable:
332
+ return monaco_editor_core_1.languages.SymbolKind.Variable;
333
+ case protocol.SymbolKind.Constant:
334
+ return monaco_editor_core_1.languages.SymbolKind.Constant;
335
+ case protocol.SymbolKind.String:
336
+ return monaco_editor_core_1.languages.SymbolKind.String;
337
+ case protocol.SymbolKind.Number:
338
+ return monaco_editor_core_1.languages.SymbolKind.Number;
339
+ case protocol.SymbolKind.Boolean:
340
+ return monaco_editor_core_1.languages.SymbolKind.Boolean;
341
+ case protocol.SymbolKind.Array:
342
+ return monaco_editor_core_1.languages.SymbolKind.Array;
343
+ case protocol.SymbolKind.Object:
344
+ return monaco_editor_core_1.languages.SymbolKind.Object;
345
+ case protocol.SymbolKind.Key:
346
+ return monaco_editor_core_1.languages.SymbolKind.Key;
347
+ case protocol.SymbolKind.Null:
348
+ return monaco_editor_core_1.languages.SymbolKind.Null;
349
+ case protocol.SymbolKind.EnumMember:
350
+ return monaco_editor_core_1.languages.SymbolKind.EnumMember;
351
+ case protocol.SymbolKind.Struct:
352
+ return monaco_editor_core_1.languages.SymbolKind.Struct;
353
+ case protocol.SymbolKind.Event:
354
+ return monaco_editor_core_1.languages.SymbolKind.Event;
355
+ case protocol.SymbolKind.Operator:
356
+ return monaco_editor_core_1.languages.SymbolKind.Operator;
357
+ case protocol.SymbolKind.TypeParameter:
358
+ return monaco_editor_core_1.languages.SymbolKind.TypeParameter;
359
+ default:
360
+ return monaco_editor_core_1.languages.SymbolKind.File;
361
+ }
362
+ }
363
+ exports.asSymbolKind = asSymbolKind;
364
+ function asDocumentHighlight(highlight) {
365
+ return {
366
+ range: asRange(highlight.range),
367
+ kind: asDocumentHighlightKind(highlight.kind),
368
+ };
369
+ }
370
+ exports.asDocumentHighlight = asDocumentHighlight;
371
+ function asDocumentHighlightKind(kind) {
372
+ switch (kind) {
373
+ case protocol.DocumentHighlightKind.Text:
374
+ return monaco_editor_core_1.languages.DocumentHighlightKind.Text;
375
+ case protocol.DocumentHighlightKind.Read:
376
+ return monaco_editor_core_1.languages.DocumentHighlightKind.Read;
377
+ case protocol.DocumentHighlightKind.Write:
378
+ return monaco_editor_core_1.languages.DocumentHighlightKind.Write;
379
+ default:
380
+ return monaco_editor_core_1.languages.DocumentHighlightKind.Text;
381
+ }
382
+ }
383
+ exports.asDocumentHighlightKind = asDocumentHighlightKind;
384
+ function asCodeLens(item) {
385
+ return {
386
+ range: asRange(item.range),
387
+ command: item.command ? asCommand(item.command) : undefined,
388
+ };
389
+ }
390
+ exports.asCodeLens = asCodeLens;
391
+ function asCodeAction(item) {
392
+ var _a;
393
+ return {
394
+ title: item.title,
395
+ command: item.command ? asCommand(item.command) : undefined,
396
+ edit: item.edit ? asWorkspaceEdit(item.edit) : undefined,
397
+ diagnostics: item.diagnostics
398
+ ? item.diagnostics.map(asMarkerData)
399
+ : undefined,
400
+ kind: item.kind,
401
+ isPreferred: item.isPreferred,
402
+ disabled: (_a = item.disabled) === null || _a === void 0 ? void 0 : _a.reason,
403
+ };
404
+ }
405
+ exports.asCodeAction = asCodeAction;
406
+ function asLink(item) {
407
+ return {
408
+ range: asRange(item.range),
409
+ url: item.target,
410
+ tooltip: item.tooltip,
411
+ };
412
+ }
413
+ exports.asLink = asLink;
414
+ function asColorInformation(item) {
415
+ return {
416
+ range: asRange(item.range),
417
+ color: item.color,
418
+ };
419
+ }
420
+ exports.asColorInformation = asColorInformation;
421
+ function asColorPresentation(item) {
422
+ return {
423
+ label: item.label,
424
+ textEdit: item.textEdit ? asTextEdit(item.textEdit) : undefined,
425
+ additionalTextEdits: item.additionalTextEdits
426
+ ? item.additionalTextEdits.map(asTextEdit)
427
+ : undefined,
428
+ };
429
+ }
430
+ exports.asColorPresentation = asColorPresentation;
431
+ function asFoldingRange(item) {
432
+ var _a;
433
+ return {
434
+ start: item.startLine + 1,
435
+ end: item.endLine + 1,
436
+ kind: {
437
+ value: (_a = item.kind) !== null && _a !== void 0 ? _a : '',
438
+ },
439
+ };
440
+ }
441
+ exports.asFoldingRange = asFoldingRange;
442
+ function asSelectionRange(item) {
443
+ return {
444
+ range: asRange(item.range),
445
+ };
446
+ }
447
+ exports.asSelectionRange = asSelectionRange;
448
+ function asInlayHint(item) {
449
+ return {
450
+ label: asInlayHintLabel(item.label),
451
+ tooltip: item.tooltip,
452
+ position: asPosition(item.position),
453
+ kind: item.kind ? asInlayHintKind(item.kind) : undefined,
454
+ paddingLeft: item.paddingLeft,
455
+ paddingRight: item.paddingRight,
456
+ };
457
+ }
458
+ exports.asInlayHint = asInlayHint;
459
+ function asInlayHintKind(kind) {
460
+ switch (kind) {
461
+ case protocol.InlayHintKind.Parameter:
462
+ return monaco_editor_core_1.languages.InlayHintKind.Parameter;
463
+ case protocol.InlayHintKind.Type:
464
+ return monaco_editor_core_1.languages.InlayHintKind.Type;
465
+ }
466
+ }
467
+ exports.asInlayHintKind = asInlayHintKind;
468
+ function asInlayHintLabel(label) {
469
+ if (typeof label === 'string') {
470
+ return label;
471
+ }
472
+ else {
473
+ return label.map(asInlayHintLabelPart);
474
+ }
475
+ }
476
+ exports.asInlayHintLabel = asInlayHintLabel;
477
+ function asInlayHintLabelPart(part) {
478
+ return {
479
+ label: part.value,
480
+ tooltip: part.tooltip,
481
+ command: part.command ? asCommand(part.command) : undefined,
482
+ location: part.location ? asLocation(part.location) : undefined,
483
+ };
484
+ }
485
+ exports.asInlayHintLabelPart = asInlayHintLabelPart;
486
+ function asPosition(position) {
487
+ return new monaco_editor_core_1.Position(position.line + 1, position.character + 1);
488
+ }
489
+ exports.asPosition = asPosition;
490
+ //# sourceMappingURL=protocol2monaco.js.map
@@ -0,0 +1,3 @@
1
+ import type { LanguageService } from '@volar/language-service';
2
+ import type { editor, languages } from 'monaco-editor-core';
3
+ export declare function createLanguageFeaturesProvider(worker: editor.MonacoWebWorker<LanguageService>): Promise<languages.HoverProvider & languages.DocumentSymbolProvider & languages.DocumentHighlightProvider & languages.LinkedEditingRangeProvider & languages.DefinitionProvider & languages.ImplementationProvider & languages.TypeDefinitionProvider & languages.CodeLensProvider & languages.CodeActionProvider & Omit<languages.DocumentFormattingEditProvider, 'displayName'> & Omit<languages.DocumentRangeFormattingEditProvider, 'displayName'> & languages.OnTypeFormattingEditProvider & languages.LinkProvider & languages.CompletionItemProvider & languages.DocumentColorProvider & languages.FoldingRangeProvider & languages.DeclarationProvider & languages.SignatureHelpProvider & languages.RenameProvider & languages.ReferenceProvider & languages.SelectionRangeProvider & languages.InlayHintsProvider>;