volar-service-markdown 0.0.18 → 0.0.19
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/index.js +3 -3
- package/package.json +3 -3
package/out/index.js
CHANGED
|
@@ -117,7 +117,7 @@ function create() {
|
|
|
117
117
|
if (sourceFile?.virtualFile) {
|
|
118
118
|
for (const virtualFile of Array.from((0, language_service_1.forEachEmbeddedFile)(sourceFile.virtualFile[0]))) {
|
|
119
119
|
if (virtualFile.languageId === 'markdown') {
|
|
120
|
-
const document = context.documents.get(virtualFile.
|
|
120
|
+
const document = context.documents.get(virtualFile.fileName, virtualFile.languageId, virtualFile.snapshot);
|
|
121
121
|
newVersions.set(document.uri, document);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -247,12 +247,12 @@ function create() {
|
|
|
247
247
|
};
|
|
248
248
|
function getTextDocument(uri, includeVirtualFile) {
|
|
249
249
|
if (includeVirtualFile) {
|
|
250
|
-
const virtualFile = context.language.files.getVirtualFile(uri)[0];
|
|
250
|
+
const virtualFile = context.language.files.getVirtualFile(context.env.uriToFileName(uri))[0];
|
|
251
251
|
if (virtualFile) {
|
|
252
252
|
return context.documents.get(uri, virtualFile.languageId, virtualFile.snapshot);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
const sourceFile = context.language.files.getSourceFile(uri);
|
|
255
|
+
const sourceFile = context.language.files.getSourceFile(context.env.uriToFileName(uri));
|
|
256
256
|
if (sourceFile && !sourceFile.virtualFile) {
|
|
257
257
|
return context.documents.get(uri, sourceFile.languageId, sourceFile.snapshot);
|
|
258
258
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-markdown",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Integrate vscode-markdown-languageservice into Volar",
|
|
5
5
|
"homepage": "https://github.com/volarjs/services/tree/master/packages/markdown",
|
|
6
6
|
"bugs": "https://github.com/volarjs/services/issues",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"vscode-languageserver-textdocument": "^1.0.11"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@volar/language-service": "2.0.0-alpha.
|
|
38
|
+
"@volar/language-service": "2.0.0-alpha.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@volar/language-service": {
|
|
42
42
|
"optional": true
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ccd6cfec1b676091acd2f9ea78e1b695a4bf1dd1"
|
|
46
46
|
}
|