@volar/typescript 1.6.8 → 1.6.9
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/getProgram.js +4 -2
- package/package.json +3 -3
package/out/getProgram.js
CHANGED
|
@@ -85,10 +85,12 @@ function getProgram(ts, core, ls) {
|
|
|
85
85
|
if (sourceFileName !== source.fileName)
|
|
86
86
|
continue;
|
|
87
87
|
for (const start of map.toSourceOffsets(diagnostic.start)) {
|
|
88
|
-
|
|
88
|
+
const reportStart = typeof start[1].data.diagnostic === 'object' ? typeof start[1].data.diagnostic.shouldReport() : !!start[1].data.diagnostic;
|
|
89
|
+
if (!reportStart)
|
|
89
90
|
continue;
|
|
90
91
|
for (const end of map.toSourceOffsets(diagnostic.start + diagnostic.length, true)) {
|
|
91
|
-
|
|
92
|
+
const reportEnd = typeof end[1].data.diagnostic === 'object' ? typeof end[1].data.diagnostic.shouldReport() : !!end[1].data.diagnostic;
|
|
93
|
+
if (!reportEnd)
|
|
92
94
|
continue;
|
|
93
95
|
onMapping(diagnostic, source.fileName, start[0], end[0], source.snapshot.getText(0, source.snapshot.getLength()));
|
|
94
96
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/typescript",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.9",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/typescript"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.6.
|
|
16
|
+
"@volar/language-core": "1.6.9"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "e676fa08e4186bd2f8cc14861ef65f8d8c855ea1"
|
|
19
19
|
}
|