@volar/vue-typescript
Advanced tools
Comparing version 0.34.9 to 0.34.10
@@ -22,2 +22,3 @@ "use strict"; | ||
codeActions: true, | ||
inlayHints: true, | ||
}, | ||
@@ -24,0 +25,0 @@ data: undefined, |
@@ -20,2 +20,3 @@ "use strict"; | ||
codeActions: false, | ||
inlayHints: false, | ||
}, | ||
@@ -22,0 +23,0 @@ data: undefined, |
@@ -24,3 +24,3 @@ "use strict"; | ||
const file = (0, reactivity_1.computed)(() => { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
if (lsType === 'script') { | ||
@@ -37,2 +37,3 @@ const file = { | ||
codeActions: !((_b = script.value) === null || _b === void 0 ? void 0 : _b.src), | ||
inlayHints: !((_c = script.value) === null || _c === void 0 ? void 0 : _c.src), | ||
}, | ||
@@ -55,2 +56,3 @@ data: undefined, | ||
codeActions: false, | ||
inlayHints: false, | ||
}, | ||
@@ -57,0 +59,0 @@ data: undefined, |
@@ -22,2 +22,3 @@ "use strict"; | ||
codeActions: true, | ||
inlayHints: true, | ||
}, | ||
@@ -24,0 +25,0 @@ data: { |
@@ -20,2 +20,3 @@ "use strict"; | ||
codeActions: true, | ||
inlayHints: true, | ||
}, | ||
@@ -22,0 +23,0 @@ data: undefined, |
@@ -157,3 +157,3 @@ "use strict"; | ||
const bindText = style.content.substring(cssBind.start, cssBind.end); | ||
(0, transform_1.walkInterpolationFragment)(ts, bindText, (frag, fragOffset) => { | ||
(0, transform_1.walkInterpolationFragment)(ts, bindText, (frag, fragOffset, lastCtxAccess) => { | ||
if (fragOffset === undefined) { | ||
@@ -163,2 +163,23 @@ codeGen.addText(frag); | ||
else { | ||
// fix https://github.com/johnsoncodehk/volar/issues/1205 | ||
if (lastCtxAccess) { | ||
codeGen.addMapping2({ | ||
data: { | ||
vueTag: 'style', | ||
vueTagIndex: i, | ||
capabilities: { | ||
diagnostic: true, | ||
}, | ||
}, | ||
mode: SourceMaps.Mode.Totally, | ||
sourceRange: { | ||
start: cssBind.start + fragOffset, | ||
end: cssBind.start + fragOffset + lastCtxAccess.varLength, | ||
}, | ||
mappedRange: { | ||
start: codeGen.getText().length - lastCtxAccess.ctxText.length, | ||
end: codeGen.getText().length + lastCtxAccess.varLength, | ||
}, | ||
}); | ||
} | ||
codeGen.addCode(frag, { | ||
@@ -249,2 +270,3 @@ start: cssBind.start + fragOffset, | ||
documentSymbol: false, | ||
inlayHints: false, | ||
}, | ||
@@ -283,2 +305,3 @@ data: undefined, | ||
codeActions: false, | ||
inlayHints: true, | ||
}, | ||
@@ -304,2 +327,3 @@ data: undefined, | ||
codeActions: false, | ||
inlayHints: false, | ||
}, | ||
@@ -306,0 +330,0 @@ data: undefined, |
@@ -51,2 +51,3 @@ import { TextRange } from '@volar/vue-code-gen'; | ||
codeActions: boolean; | ||
inlayHints: boolean; | ||
}; | ||
@@ -53,0 +54,0 @@ data: T; |
@@ -42,6 +42,6 @@ "use strict"; | ||
return { | ||
get: (0, untrack_1.untrack)((fileName) => vueFiles[fileName.toLocaleLowerCase()]), | ||
delete: (0, untrack_1.untrack)((fileName) => delete vueFiles[fileName.toLocaleLowerCase()]), | ||
has: (0, untrack_1.untrack)((fileName) => !!vueFiles[fileName.toLocaleLowerCase()]), | ||
set: (0, untrack_1.untrack)((fileName, vueFile) => vueFiles[fileName.toLocaleLowerCase()] = vueFile), | ||
get: (0, untrack_1.untrack)((fileName) => vueFiles[fileName.toLowerCase()]), | ||
delete: (0, untrack_1.untrack)((fileName) => delete vueFiles[fileName.toLowerCase()]), | ||
has: (0, untrack_1.untrack)((fileName) => !!vueFiles[fileName.toLowerCase()]), | ||
set: (0, untrack_1.untrack)((fileName, vueFile) => vueFiles[fileName.toLowerCase()] = vueFile), | ||
getFileNames: (0, untrack_1.untrack)(() => fileNames.value), | ||
@@ -48,0 +48,0 @@ getDirs: (0, untrack_1.untrack)(() => dirs.value), |
{ | ||
"name": "@volar/vue-typescript", | ||
"version": "0.34.9", | ||
"version": "0.34.10", | ||
"main": "out/index.js", | ||
@@ -16,9 +16,9 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@volar/pug-language-service": "0.34.9", | ||
"@volar/pug-language-service": "0.34.10", | ||
"typescript": "latest" | ||
}, | ||
"dependencies": { | ||
"@volar/code-gen": "0.34.9", | ||
"@volar/source-map": "0.34.9", | ||
"@volar/vue-code-gen": "0.34.9", | ||
"@volar/code-gen": "0.34.10", | ||
"@volar/source-map": "0.34.10", | ||
"@volar/vue-code-gen": "0.34.10", | ||
"@vue/compiler-sfc": "^3.2.31", | ||
@@ -30,3 +30,3 @@ "@vue/reactivity": "^3.2.31" | ||
}, | ||
"gitHead": "80523163eb73755da2b136be15c871e7a4c5ce6e" | ||
"gitHead": "0c9b6df3a2cefa25bbac9a38003eae729a772dd5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120815
2567
+ Added@volar/code-gen@0.34.10(transitive)
+ Added@volar/source-map@0.34.10(transitive)
+ Added@volar/vue-code-gen@0.34.10(transitive)
- Removed@volar/code-gen@0.34.9(transitive)
- Removed@volar/source-map@0.34.9(transitive)
- Removed@volar/vue-code-gen@0.34.9(transitive)
Updated@volar/code-gen@0.34.10
Updated@volar/source-map@0.34.10
Updated@volar/vue-code-gen@0.34.10