"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缓存)