Skip to content

VSCode Intellisense slows down with @gluestack-ui/themed imports #2102

Open
@DavidAmyot

Description

@DavidAmyot

Description

I expect the @gluestack-ui/themed imports to not impact VSCode Intellisense performance.

CodeSandbox/Snack link

No response

Steps to reproduce

  1. Have some imports such as import { Box, Fab, FlatList, Heading, Text } from "@gluestack-ui/themed";
  2. Make a typo somewhere to trigger an error.
  3. Hover on where you made the typo and wait for it to show there's an error.
  4. Remove the typo, comment out the @gluestack-ui/themed imports and repeat step 2 and 3.
  5. Notice that the Intellisense is much faster.

gluestack-ui Version

latest

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

Tagging devs from previous thread: @surajahmed @ankit-tailor


Related prs

Related closed PR I made (unresolved): #1976
Another related closed PR: #903


Diagnostics with Gluestack:

"@gluestack-style/react": "^1.0.53",
"@gluestack-ui/config": "^1.1.18",
"@gluestack-ui/themed": "^1.1.22",

Files:             1890
Lines:           241725
Identifiers:     331450
Symbols:         992031
Types:           130308
Instantiations: 5875268
Memory used:    778107K
I/O read:         0.05s
I/O write:        0.00s
Parse time:       0.79s
Bind time:        0.21s
Check time:      32.26s
Emit time:        0.00s
Total time:      33.26s

Diagnostics without Gluestack:

Files:             1455
Lines:           225476
Identifiers:     302281
Symbols:         229877
Types:            37342
Instantiations:  163721
Memory used:    339399K
I/O read:         0.04s
I/O write:        0.00s
Parse time:       0.62s
Bind time:        0.19s
Check time:       0.51s
Emit time:        0.00s
Total time:       1.31s

Issue

Sometimes it's so slow I have to run the Reload Window command from the command palette on VSCode.

There seems to be a problem with Gluestack and typescript, do you not have those issues on your end @ankit-tailor ? Are your tsc diagnostics fast?

My previous issue here was closed, but the problem is still existing.

Demo video:
https://github.com/gluestack/gluestack-ui/assets/60398892/e972600b-e3d4-49aa-9830-8a1ab2ca51c0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvscode snippetsvscode plugins & snippets

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions