Ricardo
Ricardo

Reputation: 111

VS Code: Highlight modified files with SVN extension

Is there any way in VS Code to highlight files that change regarding to svn? Git style, so I can see the change status of my files on the fly. I am used to using native extension with Git and it highlights modified files by default.

I am using SVN extension from johnstoncode.svn-scm.

Upvotes: 1

Views: 3313

Answers (2)

jezza
jezza

Reputation: 382

Adding this answer because it would have saved me an hour. This question came up as the top result when I was trying to find out how to enable this feature.

The entire feature has been removed from the SVN plugin since version 2, so you can't enable it anymore. Tough luck! This appears to be because it used an experimental vscode API that was causing problems for some users. See the following issues on the GitHub repo: #34, #632, #675, #740 and the PR that removed the functionality: #690.

Upvotes: 1

jbarros
jbarros

Reputation: 638

It seems this feature is experimental so far. To enable SVN status in your file explorer:

  • Open the file: <vscode path>\resources\app\product.json
  • Find extensionAllowedProposedApi
  • Append "johnstoncode.svn-scm" in the array

For example, change:

{
  "extensionAllowedProposedApi": [
    "ms-vsliveshare.vsliveshare"
  ]
}

to

{
  "extensionAllowedProposedApi": [
    "ms-vsliveshare.vsliveshare", "johnstoncode.svn-scm"
  ]
}

Source: official docs of the extension

Upvotes: 1

Related Questions