VS Code - 如何回滚扩展/安装特定的扩展版本 [英] VS Code - how to rollback extension/install specific extension version

查看:35
本文介绍了VS Code - 如何回滚扩展/安装特定的扩展版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚获得 Golang 扩展的更新,但它似乎已损坏,在 package main 上报告错误,这实际上只是我的导入列表,没有任何有用的信息(请参见下面的屏幕截图).拒绝 lint 或做任何令人讨厌的有用的事情.

所以我想快速跳转回以前的版本,我在VS Code中怎么做?我似乎根本无法在文档中找到它.

注意:我使用 VS Code 1.10.1 版,只有 golang 包.代码是有效的golang.

解决方案

来自 v1.30 发行说明:

Just got an update for the Golang extension and it appears to be broken, reporting an error on a package main that's literally just a list of my imports with no useful information (see screenshot below). It's refusing to lint or do anything useful which is annoying.

So I want to quickly jump back to the previous version, how can I do this in VS Code? I can't seem to find it in the docs at all.

NB: I'm using VS Code version 1.10.1 with only the golang package. The code is valid golang.

解决方案

From v1.30 release notes: install previous versions of extensions.

You can now go back to a previous version of an extension if there are issues with the current version. VS Code provides an Install Another Version action on an installed extension which shows a dropdown of available versions.

The option to install another version is in the context menu. Or the gear icon for each extension.

For me when I do this - without "Disable Auto Updating Extensions" (I assume that the Debugger for Chrome is such an extension) it does not auto-update on reload or close/open but shows a button for that extension to install the latest version instead.

So it appears you don't have to disable all auto-updating extensions just to revert one extension to an older version and keep it at that older version. [leave a comment if you find that isn't true, thanks]

这篇关于VS Code - 如何回滚扩展/安装特定的扩展版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆