Git - handle the diff editor for untracked files now that we throw FileNotFound if the file does not exist (#236863)

This commit is contained in:
Ladislau Szomoru
2024-12-24 02:02:40 +01:00
committed by GitHub
parent fca210cd10
commit 4fa5611d67
2 changed files with 2 additions and 3 deletions

View File

@@ -560,13 +560,11 @@ class ResourceCommandResolver {
switch (resource.type) {
case Status.INDEX_MODIFIED:
case Status.INDEX_RENAMED:
case Status.INDEX_ADDED:
case Status.INTENT_TO_RENAME:
case Status.TYPE_CHANGED:
return { original: toGitUri(resource.original, 'HEAD') };
case Status.MODIFIED:
case Status.UNTRACKED:
return { original: toGitUri(resource.resourceUri, '~') };
case Status.DELETED_BY_US: