Abnormally slow performance of VSCode Intellisense #30
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
rfc
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: teidesu/mtcute#30
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After any change to the source code in a file with mtcute imports Intellisense operations take up to 5-10 sec to perform.
To Reproduce
Try to invoke .call method for TelegramClient object, e.g.:
After typing "tg." it takes 5-10 sec to show method list.
Expected behavior
"Go to Definition" and "Autocomplete" operations perform in less than 1 sec.
Logs
Environment
Additional context
The codesandbox repo below can be opened locally with VSCode.
CodeSandbox
i feel like this is an issue with vscode/tsserver in itself, which doesn't handle large discriminated unions too well.
if i remove the
tg.call()
call things seem to become better, so it's probably because of that. or the use of theMustEqual<T>
helper in the.call()
.either way, it's unlikely there's much i can do to improve things performance-wise
i'll keep this issue open for now, things might improve with the upcoming esm codegen rewrite
ok in fact it is related to
MustEqual