mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user