Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typescript] VSCode autocompletion is slow with TypeScript #40114

Open
razb-viola opened this issue Dec 5, 2023 · 3 comments
Open

[typescript] VSCode autocompletion is slow with TypeScript #40114

razb-viola opened this issue Dec 5, 2023 · 3 comments

Comments

@razb-viola
Copy link

razb-viola commented Dec 5, 2023

Steps to reproduce 馃暪

I have installed the latest version 5.14.x with a blank new vite project with TypeScript and nothing else.
Then I imported a button as described in the docs, and the button is very nice and looks great, however the VSCode autocompletion is like really slow.

If you try to add attributes to get suggestions to any other HTML native element, like <select> or <p> for example, autocompletion the IDE is near 0ms. When you do the same with <Button> or <Autocomple> of mui, it's around 800ms.

I am using a very strong hardware.

Seems impossible to use it like that.
Anyone has this issue as well?

Current behavior 馃槸

Slow VSCode autocompletion.

Expected behavior 馃

Autocompletion should be sharp, smooth, and extremely fast without compromising.

Context 馃敠

No response

Your environment 馃寧

No response

@razb-viola razb-viola added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 5, 2023
@zannager zannager added typescript component: autocomplete This is the name of the generic UI component, not the React module! labels Dec 6, 2023
@mj12albert mj12albert added external dependency Blocked by external dependency, we can鈥檛 do anything about it and removed component: autocomplete This is the name of the generic UI component, not the React module! status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 6, 2023
@mj12albert mj12albert changed the title VSCode autocompletion is slow with TypeScript [typescript] VSCode autocompletion is slow with TypeScript Dec 6, 2023
@mj12albert mj12albert removed the external dependency Blocked by external dependency, we can鈥檛 do anything about it label Dec 6, 2023
@razb-viola
Copy link
Author

Hi, I tried to inspect these logs as you said, but its like 50k lines of rows, just without doing anything, maybe added the variant attribute to the <Button> component. Also, many of the lines are completely red, so it's definitely not readable.

I don't think that this is a VSCode issue, since every package works as smooth as light speed.
This problem is only with material ui with TypeScript.

@oliviertassinari
Copy link
Member

Related to #19113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants