You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if lsp-mode can have a async/unblocking version of lsp-find-definition? When I trigger goto-definition action in vscode, it seems that vscode does the job in background. When the definition is found, vscode show the target file.
I found that the lsp-find-definition can block the UI until the lsp-request returns. When the server responds slowly, it cause bad experience. I navigate the source code of lsp-mode and I found there is a function called lsp-request-async. I think the async/unblocking can be implemented technically 🤔
This discussion was converted from issue #3253 on December 12, 2021 07:55.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wonder if lsp-mode can have a async/unblocking version of lsp-find-definition? When I trigger goto-definition action in vscode, it seems that vscode does the job in background. When the definition is found, vscode show the target file.
I found that the lsp-find-definition can block the UI until the lsp-request returns. When the server responds slowly, it cause bad experience. I navigate the source code of lsp-mode and I found there is a function called lsp-request-async. I think the async/unblocking can be implemented technically 🤔
Beta Was this translation helpful? Give feedback.
All reactions