Slow intellisense/suggestions. @nuxt/ui
How fast or slow are your IntelliSense suggestions? In my projects, it takes 3–5 seconds to load, and it feels unbearably slow.
2 Replies
Hi @weewyx. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the knowledge sources, it appears that some users have experienced issues with slow IntelliSense and TypeScript language features in Nuxt projects, particularly when using @nuxt/ui. Here's what we can gather from the available information:
1. IntelliSense Configuration: The Getting Started documentation for @nuxt/ui (https://ui.nuxt.com/getting-started/installation#intellisense) provides instructions on how to set up IntelliSense for Tailwind CSS classes in VSCode. This includes adding specific configurations to your
.vscode/settings.json
file to improve autocompletion for classes and UI prop suggestions.
2. TypeScript Issues: There have been reports of slow initialization of TypeScript language features in Nuxt projects. A GitHub issue (https://github.com/nuxt/nuxt/issues/26795) mentions problems with "Infinite initializing JS/TS language features and automatic import errors."
3. Potential Solutions:
- One user suggested adding "typescript.tsdk": "./node_modules/typescript/lib"
to the settings.json
file to ensure VSCode recognizes the workspace's TypeScript version GitHub comment (https://github.com/nuxt/nuxt/issues/26795).
- Another approach is to use the optimizeDeps.include
configuration in Vite to pre-bundle dependencies, which might help with performance GitHub comment (https://github.com/nuxt/nuxt/issues/26783).
4. Nuxt TypeScript Support: Nuxt provides built-in TypeScript support, but for type-checking, it's recommended to install vue-tsc
and typescript
as development dependencies Nuxt TypeScript documentation (https://nuxt.com/docs/guide/concepts/typescript).
While these sources don't directly address the 3-5 second delay you're experiencing, they do acknowledge that there can be performance issues with TypeScript and IntelliSense in Nuxt projects. The slow suggestions you're encountering might be related to these known issues.
If you continue to experience slow IntelliSense, you might want to try the suggested configurations and ensure you're using the latest versions of Nuxt, @nuxt/ui, and your IDE. If the problem persists, it would be worth reporting this specific issue to the Nuxt or @nuxt/ui GitHub repositories with details about your project setup and environment.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@938458432200146954> Kapa.ai is still learning and improving, please let me know how I did by reacting below.