1. 程式人生 > >ubuntu vscode無法聯網(無法安裝extension,搜尋外掛)

ubuntu vscode無法聯網(無法安裝extension,搜尋外掛)

1. 問題描述

ubuntu安裝好vscode後,無法安裝extension;
顯示:An unknown error occured. please consult the log;
考慮是代理的問題;
這裡寫圖片描述

2. 解決方案

  1. 檢視log資訊
    refer
    keep in mind vscode is kinda “web browser“,
    so it has the usual browser developer tools (see Help -> Developer Tools), which will show you runtime errors;
    發現確實是代理問題
    這裡寫圖片描述

  2. ubuntu系統代理設定
    refer

    1. 開啟設定,點選網路
      這裡寫圖片描述
    2. 代理設定,手動改為自動,應用系統全域性
      這裡寫圖片描述
      這裡寫圖片描述
  3. 再次搜尋
    這裡寫圖片描述