WhoIsSethDaniel / lualine-lsp-progress.nvim

LSP progress lualine component
MIT License
62 stars 3 forks source link

Progress message stucks at "Initializing..." when opening a single .js(or .ts) file with typescript-language-server. #11

Closed BurningLutz closed 1 year ago

BurningLutz commented 1 year ago

When I open a single .js file (which is not belonging to a project) like nvim index.js,the progress message always stucks at "Initializing...".

image

After I viewed the :LspLog, I found that typescript-language-server never send $/progress notifications (which is not mandatory according to the specification) in such simple cases, and since the plugin updates progress messages only when LspProgressUpdate event is triggered, the progress message stucks forever.

WhoIsSethDaniel commented 1 year ago

Yes, I've filed #12 to fix this issue. Until that issue is resolved you should place this server in the hide configuration list.

I should be able to deal with this over this coming weekend. Thanks for the report.

WhoIsSethDaniel commented 1 year ago

Hi, @BurningLutz . I believe this issue should be resolved. If you have placed tsserver in hide you should be able to remove it fro that and it should show 'initializing' followed by disappearing from the status line over the next few seconds (by default 3 seconds).

BurningLutz commented 1 year ago

It works now :D, thanks!