"Unable to open 'Extension: xxx': An unknown error occurred."
VSCode插件頁面閃退問題
參考GitHub上VSCode的issue:95427的解決方案,我清除了DNS緩存,該閃退問題就解決了。
Windows 清除DNS緩存
ipconfig /dnsflush
在issue:95427中GitHub@Zorono提供的完整解決步驟如下
- I Changed my Domain Name Servers from my Router Modem's cPanel for both the DHCP and DNS to Google DNS(Primary: 8.8.8.8 Secondary: 8.8.4.4)
- I flushed my Adapter's DNS Resolver Cache using the command ipconfig /flushdns (Windows)
- I stopped the DNS Caching Services using the command net stop dnscache (Windows)
- Make sure to Change your Adapter's IPv4 Domain Name Servers
Mac OS 10.10.4及之后版本清除DNS緩存
sudo killall -HUP mDNSResponder
其他版本參考Apple官網的Reset the DNS cache in OS X
Linux根據不同發行版本查找
(有很多Linux發行版在系統層面不使用DNS緩存)