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

Custom tags intellisense for local files #1364

Closed
3 tasks done
rohit-gohri opened this issue Jul 24, 2019 · 3 comments · Fixed by #2018
Closed
3 tasks done

Custom tags intellisense for local files #1364

rohit-gohri opened this issue Jul 24, 2019 · 3 comments · Fixed by #2018

Comments

@rohit-gohri
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Linux (Ubuntu 16.04)
  • Vetur version: 0.21.1
  • VS Code version: 1.36.1

Problem

I found that there is no (documented) way to specify a tags.json and attributes.json file for custom-tags in one's own project, that are not in any dependency.

I only found https://vuejs.github.io/vetur/framework.html#custom-tags-attributes. But that is only for modules being published on npm and being used as a dependency. What about custom-tags in own project?

I tried adding a "vetur" key to my project and adding corresponding files, but it didn't pick anything up.

I think this should be trivial to implement as the major work is already done.

@phiter
Copy link

phiter commented Feb 13, 2020

This functionality also has no proper documentation whatsoever.

I could only have an idea of what is possible by looking at other framework implementations.

It shouldn't be that hard to make a table with the available options for both tags and attributes.

@rchl
Copy link
Collaborator

rchl commented Jul 22, 2020

I see that PR adds an example for tags.json. It would be also nice to provide an example for attributes.json.

@octref
Copy link
Member

octref commented Jul 22, 2020

@rchl I plan to have a more comprehensive doc for the format in by next release. I'll fix #1757 with it. Please subscribe to that issue.
It'll be similar to https://github.com/microsoft/vscode-html-languageservice/blob/master/docs/customData.md

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

Successfully merging a pull request may close this issue.

4 participants