-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
IntelliSense for event modifiers in html #780
Comments
I believe this is an inherent limitation. Vue language service requires users to open a file in project. If you open a new file in vscode, vetur will not provide intellisense since no project exists. |
Thanks for that. For the first case, I will just use projects for everything from now on, not that big of a deal. For the second case, do you think we can ever expect directive modifiers in Intellisense since even in projects they are still absent. For example; The ".prevent" and other modifiers don't get suggested. Not necessarily that big of a deal, but I think a lot of users would welcome this with open arms if it was to be implemented. :) |
To further add onto the above, there is also another "vital" part of Vue that doesn't have intellisense working as expected. When using an expression such as;
Intellisense does not work at all. Basically if you use $, intellisense breaks. Not sure if this is a vetur problem or a VSCode problem, but again I think this is another feature/(maybe bug?) a lot of users would welcome. |
For your 1st question, add {
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"strict": true,
"noUnusedLocals": true,
"noImplicitAny": true,
"outDir": "dist",
"sourceMap": true,
"lib": [
"es5", "es2015.collection", "es2015.promise", "dom", "es2016.array.include"
],
"allowJs": true
}
} For your 2nd question, we do offer I'll just use this issue to track event modifiers intellisense. |
Need to have a better default jsconfig/tsconfig for projects without one. |
Info
Problem
Not entirely sure if this is a "bug". However, if it isn't then consider this a suggestion.

When operating in VScode's default JavaScript "Language mode", Intellisense works perfectly as seen below;
However, when trying to achieve the same thing in the Vue "Language mode" that Vetur provides, Intellisense suddenly breaks with vanilla JS code like below;

Something else I've noticed is that directives themselves get suggested in intellisense, but modifiers and other options for them don't. Is this intended? For example;

Both cases have had quite a bit of coverage as I've seen a few posts on the VueJS reddit recently and I've also been discussing with some friends and this is something we all mutually agree is a huge pain in the butt.
Reproducible Case
The text was updated successfully, but these errors were encountered: