You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unix系统下配置VS Code与VSTS(TEE-CLC)协作遇阻求助

Fixing Local Folder Mapping Issues with TEE-CLC and VS Code VSTS Plugin 1.22.0

Hey there, I’ve run into this exact folder mapping snag with TEE-CLC and the VS Code VSTS plugin before—let’s walk through the most likely fixes to get you sorted:

Step 1: Manually Map the Folder via TEE-CLC Command Line

Sometimes the VS Code plugin relies on the underlying TEE-CLC workspace configuration being correct first. Skip the plugin’s UI for mapping and run this command directly in your terminal (replace placeholders with your actual paths):

tf workfold -map $/YourProject/Full/Server/Path /absolute/local/folder/path -collection:https://dummy.visualstudio.com/ -workspace:MyWorkspace
  • Critical Notes:
    • Use the full server path starting with $/ (e.g., $/MyTeamProject/Source/)—partial paths will fail.
    • Use an absolute local folder path (no relative paths like ./my-folder).
    • Ensure the local folder is empty (or not tracked by another version control tool like Git) to avoid conflicts.

Step 2: Verify Your VS Code tfvc.location Configuration

Double-check that your VS Code setting points directly to the TEE-CLC executable, not just the folder:

  • On macOS/Linux: Should point to the tf script (e.g., /Users/you/tee-clc-14.123.1/tf)
  • On Windows: Should point to tf.cmd (e.g., C:\tools\tee-clc-14.123.1\tf.cmd)

To confirm:

  1. Open VS Code settings (Ctrl/Cmd + ,)
  2. Search for tfvc.location
  3. Paste the full path to the executable and save

Step 3: Reload the Workspace in VS Code

The plugin might not automatically detect your new manual mapping. Force a reload:

  1. Open the command palette (Ctrl/Cmd + Shift + P)
  2. Search for TFVC: Reload Workspace
  3. Select your MyWorkspace from the list

Step 4: Validate Workspace and Permissions

  • Check if your mapping was saved correctly by running:
    tf workfold -collection:https://dummy.visualstudio.com/ -workspace:MyWorkspace
    
    You should see a line like $/YourProject/Path -> /local/folder/path.
  • Test server path access with:
    tf ls $/YourProject/Path -collection:https://dummy.visualstudio.com/
    
    If this fails, you might have permission issues on the VSTS server—double-check your access to the project.
  • Ensure your local folder has read/write permissions (no sudo/Admin restrictions blocking the plugin).

Step 5: Clean Up Old or Invalid Mappings

If you tried mapping before and have leftover invalid entries, delete them first:

tf workfold -unmap /old/local/path -workspace:MyWorkspace

Then re-run the mapping command from Step 1.

Step 6: Enable CLI Usage in the Plugin

Make sure the VS Code plugin is using your TEE-CLC instead of any built-in tools:

  1. Open VS Code settings
  2. Search for tfvc.useTeamFoundationCli
  3. Check the box to enable this setting

Give these steps a try in order—most of the time, it’s a small syntax error in the path or a missed reload that’s causing the block.


内容的提问来源于stack exchange,提问作者Ruben Vargas Monge

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 07:32:40