VScode便携版的data文件夹中的文件是必需的吗?

huangapple go评论74阅读模式
英文:

The files in the data folder of VScode portable are necessary?

问题

我使用的是VScode便携版,发现数据文件夹中的文件很大。超过4GB。有一些重复的。例如,github.copilot-1.17.0和github.copilot-1.18.0。我猜其中一个是旧的/不必要的。所以,删除它们可以吗?这是截图:VScode便携版的data文件夹中的文件是必需的吗?

版本:1.77.3<br>
提交:704ed70d4fd1c6bd6342c436f1ede30d1cff4710<br>
日期:2023-04-12T09:16:02.548Z<br>
Electron:19.1.11<br>
Chromium:102.0.5005.196<br>
Node.js:16.14.2<br>
V8:10.2.154.26-electron.0<br>
操作系统:Windows_NT x64 10.0.19045<br>
沙盒:否<br>

英文:

I'm using VScode portable and found the files in the data folder are big. It's over 4GB. There are some duplicated ones. eg) github.copilot-1.17.0 and github.copilot-1.18.0. I guess one of them is kind of old/unnecessary one.
So, is it okay to delete them? Here is the screenshot:
VScode便携版的data文件夹中的文件是必需的吗?

Version: 1.77.3<br>
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710<br>
Date: 2023-04-12T09:16:02.548Z<br>
Electron: 19.1.11<br>
Chromium: 102.0.5005.196<br>
Node.js: 16.14.2<br>
V8: 10.2.154.26-electron.0<br>
OS: Windows_NT x64 10.0.19045<br>
Sandboxed: No<br>

答案1

得分: 1

那些是扩展安装在extensions/文件夹中的扩展。您需要安装您想要使用的扩展。至于重复的扩展,是的,您应该可以安全地删除较旧(较早版本号)的扩展。如果您想要检查当前在VS Code中使用的扩展版本,请打开扩展视图,并将鼠标悬停在感兴趣的扩展上。版本号将在悬停信息中显示。

可能与此问题有关的问题是:VSC不删除旧扩展#179022,该问题报告者也在Windows上使用VS Code Portable。其中一位维护者在那里发表评论,据说如果您在日志中看到形式为&lt;timestamp&gt; [info] Marked extension as uninstalled &lt;extension folder name&gt;的消息,那意味着在重新启动VS Code时将删除该扩展的版本。此问题仍在讨论和分类时写作。

英文:

Those are extension installations in the extensions/ folder. You'll need the ones for the extensions you want to use. As for the duplicates, yes, you should be able to safely delete the older (earlier version number) ones. If you want to check what version of an extension is being used at present in VS Code, then open the Extensions View, and hover your mouse over the extension of interest. The version number will be in the hover info.

Possibly related is this issue ticket: VSC not deleting old extensions #179022, where the issue reporter is also on Windows with VS Code Portable. One of the maintainers commented there that supposedly if you see a message of the form &lt;timestamp&gt; [info] Marked extension as uninstalled &lt;extension folder name&gt; in the logs, that means that version of the extension will be removed when VS Code is restarted. The issue is still being discussed and triaged at the time of this writing.

huangapple
  • 本文由 发表于 2023年5月15日 12:04:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/76250810.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定