fannheyward / coc-deno

Deno extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CocRestart not needed for disable tsserver

chemzqm opened this issue · comments

coc-tsserver 1.9.10 could watch for that configuration.

workspace.nvim.command(`CocRestart`, true);

Testing with coc-tsserver 1.9.11, after set tsserver.enable to false, the coc-tsserver is still activated.

After some tracings, after tsserver.enable to false, coc-tsserver will stop itself.

https://github.com/neoclide/coc-tsserver/blob/4f480eda46166a2d3d366ae55d43e9d77bf5a31f/src/server/index.ts#L34-L38

But looks like coc.nvim didn't reload the extensions? and the diagnostics.

No need to reload the extension, I've fixed coc-tsserver to clear diagnostics on dispose.