dance
dance copied to clipboard
Dance waits for language server to finish its actions before interpreting input as commands
I'm using Dance with clangd in a largish codebase where clangd actions (like applying semantic highlighting) sometimes take a second or two to execute. I'm not sure if this is Dance's bug but basically while clangd is doing things, Dance doesn't interpret my input at all. Generally the way this looks is:
- I type some code
- I exit insert mode by hitting escape
- I type :save
or something -
:save
is inserted into the buffer because Dance didn't exit insert mode, because it's waiting for clangd to update things after I edited them.
Is there some way for Dance to achieve higher priority than the language server? It seems really strange to me that these two things should happen synchronously, but what gets me is that the VS Code window is obviously accepting my input asynchronously to the language server, just that Dance isn't actually interpreting anything because it's waiting (synchronously) for clangd.
Does Dance have any control over this behaviour or is it a clangd bug? Or a design issue in VS Code?
Thanks!
Unfortunately, extensions having a negative impact on other extensions is a known issue (https://github.com/microsoft/vscode/issues/73041).
I guess the issue is indeed that clangd
is slowing down the extension host, though I'm not sure what could be the issue.