-
Notifications
You must be signed in to change notification settings - Fork 30
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
Makes VSCode typecheck veeery slow #56
Comments
Yep, experiencing the same thing. It’s got to the point where we disable the plugin locally and turn on TS strict mode while working, and reenable it before commiting, so the precommit typechecking respect the plugin ignore comments |
@selrond @ArthurGoupil Did it ever work fast beforehands at some point in time in vscode? |
Don’t think so |
I'm not a dev for this plugin, but I have a pain similar to yours, which prevents me from adopting this stuff company-wide. Once I wrap up my current commitments, I want to try one thing and possibly have a solution. Basically, from what I see, the problem is, that we modify global project tsconfig, which ultimately would result in all of the open files being reevaluated. My idea was to create a shadow-project using language service host and basically send all calls to both actual and shadow simultaneously (so that caches are in sync), but return semantic diagnostics from only one of them. The only issue here is, that I would have to use private api, which, as we all know, is the worst idea possible. The reason I asked, if it was previously working fast was to confirm, if my suspicions were wrong and performance drawback could originate for the repo itself. Still waiting for response from @ArthurGoupil , tho) PErhaps, he could povide insights I could be missing. |
Hi @trimmurrti, same as @selrond I don't think it has already been fast |
I have been experimenting a bit with your idea @trimmurrti of keeping a separate in-memory version of the project. I have not yet tested it on a large project to see if it actually leads to any performance improvements. Here's my test plugin project: https://github.com/hnra/strict-plugin-test The API usage of |
Got the same issue. I wanted to adopt this plugin in my project, but even though the |
@rdrezner which TS version is used in your vscode? IIRC, it doesn’t work with typescript >5.2 |
TS version: |
I've just checked with The IDE usually does not report any errors. After making some manipulations on the file the IDE sometimes start to report strict mode-related errors but it completely ignores the |
Hey! There is new version that should be faster. You can install and check version 2.2.2-beta.4 and see if it works for you. #67 |
Hey @KostkaBrukowa, I checked version |
published with 2.3.0 version on npm |
Unfortunately not much changes with the new version :( |
Found this issue while debugging tsserver slowness in my work project – it appears that this plugin is the root cause. We want to continue using this plugin, so we thought of having a separate tsconfig to use with the |
Would be a first improvement indeed ! |
@arn4v have you tried |
I think I also find this plugin breaks Webstorm's error highlighting too. I am seeing with it turned on, on a large project, that Webstorm is failing to syntax highlight things like invalid property access. I think I'm gonna make a script that only turns it on during build. |
Hi,
I'm using this wonderful plugin to start the migration of my company huge codebase to typescript strict.
However it makes VSCode typecheck & intellisense very slow, are you aware of this?
If yes, do you have a potential solution in mind?
It looks like the more opened tab I have, the slower it is.
Thanks in advance!
Arthur
The text was updated successfully, but these errors were encountered: