在VSCode中使用Github Copilot ,出現(xiàn)報(bào)錯 GitHub Copilot could not connect to server. Extension activation failed: “connect ETIMEDOUT xxxx”
問題描述
在VSCode中使用 Github Copilot 編程確實(shí)爽,一開始用就停不下來。
不過有時(shí) Copilot 會莫名失效,出現(xiàn) GitHub Copilot could not connect to server. Extension activation failed: "connect ETIMEDOUT xxxx"的問題,著實(shí)令人抓狂。
解決步驟
參考各種資料,發(fā)現(xiàn)修改hosts文件即可解決。
具體方法是:
進(jìn)入C:\Windows\System32\drivers\etc
目錄中,以管理員身份打開hosts
文件,提示打開方式就使用記事本就行了。再hosts
文件中加入:
# vscode copilot config
140.82.112.5 github.com
140.82.112.5 api.github.com
這樣一段文字,保存。文章來源:http://www.zghlxwxcb.cn/news/detail-685637.html
重啟VSCode,恢復(fù)正常。??文章來源地址http://www.zghlxwxcb.cn/news/detail-685637.html
到了這里,關(guān)于VSCode中使用Github Copilot,報(bào)錯 GitHub Copilot could not connect to server. Extension activation failed的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!