Skip to content

Commit

Permalink
fix: vue-tsc emit declaration diagnostics missing due to mapping failed
Browse files Browse the repository at this point in the history
close #1127
  • Loading branch information
johnsoncodehk committed Apr 10, 2022
1 parent 23453db commit ab4ef45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/vue-code-gen/src/generators/script.ts
Expand Up @@ -100,11 +100,15 @@ export function generate(
);
}

// fix https://github.com/johnsoncodehk/volar/issues/1048, https://github.com/johnsoncodehk/volar/issues/435
// fix https://github.com/johnsoncodehk/volar/issues/1048
// fix https://github.com/johnsoncodehk/volar/issues/435
// fix https://github.com/johnsoncodehk/volar/issues/1127
codeGen.addMapping2({
data: {
vueTag: 'sfc',
capabilities: {},
capabilities: {
diagnostic: lsType === 'script',
},
},
mode: SourceMaps.Mode.Expand,
mappedRange: {
Expand Down

0 comments on commit ab4ef45

Please sign in to comment.