volar-service-markdown 0.0.46 → 0.0.47
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/index.js +8 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -199,8 +199,14 @@ function create({ documentSelector = ['markdown'], fileExtensions = [
|
|
|
199
199
|
// .filter(doc => this.isRelevantMarkdownDocument(doc));
|
|
200
200
|
return await findMarkdownFilesInWorkspace(vscode_uri_1.URI.parse(context.env.workspaceFolder));
|
|
201
201
|
},
|
|
202
|
-
getContainingDocument() {
|
|
203
|
-
|
|
202
|
+
getContainingDocument(resource) {
|
|
203
|
+
const decoded = context.decodeEmbeddedDocumentUri(resource.toString());
|
|
204
|
+
if (decoded) {
|
|
205
|
+
return {
|
|
206
|
+
uri: vscode_uri_1.URI.parse(decoded[0]),
|
|
207
|
+
children: [],
|
|
208
|
+
};
|
|
209
|
+
}
|
|
204
210
|
},
|
|
205
211
|
hasMarkdownDocument(resource) {
|
|
206
212
|
const document = getTextDocument(resource.toString());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-markdown",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
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",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"optional": true
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d53f4dfa7007e77409af3ef28cc165e9940e7313"
|
|
45
45
|
}
|