vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.76k stars 594 forks source link

TS template IntelliSense not available for keys added via augmenting Vue types #1331

Open ghost opened 5 years ago

ghost commented 5 years ago

Info

Problem

When adding extra keys to the instance through augmenting Vue types, they can be accessed inside component <script> tags as expected, but not within <template> expressions.

Reproducible Case

ktsn commented 5 years ago

Is it still happening on your env? I just cloned and opened your repro but it looks works fine.

Screenshot 2019-06-15 at 8 58 45 PM

ghost commented 5 years ago

@ktsn Thanks for looking into it. That's strange. It's still the same for me, but everything else works as expected. Any idea as to what might be the reason?

octref commented 5 years ago

Hmm, the only difference between you two seems to be Win vs Mac. Probably related to path handling...

ghost commented 5 years ago

I was thinking that too. Still, pretty strange that there's no issue with the <script> section of the same file. Wish Vetur's JSX support was on par with templates.

cyberbit commented 5 years ago

I have a colleague with the exact same codebase and plugins that does not have this issue. He also runs a Mac. When he is back in, I'll try to come up with a complete plugins and settings list, as well as installed software.

On Wed, Jun 19, 2019 at 2:07 AM Pine notifications@github.com<mailto:notifications@github.com> wrote:

Hmm, the only difference between you two seems to be Win vs Mac. Probably related to path handling...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/vuejs/vetur/issues/1331?email_source=notifications&email_token=ABYCPJ2DJJTI3ZB5M43HMZDP3HLJZA5CNFSM4HXD5YC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYA5DKQ#issuecomment-503435690, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABYCPJ4BSOTYCAT4W3B23T3P3HLJZANCNFSM4HXD5YCQ.