UniqueVision / plpgsql-lsp

MIT License
51 stars 11 forks source link

How to debug high CPU ? #77

Open richardhuxton opened 1 year ago

richardhuxton commented 1 year ago

Summary

Upon startup, extension mostly just sits there occupying 100% of one core. After closing vscode it takes several seconds for the extension process to exit.

Relevant information

I have had the extension working occasionally and love it when it does. Mostly it just seems to be stuck in a loop.

Running linux (mix of ubuntu/debian stable) with v2.11.1 from the marketplace. Workspace has a lot of files that throw parsing errors (backslash commands in them for psql). These errors are shown in the output panel you can display at the bottom of the editor. After startup no further messages are logged here.

Possibly relevant points:

I don't know how I can dig any deeper into the problem - some verbose debugging mode I can enable or similar. Keen to do what I can to diagnose this. TIA.