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

[Improvement] Remove Vue suffix from imported component name #197

Closed
wenfangdu opened this issue May 22, 2021 · 2 comments
Closed

[Improvement] Remove Vue suffix from imported component name #197

wenfangdu opened this issue May 22, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@wenfangdu
Copy link
Contributor

wenfangdu commented May 22, 2021

For instance, I have a component VFoo.vue when importing it from another .ts/.tsx/.vue file, Volar IntelliSense shows VFooVue, and when I hit tab, VFoo will be imported as VFooVue, and I have to rename it back to VFoo every time I import it. It's a small thing, but I hope Volar doesn't append the Vue suffix when importing.

VFoo.vue:

<script lang="ts">
  import { defineComponent } from 'vue'

  export default defineComponent({})
</script>

Importing:

image

@johnsoncodehk
Copy link
Member

Thanks for your suggestion, but this is expected behavior, in this project <script> block designed to have consistent behavior with *.ts.

@johnsoncodehk
Copy link
Member

Duplicate of #82

@johnsoncodehk johnsoncodehk marked this as a duplicate of #82 May 22, 2021
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants