Disable Git Rename command if the resource is not under source control

This commit is contained in:
Ladislau Szomoru
2022-01-16 17:53:24 +01:00
parent 876574466c
commit fbbfb6c22a
2 changed files with 22 additions and 13 deletions

View File

@@ -678,7 +678,7 @@
},
{
"command": "git.rename",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme == file"
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourceScheme == file && scmActiveResourceRepository"
},
{
"command": "git.commit",