python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

separate language server to standalone directory , avoid re-download it when extension auto update

Open luliangce opened this issue 4 years ago • 4 comments

I notice that when python extension update, a new extension directory like ~/.vscode-server/extensions/ms-python.python-2020.5.80290 will be set up.
then i have to re-download the same version of language server because the old one was deleted by this update. it's not easy, because I am in China mainland. I have to wait for some miniutes with less than 10 kb/s network. is there any possible to avoid this unnecessary download ?

luliangce avatar May 21 '20 02:05 luliangce

/cc @jakebailey @judej

karthiknadig avatar May 22 '20 17:05 karthiknadig

This is purely an extension issue; the fix would be to store the downloaded code in the extension's global storage area rather than its folder. This is a bit more complicated as there would need to be logic to remove old versions (as the folder stays forever).

jakebailey avatar Jun 19 '20 17:06 jakebailey

Moved it to LS repo since the LS integration with the extension is owned by the LS team.

karthiknadig avatar Jun 19 '20 17:06 karthiknadig

Going to leave this open for a bit, will talk w/ PMs to see if we want to do this.

jakebailey avatar Jun 19 '20 18:06 jakebailey