Code completion for props doesn't work in template
See original GitHub issueAs we see VS Code can parse props in js part of file:
But not in template. In template editor know that props
variable exists, but don’t know it’s type
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why is code completion for subclasses not working in angular ...
I wonder how this is possible in the first place: i.e. since Array.isArray(this.anonymousArray) is true , how/why does the template even see a ......
Read more >Props auto complete does not support function component #139
Just notice that for Class component the props auto complete(popup in editor) works very well, but for functional component, it can render ...
Read more >React props auto-complete in VS Code - DEV Community
Unfortunately, when it comes to React components, autocomplete doesn't work as well as vanilla JavaScript : By default when writing props ...
Read more >IntelliSense in Visual Studio Code
The editor supports "tab completion" which inserts the best matching completion when pressing Tab. This works regardless of the suggest widget showing or...
Read more >Code completion | WebStorm Documentation - JetBrains
Code completion is one of the essential features of the WebStorm editor. To show you completion suggestions, WebStorm goes through the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is a limitation of TS, not something volar can change, if you want type-safe in template you can just use
lang="ts"
.It can’t works for js, you can add
test.js
from https://github.com/johnsoncodehk/volar/issues/909#issuecomment-1024153150 to your project and check it.@Akryum I don’t think TypeScript will resolve it… Does
lang="ts"
+// @ts-nocheck
can be a option?