VSCode 插件页面闪退问题 unable to open 'Extension: xxx': An unknown error occurred


"Unable to open 'Extension: xxx': An unknown error occurred."

VSCode插件页面闪退问题

参考GitHub上VSCode的issue:95427的解决方案,我清除了DNS缓存,该闪退问题就解决了。

Windows 清除DNS缓存

ipconfig /dnsflush

在issue:95427中GitHub@Zorono提供的完整解决步骤如下

  1. 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)
  2. I flushed my Adapter's DNS Resolver Cache using the command ipconfig /flushdns (Windows)
  3. I stopped the DNS Caching Services using the command net stop dnscache (Windows)
  4. 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缓存)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM