Skip to content

Commit

Permalink
feat: remove import type checking for <script setup>
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 23, 2021
1 parent e9894d6 commit 8d12b3d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/vscode-vue-languageservice/src/generators/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,16 +460,8 @@ export function generate(
for (const expose of bindings) {
const varName = content.substring(expose.start, expose.end);
const templateSideRange = codeGen.addText(varName);
codeGen.addText(': ');
const scriptSideRange = codeGen.addCode(
varName,
expose,
SourceMaps.Mode.Offset,
{
vueTag,
capabilities: { diagnostic: true },
},
);
codeGen.addText(`: `);
const scriptSideRange = codeGen.addText(varName);
codeGen.addText(',\n');

teleports.push({
Expand Down

0 comments on commit 8d12b3d

Please sign in to comment.