@volar/monaco 2.3.0-alpha.13 → 2.3.0-alpha.14
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/lib/provider.js +3 -3
- package/package.json +5 -5
package/lib/provider.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fromCompletionContext, fromFormattingOptions, fromPosition, fromRange, fromSignatureHelpContext, toCodeAction, toCodeLens, toColorInformation, toColorPresentation, toCompletionItem, toCompletionList, toDocumentHighlight, toDocumentSymbol, toFoldingRange, toHover, toInlayHint, toLink, toLinkedEditingRanges, toLocation, toLocationLink,
|
|
1
|
+
import { fromCompletionContext, fromFormattingOptions, fromPosition, fromRange, fromSignatureHelpContext, toCodeAction, toCodeLens, toColorInformation, toColorPresentation, toCompletionItem, toCompletionList, toDocumentHighlight, toDocumentSymbol, toFoldingRange, toHover, toInlayHint, toLink, toLinkedEditingRanges, toLocation, toLocationLink, toSelectionRanges, toSemanticTokens, toSignatureHelp, toTextEdit, toWorkspaceEdit, } from 'monaco-languageserver-types';
|
|
2
2
|
import { markers } from './markers.js';
|
|
3
3
|
export async function createLanguageFeaturesProvider(worker, getSyncUris) {
|
|
4
4
|
const completionItems = new WeakMap();
|
|
@@ -246,8 +246,8 @@ export async function createLanguageFeaturesProvider(worker, getSyncUris) {
|
|
|
246
246
|
},
|
|
247
247
|
async provideSelectionRanges(model, positions) {
|
|
248
248
|
const languageService = await worker.withSyncedResources(getSyncUris());
|
|
249
|
-
const codeResults = await
|
|
250
|
-
return codeResults
|
|
249
|
+
const codeResults = await languageService.getSelectionRanges(model.uri, positions.map(fromPosition));
|
|
250
|
+
return codeResults?.map(toSelectionRanges);
|
|
251
251
|
},
|
|
252
252
|
async provideSignatureHelp(model, position, _token, context) {
|
|
253
253
|
const languageService = await worker.withSyncedResources(getSyncUris());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/monaco",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"directory": "packages/monaco"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-service": "2.3.0-alpha.
|
|
17
|
-
"@volar/typescript": "2.3.0-alpha.
|
|
18
|
-
"monaco-languageserver-types": "^0.3.
|
|
16
|
+
"@volar/language-service": "2.3.0-alpha.14",
|
|
17
|
+
"@volar/typescript": "2.3.0-alpha.14",
|
|
18
|
+
"monaco-languageserver-types": "^0.3.4",
|
|
19
19
|
"monaco-types": "^0.1.0",
|
|
20
20
|
"vscode-uri": "^3.0.8"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"monaco-editor-core": "latest"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "9a8179277fe224de1d13e6331115918b79b30721"
|
|
26
26
|
}
|