|
@ -1,7 +1,7 @@ |
|
|
'use strict'; |
|
|
'use strict'; |
|
|
import { TextEditor, Uri } from 'vscode'; |
|
|
import { TextEditor, Uri } from 'vscode'; |
|
|
import { GlyphChars } from '../constants'; |
|
|
import { GlyphChars } from '../constants'; |
|
|
import { GitLogCommit, GitRemote, GitService, RemoteResource, RemoteResourceType } from '../git/gitService'; |
|
|
|
|
|
|
|
|
import { GitRemote, GitService, RemoteResource, RemoteResourceType } from '../git/gitService'; |
|
|
import { Logger } from '../logger'; |
|
|
import { Logger } from '../logger'; |
|
|
import { Messages } from '../messages'; |
|
|
import { Messages } from '../messages'; |
|
|
import { CommandQuickPickItem, OpenRemoteCommandQuickPickItem, RemotesQuickPick } from '../quickpicks'; |
|
|
import { CommandQuickPickItem, OpenRemoteCommandQuickPickItem, RemotesQuickPick } from '../quickpicks'; |
|
@ -68,7 +68,7 @@ export class OpenInRemoteCommand extends ActiveEditorCommand { |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
case RemoteResourceType.Revision: |
|
|
case RemoteResourceType.Revision: |
|
|
if (args.resource.commit !== undefined && args.resource.commit instanceof GitLogCommit) { |
|
|
|
|
|
|
|
|
if (args.resource.commit !== undefined && args.resource.commit.isFile) { |
|
|
if (args.resource.commit.status === 'D') { |
|
|
if (args.resource.commit.status === 'D') { |
|
|
args.resource.sha = args.resource.commit.previousSha; |
|
|
args.resource.sha = args.resource.commit.previousSha; |
|
|
placeHolder = `${verb} ${args.resource.fileName} ${Strings.pad(GlyphChars.Dot, 1, 1)} ${ |
|
|
placeHolder = `${verb} ${args.resource.fileName} ${Strings.pad(GlyphChars.Dot, 1, 1)} ${ |
|
|