Sumit patel
Sumit patel

Reputation: 3903

how to locking file in vscode?

Notes: I tried all questions & answers related this topic. Additionally and I tried related questions and try to solve it but no the success. So please read my question thoroughly.

I have to Add my Project to Source control in VSCode. I have Checkout File Then File Icon Unlock another Wise icon is a lock. but I don't Know How to achieve this Anybody Can Help me.

I want all Sever File is Locked with icons.

Below I attache screen Short without lock file.

enter image description here

Upvotes: 0

Views: 10093

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30422

To connect TFS, you need to install Visual Studio Team Services Extension for Visual Studio Code

Based on my test, we cannot lock files with icons, there isn't such a built-in feature for now.

The following are the current features supported by the extension:

  • Execute all basic version control actions such as add, delete, rename, move, etc.
  • View local changes and history for your files
  • Include and Exclude changes (and move files between the two states)
  • Merge conflicts from updates
  • Check-in and update local files
  • Associate work items to check-ins
  • Provides an integrated TFVC Output window
  • Support for a TFS proxy
  • Supports workspaces created with Visual Studio (via tf.exe) or the JetBrains IDEs and Eclipse (via the Team Explorer Everywhere Command
    Line Client)

See this link for more information.

However you can lock files using the tf lock command (run command in TERMINAL)

enter image description here


UPDATE:

Just as I mentioned above, unfortunately no such a built-in feature for now, and I tried to find some extensions to achieve that, but no gain.

Unless you can write your own extension to achieve that. Please see the extension seti-icons on MarkketPlace, and this article: Customize Your VS Code Icon, hope that helps.

Upvotes: 0

Related Questions