[v3] async patch #5394
Unanswered
RayGuo-ergou
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @johnsoncodehk
I was playing around with v3 in neovim and I face a block that almost make it unusable.
The problem is that in neovim there's async and lsp handlers are ui-blocking which means to be able to return the body to
tsserverRequest
command the only way is towait/sleep
. It results in random pause when moving cursor around, especially in large projects that will take time for tsserver to return the data.I was trying to make my own patch to solve it by using a global map and a new command when start the lsp. e.g.
however i found that the even first command
projectInfo
fails, the new command i added not even triggered. My guess is that the plugins will resister aftergetLanguageService
and theprojectInfo
is called ingetLanguageService
(I might be wrong).Can you give some advice/comment to how do i make that work? Thanks in advance. And here's the full patch.
Beta Was this translation helpful? Give feedback.
All reactions