VS Code 和 Arch Linux 软件包网站上的 “Code” 软件包之间有什么区别?

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

What is the difference between VS Code and the "Code" package on the Arch Linux packages website?

问题

从我的研究中,我遇到了一些相互冲突的信息:

我首次在Arch Linux软件包网站上看到了对“code”的提及1。看起来“code”是Arch Linux社区仓库中可用的一个软件包。软件包大小约为14.3 MB。我安装了它,它看起来与VS Code完全相同。

我进行了一些在线研究,以了解VS Code和Code之间的区别。我参考了几个来源,包括StackShare 12,和3,以及Arch Linux维基上的一个页面。然而,我找到的信息要么不完整,要么含糊不清,让我对这两个工具的确切区别感到不确定。因此,我正在寻求进一步的指导和全面的解释。

请注意,虽然提供的搜索结果提到了VSCode、VSCodium、Xcode和GitHub,但其中没有一个明确提到了一个名为“Code”的工具。因此,关于“Code”的信息匮乏,这使得很难提供精确的比较。有可能“Code”指的是不同的工具,或者可能没有在提供的搜索结果中提及。为了更准确地比较VS Code和Code之间的区别,进一步的澄清或额外的背景信息将会有所帮助。

英文:

From my research, I've come across some conflicting information:

I first saw the mention of "code" on the Arch Linux packages website. It appears that "code" is a package available in the Arch Linux community repository. The package size is approximately 14.3 MB. I installed it and it looks exactly like VS Code.

I've conducted some online research to understand the differences between VS Code and Code. I referred to several sources, including StackShare 1, 2, and 3, and a page on the Arch Linux wiki. However, the information I found was either incomplete or ambiguous, leaving me uncertain about the exact differences between the two tools. Therefore, I'm seeking further guidance and a comprehensive explanation.

Please note that while the provided search results mention VSCode, VSCodium, Xcode, and GitHub, none of them specifically address a tool called "Code." Therefore, the lack of information on "Code" makes it difficult to provide a precise comparison. It's possible that "Code" refers to a different tool or may not have been mentioned in the search results provided. Further clarification or additional context would be helpful in order to address the difference between VS Code and Code more accurately.

答案1

得分: 1

以下是要翻译的内容:

该页面 https://archlinux.org/packages/community/x86_64/code/ 显示

> 描述:Visual Studio Code(vscode)编辑器的开源构建
> 上游网址:https://github.com/microsoft/vscode

对我来说,这很清楚地说明它是VS Code的构建版本。您可以在 https://github.com/microsoft/vscode/wiki/How-to-Contribute 找到有关构建和运行VS Code的说明。

还请参阅@chrisdias(VS Code团队成员)的这条评论,他们写道:

> 关于所有这些的很酷的事情是,您可以选择使用遵守我们许可证的Visual Studio Code品牌产品,或者您可以直接从vscode存储库构建工具的版本,遵循MIT许可证。
>
> 这是它的工作原理。当您从vscode存储库构建时,您可以通过自定义product.json文件来配置生成的工具。此文件控制诸如Gallery终点、“Send-a-Smile”终点、遥测终点、标志、名称等内容。
>
> 当我们构建Visual Studio Code时,我们确切地执行此操作。我们克隆vscode存储库,放置一个带有Microsoft特定功能(遥测、Gallery、标志等)的自定义product.json,然后生成一个在我们许可证下发布的构建版本。
>
> 当您从vscode repo克隆并构建时,默认的product.json中没有配置这些终点。因此,默认情况下,您将生成一个遵循MIT许可证的“干净”构建(请注意,我进行了此提交以帮助更加清晰地说明这一点)。

这可能与您在此Arch包中看到的情况类似:一个VS Code的构建版本,就是VSCodium

不同之处在于它们用于构建的product.json。如果您点击“源文件”链接(位于您提供的页面https://archlinux.org/packages/community/x86_64/code/的右侧边栏中),您将看到一个名为product_json.diff的文件,对我来说,它只是默认的product.json之上的一个补丁。

另外,我不会对您看到的软件包管理器将“code”用作VS Code的别名感到惊讶。在Snap store上,VS Code已注册为“code”。https://snapcraft.io/code。

英文:

The page https://archlinux.org/packages/community/x86_64/code/ says

> Description: The Open Source build of Visual Studio Code (vscode) editor
> Upstream URL: https://github.com/microsoft/vscode

which reads pretty clearly to me that it's a build of VS Code. You can find the instructions for building and running VS Code at https://github.com/microsoft/vscode/wiki/How-to-Contribute.

See also this comment from @chrisdias (a member of the VS Code team), which they wrote:

> The cool thing about all of this is that you have the choice to use the Visual Studio Code branded product under our license or you can build a version of the tool straight from the vscode repository, under the MIT license.
>
> Here's how it works. When you build from the vscode repository, you can configure the resulting tool by customizing the product.json file. This file controls things like the Gallery endpoints, “Send-a-Smile” endpoints, telemetry endpoints, logos, names, and more.
>
> When we build Visual Studio Code, we do exactly this. We clone the vscode repository, we lay down a customized product.json that has Microsoft specific functionality (telemetry, gallery, logo, etc.), and then produce a build that we release under our license.
>
> When you clone and build from the vscode repo, none of these endpoints are configured in the default product.json. Therefore, you generate a "clean" build, without the Microsoft customizations, which is by default licensed under the MIT license (note, i made this commit to help make this more clear).

That's probably something along the lines of you're looking at in this Arch package: a build of VS Code, and is what VSCodium is.

The difference is what product.json they use for the build. If you click the "Source Files" link in the right sidebar of the page you linked, you'll see a file called product_json.diff, which just looks to me like a patch on top of the default product.json.

Also, I'm not surprised that you're seeing a package manager use "code" as an alias for VS Code. on the Snap store, VS Code is registered as "code". https://snapcraft.io/code.

huangapple
  • 本文由 发表于 2023年5月10日 20:20:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76218356.html
匿名

发表评论

匿名网友

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

确定