Open icholy opened 2 years ago
I had this issue as well. Here is a pull request with a fix https://github.com/arkav/lualine-lsp-progress/pull/20
The spinner works well in ts file now. Probably some updates on upstream made this issue fixed.
@rockyzhang24 the spinner should be updating every 500 milliseconds https://github.com/arkav/lualine-lsp-progress/blob/master/lua/lualine/components/lsp_progress.lua#L25
@icholy Yes it works and updates as expected on my side.
@rockyzhang24 which versions of neovim, lualine-lsp-progress, and typescript-langauge-server do you have installed?
@icholy neovim version: NVIM v0.8.0-dev+1660-g9e4286294 (the nightly) lua-lsp-progress: normally installed and the latest commit typescript-language-server: 0.10.0, the latest
I cloned a large repo supabase
to make the progress noticeable.
@rockyzhang24 those are the begin / end progress notifications coming through. If you open a larger project (on a slower computer), you'll notice that it's not updating correctly. Your computer is loading the project so quickly that you're not seeing the issue.
Not really. They are not just begin and end progress. See the screenshot below.
Both the first two pics are in the "progress" step. Thanks.
I just checked mine again and I am getting 1 update while (In Progress)
. Again, if you manage to find a project that takes more than a few seconds to load, you will see the issue.
@icholy Let me find a large project and try it again.
Update:
Yes, you're right. I tested again in a large ts repo and the spinner was stuck after one update while (In Progress)
until (Completed)
.
@arkav Could you please merge the PR to fix this issue? Thanks a lot.
@rockyzhang24 out of curiosity, what kind of machine (specs) are you running on?
@icholy 16 inch MacBook Pro with M1 Pro, 32GB Memory + 1TB SSD.
The spinner doesn't update when using typescript-language-server.
The LSP doesn't send
$/progress
reports aside frombegin
andend
(because the underlying tsserver doesn't support them). I proposed sending fake progress reports, but that wasn't accepted. https://github.com/typescript-language-server/typescript-language-server/pull/373Is there a way to work around this?