|
@ -16,6 +16,7 @@ import { |
|
|
} from './common'; |
|
|
} from './common'; |
|
|
import { OpenInRemoteCommandArgs } from './openInRemote'; |
|
|
import { OpenInRemoteCommandArgs } from './openInRemote'; |
|
|
import { Strings } from '../system'; |
|
|
import { Strings } from '../system'; |
|
|
|
|
|
import { UriComparer } from '../comparers'; |
|
|
|
|
|
|
|
|
export interface OpenFileInRemoteCommandArgs { |
|
|
export interface OpenFileInRemoteCommandArgs { |
|
|
branch?: string; |
|
|
branch?: string; |
|
@ -58,7 +59,7 @@ export class OpenFileInRemoteCommand extends ActiveEditorCommand { |
|
|
try { |
|
|
try { |
|
|
const remotes = await Container.git.getRemotes(gitUri.repoPath); |
|
|
const remotes = await Container.git.getRemotes(gitUri.repoPath); |
|
|
const range = |
|
|
const range = |
|
|
args.range && editor != null |
|
|
|
|
|
|
|
|
args.range && editor != null && UriComparer.equals(editor.document.uri, uri) |
|
|
? new Range( |
|
|
? new Range( |
|
|
editor.selection.start.with({ line: editor.selection.start.line + 1 }), |
|
|
editor.selection.start.with({ line: editor.selection.start.line + 1 }), |
|
|
editor.selection.end.with({ line: editor.selection.end.line + 1 }) |
|
|
editor.selection.end.with({ line: editor.selection.end.line + 1 }) |
|
|