-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Build] Support IDE Intellisense #4690
Comments
By default nothing is needed in VS Code and it will start automatically type checking things. This is why in a plain However, if one adds a In the config file I added in #4643 specifies for VS Code to check plain JS files (i.e. actually show errors) due to the Without To test this out, you can write the following snippet in any file (while on that #4643 branch which isn't merged yet, and after all dependencies are installed) then you'll see a type error and you can hover on the variable names to see more information: /* @type {number} */
const foo = 123
/* @type {string} */
let bar = foo // type error: number is not assignable to string Although this error is displayed by VS Code, it has nothing to do with our build system and that continues to work as-is. It is purely a cosmetic feature that we see in the editor for dev convenience (converting files to It's more like a lint feature that doesn't require code changes. If we want to, we can set |
Verified Fixed |
Verified Fixed. |
Summary
Let's summarize what all is needed for IDE Intellisense support and maybe some links to how it works
Note: Added a Github Discussion for this Typescript topics: #4693
The text was updated successfully, but these errors were encountered: