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

Template Props and vue.ts #2738

Open
4 tasks done
garaboncias opened this issue Feb 26, 2021 · 3 comments
Open
4 tasks done

Template Props and vue.ts #2738

garaboncias opened this issue Feb 26, 2021 · 3 comments

Comments

@garaboncias
Copy link

  • 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/macOS/Linux
  • Vetur version: 0.32
  • VS Code version: 1.53.2

Problem

Template Props not works well with vue.ts files

We use the following naming pattern:
zzz.vue for zzz component (html, css)
zzz.vue.ts for script part of the component
we used this pattern because when we ctrl+click to the vue component imports in ts files jump to the right file in vs-code

vetur use "vue.ts" file pattern for marking something (in serviceHost.ts:372 and utils.ts:16), which conflict with our setup
if i set some other filename pattern in those lines Template Props validation and intelisense start to working
(if we copy vue.ts content to vue file script part it's works, as well if we name our scripts something other then .vue.ts.)

Is there any way to change that pattern?

Reproducible Case

https://github.com/garaboncias/veturpack

@garaboncias garaboncias changed the title vue.ts Template Props and vue.ts Feb 26, 2021
@stefanKuijers
Copy link

I would love to see a way to change the file patterns as well. Specifically when you work in big projects where you can't just change stuff around.

@yoyo930021
Copy link
Member

TypeScript language service don't support custom file extension.
It will be very difficult to support.

@garaboncias
Copy link
Author

Could you help me what is the use of vue.ts file pattern?
Who generate that files?
As i see serviceHost.ts only consume them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants