Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto importing components lacks comma when tsconfig paths is set #2524

Closed
4 tasks done
sapphi-red opened this issue Dec 5, 2020 · 0 comments · Fixed by #2525
Closed
4 tasks done

Auto importing components lacks comma when tsconfig paths is set #2524

sapphi-red opened this issue Dec 5, 2020 · 0 comments · Fixed by #2525
Labels

Comments

@sapphi-red
Copy link
Contributor

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Win
  • Vetur version: 0.30.3 (also I tried with b0c57a2 and it happened)
  • VS Code version: 1.15.1

Problem

image

When

  • using paths in tsconfig.json
  • some components are imported using that paths
  • auto importing a component

the auto-import lacks a comma like below.

  components: { TestATestB }

or

  components: {
    TestA
    TestB
  }

Reproducible Case

  1. clone https://github.com/sapphi-red/vetur-auto-import-component-with-ts-paths-alias-minimal-reproduction
  2. open src/Test.vue
  3. type <test-b
  4. auto import

The screenshot above is src/Test.vue.

@sapphi-red sapphi-red changed the title Auto import components lacks comma when tsconfig paths is set Auto importing components lacks comma when tsconfig paths is set Dec 5, 2020
@yoyo930021 yoyo930021 added the bug label Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants