Skip to content

5 second delayed intellisense with Svelte Preprocess #1139

@PuruVJ

Description

@PuruVJ

Describe the bug
I have a 23 components big app, with TypeScript and SCSS. The intellisense for just about anything(Svelte related or JS related) inside .svelte files takes around 5-6 seconds to show up. In the very beginning when there was just 1 component, it was instantaneous.

This isn't a problem with my computer, because I get instantaneous intellisense in .js, .ts, .tsx file even with 100+ files in the project.

In this svelte app, the intellisense in .ts files is still instantaneous, so it's an issue with the Svelte extension only.

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo: https://github.com/puruvj/macos-web
  2. Run npm install
  3. Go to any Svelte file with some local state and try typing out variable names in the <script> tag or in the template or the snippets autocompletion of if, each, await blocks, etc. See the speed of intellisense
  4. Now, delete node_modules, go to the same .svelte file as before, and now try intellisense. It will be instantaneous now.

I think this issue is happening because of svelte-preprocess, because I have noticed this lag in every other Svelte project with TS/SCSS with svelte-preprocess, whereas projects without it are really fast.

Expected behavior
I want the intellisense to be as instantaneous with svelte-preprocess as it is is without it 🙂

System (please complete the following information):

  • OS: Windows
  • IDE: VSCode
  • Plugin/Package: Official Svelte extension for VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfPerformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions