-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feature request: support async LSP file operations #19
Comments
Hey @pauldiloreto, From an LSP perspective, making it asynchronous is certainly feasible to support asynchronous LSP file operations. Here's a high-level overview of the approach:
The reason I implemented this feature synchronously is because once we exit the callback, To address this, we have a few potential solutions:
I want to be transparent about my current availability - I don't have much free time to work on this feature in the near future. However, I'm more than willing to collaborate or guide anyone interested in implementing this improvement. Contributions from the community are highly appreciated, and I'm here to offer assistance as needed. Let's keep this conversation open and see if we can find a way to enhance the user experience with lsp. |
This seems like the best approach imo, but sounds like it may take some time to get alignment on necessary changes and getting those merged as a dependency for this feature.
I like this idea too, but would be even more effort to contribute to multiple LSP servers to support this spec. Since this could be handled with the above solution of having Appreciate your transparency about availability. I think we can all relate to this. |
@antosha417 there actually are quite a lot of language servers that implement the |
Thank you for your work on this plugin, it has been working very well for me with nvim-tree so far!
I'm not sure how difficult this would be to support, however I think it would be a killer feature to support asynchronous LSP file operations. Currently, when renaming a file (especially in a larger codebase) it may take several seconds to complete the LSP file operation.
Since this is happening synchronously, it blocks the UI for several seconds until the action is completed.
Opening up this ticket here to at least start a conversation of the feasibility of supporting async LSP file operations in order to unblock the UI until the file operations are completed. Ideally once complete, it would have nvim-tree/neo-tree refresh with updated files.
The text was updated successfully, but these errors were encountered: