volar-service-typescript 0.0.28 → 0.0.30
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 +5 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -426,9 +426,13 @@ function create(ts) {
|
|
|
426
426
|
return doValidation(document.uri, { syntactic: true, suggestion: true });
|
|
427
427
|
});
|
|
428
428
|
},
|
|
429
|
-
provideSemanticDiagnostics(document, token) {
|
|
429
|
+
async provideSemanticDiagnostics(document, token) {
|
|
430
430
|
if (!isSemanticDocument(document))
|
|
431
431
|
return;
|
|
432
|
+
const enable = await context.env.getConfiguration?.((0, shared_1.getConfigTitle)(document) + '.validate.enable') ?? true;
|
|
433
|
+
if (!enable) {
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
432
436
|
return worker(token, () => {
|
|
433
437
|
return doValidation(document.uri, { semantic: true, declaration: true });
|
|
434
438
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "Integrate TypeScript into Volar",
|
|
5
5
|
"homepage": "https://github.com/volarjs/services/tree/master/packages/typescript",
|
|
6
6
|
"bugs": "https://github.com/volarjs/services/issues",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"optional": true
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "30c3cc3c76e90f75f14fe0c2fa4fd33b7ff06507"
|
|
49
49
|
}
|