zrilman
zrilman12mo ago

VS Code becomes unresponsive

Hello everyone, I've started to experience huge performance issues with my project that's based on create-t3-app. The issue is that after some work the intellisense and every extension becomes unresponsive. I'm aware that tRPC projects have issues with defining query/mutation props as any sometimes. But this is another level. It occurs randomly, after 5-10mins of work. The only solution for now is to quit VS Code. Then I reopen it and it crashes, after the crash I can open it and continue working normally as I usually do. Could it be possible that type aliases cause this issue? Here's how my tsconfig.json looks like
"baseUrl": ".",
"paths": {
"@pages/*": ["src/pages/*"],
"@schemas": ["./src/common/schemas/index"],
"@schemas/*": ["./src/common/schemas/*"],
"@endpoints": ["./src/common/endpoints.ts"],
"@components/*": ["./src/components/*"],
"@providers": ["./src/providers/index.ts"],
"@api": ["./src/utils/api.ts"],
"@apiRoot": ["./src/server/api/root.ts"],
"@trpc": ["./src/server/api/trpc.ts"],
"@hooks": ["./src/common/hooks/index.ts"],
"@hooks/*": ["./src/common/hooks/*"],
"@zodSchemas": ["./src/common/schemas/index.ts"],
"@constants": ["./src/common/constants.ts"],
"@utils": ["./src/common/utils.ts"],
"@typePredicates": ["./src/common/typePredicates.ts"],
"@vapidkeys": ["src/common/vapidKeys.ts"],
"@services": ["src/server/api/services/index.ts"],
"@services/*": ["src/server/api/services/*"],
"@stripe": ["src/server/stripe/index.ts"],
"@db": ["src/server/db.ts"],
"@auth": ["src/server/auth.ts"]
},
"baseUrl": ".",
"paths": {
"@pages/*": ["src/pages/*"],
"@schemas": ["./src/common/schemas/index"],
"@schemas/*": ["./src/common/schemas/*"],
"@endpoints": ["./src/common/endpoints.ts"],
"@components/*": ["./src/components/*"],
"@providers": ["./src/providers/index.ts"],
"@api": ["./src/utils/api.ts"],
"@apiRoot": ["./src/server/api/root.ts"],
"@trpc": ["./src/server/api/trpc.ts"],
"@hooks": ["./src/common/hooks/index.ts"],
"@hooks/*": ["./src/common/hooks/*"],
"@zodSchemas": ["./src/common/schemas/index.ts"],
"@constants": ["./src/common/constants.ts"],
"@utils": ["./src/common/utils.ts"],
"@typePredicates": ["./src/common/typePredicates.ts"],
"@vapidkeys": ["src/common/vapidKeys.ts"],
"@services": ["src/server/api/services/index.ts"],
"@services/*": ["src/server/api/services/*"],
"@stripe": ["src/server/stripe/index.ts"],
"@db": ["src/server/db.ts"],
"@auth": ["src/server/auth.ts"]
},
5 Replies
Nick
Nick12mo ago
Ctrl+Shift+P "restart typescript" That should sort it without a full restart I've been experience language server issues in TS since the beginning of time. Typesafe tools like tRPC don't help matters though
zrilman
zrilman12mo ago
I've tried, but the issue remains :/
Dani;
Dani;12mo ago
could be related to an extension, try to open up a "vanilla" vscode instance and see if that works
spaghet
spaghet5mo ago
@zrilman did you ever fix this?
zrilman
zrilman5mo ago
Sadly no. I still have no idea what's causing the issue. But I haven't worked on that project since June. Maybe upgrading trpc would fix the issue, but I can't guarantee