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
Vue 2.6.x slow/unresponsive intellisense? #2214
Comments
If the intelligence is slow, you might try performance tracking for vue / vue-tsc: https://github.com/microsoft/TypeScript/wiki/Performance#performance-tracing Or maybe your project just has a few very large JS files that are causing this problem. You can check this by running Similar issue: #2210 You can also try to provide me with the VSCode debug flame graph: #413 |
@johnsoncodehk Thanks for the reply! Indeed there are some performance hotspots in our codebase. Regarding the |
Yes, type evaluation performance is tied to intellisense performance. (If you've found some performance hotspots don't mind the file size.) |
Closed Since this problem is not related to Volar, if you still have problems, you can discuss in this thread: |
Issue
Working on a large JS/TS hybrid project using Vue 2.6.14 version.
Intellisense becomes slow/unresponsive on SFC (.vue) and JS/TS files alike (more pronounced in .vue files).
This seems to be hugely alleviated by setting the "allowJs" option to false in tsconfig.json.
However, since the project is a hybrid at the moment, setting the option to false is unconceivable, as it would hinder development.
The difference can be such that, with allowJs set to false, intellisense is almost immediate when typing. When allowJs is set to true, it can take up to 10 seconds or more to offer any sugestion, if it offers at all (sometimes it does not).
Context
I'm working on a web project which started out with the usage of global JS via regular <script> usage and as since been slowly transported to Vue, with SFC pages/components. As such, the project has a large number of mixed .vue, .js, .ts and .d.ts files.
Note: some of the SFC and JS files in the workspace are over 800 lines in content.
Environment
I cannot supply the repo because it belongs to the company I work for, and there's non-disclosable info.
I would like to know if there's any way I can provide some kind of log/diagnostic from VSCode / Volar to help diagnose the slow response speeds.
The text was updated successfully, but these errors were encountered: