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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNRESPONSIVE extension host with Drizzle, Kysely and a Big Schema #122

Open
smhmayboudi opened this issue Sep 11, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@smhmayboudi
Copy link

Describe the bug
A clear and concise description of what the bug is.

I am using Drizzle and Kysely together. I have a database schema with nearly 200 tables. I do not define any relation between Drizzle and Kysely. I have select a query with more than 5 inner join tables. When I make some changes to my select, the vs code stops working properly. The windows out put is here.

2024-09-11 14:05:10.822 [info] UNRESPONSIVE extension host: starting to profile NOW
2024-09-11 14:05:15.888 [warning] UNRESPONSIVE extension host: 'yoavbls.pretty-ts-errors' took 100% of 5003.334ms, saved PROFILE here: 'file:///var/folders/7x/rxw2srxn4jzfp15n_f8th2gh0000gn/T/exthost-acaf0e.cpuprofile'
2024-09-11 14:05:48.905 [error] Error: Aborted onWillSaveTextDocument-event after 1750ms
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1873:13070
2024-09-11 14:05:53.950 [error] Error: Aborted onWillSaveTextDocument-event after 1750ms
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1873:13070
2024-09-11 14:06:21.965 [info] Extension host (LocalProcess pid: 38659) is responsive.

Expected behavior
A clear and concise description of what you expected to happen.

Works fine.

Original error
If this bug is related to an error that is not formatting well, please
attach the original error in a code block:

Type 'number' is not assignable to type 'string'.ts(2322)

Screenshots
If applicable, add screenshots to help explain your problem.

IMAGE

@smhmayboudi smhmayboudi added the bug Something isn't working label Sep 11, 2024
@kevinramharak
Copy link
Contributor

Thanks for the report. Do you still happen to have the original cpuprofile file? If so please attach it.
The window output & the screenshot might help a lot, because I'm still not sure why the onDiagnostics task is being run in that context. But it seems this is the first issue where the stack trace is similar to another performance issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants