vscode : how to fix "XHR Failed" when you open extension panel

When trying to install an extension in vscode, you get an error XHR Failedlike this issue:

please try this solution:

1)  open file  :

     sudo subl  /usr/share/applications/code.desktop  

2) modify the Exec value with red argument and save the change  :

       Exec=/usr/share/code/code --unity-launch --ignore-certificate-errors %F

3) restart vscode via command in terminal window : code

4) click toolbar "Extension" button and check extension again,



版权声明:本文为jiehuaou原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。