volar-service-html 0.0.15 → 0.0.17
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 +2 -1
- package/package.json +4 -3
package/out/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.create = exports.getHtmlDocument = void 0;
|
|
4
4
|
const html = require("vscode-html-languageservice");
|
|
5
|
-
const path = require("path");
|
|
6
5
|
const vscode_uri_1 = require("vscode-uri");
|
|
7
6
|
const parserLs = html.getLanguageService();
|
|
8
7
|
const htmlDocuments = new WeakMap();
|
|
@@ -247,6 +246,8 @@ function create({ languageId = 'html', useDefaultDataProvider = true, useCustomD
|
|
|
247
246
|
const newData = [];
|
|
248
247
|
for (const customDataPath of customData) {
|
|
249
248
|
try {
|
|
249
|
+
const pathModuleName = 'path'; // avoid bundle
|
|
250
|
+
const { posix: path } = require(pathModuleName);
|
|
250
251
|
const jsonPath = path.resolve(customDataPath);
|
|
251
252
|
newData.push(html.newHTMLDataProvider(customDataPath, require(jsonPath)));
|
|
252
253
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-html",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Integrate vscode-languageservice-html into Volar",
|
|
5
5
|
"homepage": "https://github.com/volarjs/services/tree/master/packages/html",
|
|
6
6
|
"bugs": "https://github.com/volarjs/services/issues",
|
|
@@ -29,15 +29,16 @@
|
|
|
29
29
|
"vscode-uri": "^3.0.8"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
+
"@types/node": "latest",
|
|
32
33
|
"vscode-languageserver-textdocument": "^1.0.11"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
|
-
"@volar/language-service": "~1.
|
|
36
|
+
"@volar/language-service": "~1.11.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependenciesMeta": {
|
|
38
39
|
"@volar/language-service": {
|
|
39
40
|
"optional": true
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "bf42bae9b399b69125fd28c7a9bf95882c96068a"
|
|
43
44
|
}
|