使用 VS 代码连接到 TFS

Connect to TFS with VS Code

我正在尝试将 VS Code 连接到 TFS。 我设法安装了插件“Argutec Azure Repos”,在 VS Code 中为 TF.exe 创建了本地工作区更改路径,甚至弹出窗口要求我输入名称和密码。

但是在我输入凭据后没有任何反应,左下角的图标只显示“未经授权...”。

我不确定这是否应该工作或维护 VS 代码插件。如果您知道出了什么问题,请告诉我,或者如果您知道如何使用 TFS(TFVC)

连接 VSCode 的更好方法

确保工作区已创建且类型为 Local 以便扩展程序正常工作。如果需要 运行:

tf workspace /location:local /noprompt

这会将存储库切换到本地工作区。

然后使用 PAT 或“新身份验证工作流程”在我这边成功了。

注:

官方 Azure Repos 扩展已停止并弃用。它不再受到官方支持。

Sunsetting the Azure Repos VS Code extension

We're sunsetting this Azure Repos VS Code extension. On 2020-11-06 (Nov 6, 2020), we'll remove it from the VS Code Marketplace and archive the repository. If you still have it installed, you may continue to use it, but it will not receive any further investment or updates.

Why are we doing this?

Since we launched the extension four and a half years ago, Visual Studio Code has seen incredible adoption. Azure DevOps and Azure Repos have similarly continued to see amazing growth. However, use of TFVC, the centralized source control system, with VS Code has declined. The majority of VS Code users prefer Git, and therefore use of the extension has declined dramatically in the last 1-2 years. VS Code has great native Git support. Therefore we have taken the decision to discontinue support of this extension. Developers still using TFVC with VS Code will need to use an external version control client such as the tf command line.

What happened?

We shipped a final update which contains this notice but contains no other functional changes, bug fixes, etc.

On 2020-11-06 we unpublished the extension from the Visual Studio Code Marketplace. Those who already have it installed can continue to use it, but without support from Microsoft. The extension won't receive any updates, bug fixes, or security fixes, so you use it at your own risk.

We archived the GitHub repository putting it into a read-only state. This will not delete the code or historical issues (though all open issues and PRs were closed). The repository is still readable and forkable.

notice

You can get the last released version from the Releases tab on GitHub.

官方支持的路径是安装 Visual Studio Team Explorer 和 VSCode 并同时使用它们。

这个fork似乎没有对项目做实质性的改变