|
@ -12,7 +12,7 @@ import { |
|
|
OpenFileRevisionCommandArgs, |
|
|
OpenFileRevisionCommandArgs, |
|
|
openWorkspace |
|
|
openWorkspace |
|
|
} from '../commands'; |
|
|
} from '../commands'; |
|
|
import { CommandContext, extensionTerminalName, setCommandContext } from '../constants'; |
|
|
|
|
|
|
|
|
import { BuiltInCommands, CommandContext, extensionTerminalName, setCommandContext } from '../constants'; |
|
|
import { Container } from '../container'; |
|
|
import { Container } from '../container'; |
|
|
import { toGitLensFSUri } from '../git/fsProvider'; |
|
|
import { toGitLensFSUri } from '../git/fsProvider'; |
|
|
import { GitService, GitUri } from '../git/gitService'; |
|
|
import { GitService, GitUri } from '../git/gitService'; |
|
@ -206,7 +206,6 @@ export class ExplorerCommands implements Disposable { |
|
|
repoPath: node.repoPath, |
|
|
repoPath: node.repoPath, |
|
|
uri: node instanceof CommitFileNode ? node.uri : undefined |
|
|
uri: node instanceof CommitFileNode ? node.uri : undefined |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
setCommandContext(CommandContext.ExplorersCanCompare, true); |
|
|
setCommandContext(CommandContext.ExplorersCanCompare, true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -217,6 +216,8 @@ export class ExplorerCommands implements Disposable { |
|
|
const gitUri = GitUri.fromRevisionUri(uri); |
|
|
const gitUri = GitUri.fromRevisionUri(uri); |
|
|
|
|
|
|
|
|
openWorkspace(uri, `${path.basename(gitUri.repoPath!)} @ ${gitUri.shortSha}`, options); |
|
|
openWorkspace(uri, `${path.basename(gitUri.repoPath!)} @ ${gitUri.shortSha}`, options); |
|
|
|
|
|
|
|
|
|
|
|
void commands.executeCommand(BuiltInCommands.FocusFilesExplorer); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private openChanges(node: CommitNode | StashNode) { |
|
|
private openChanges(node: CommitNode | StashNode) { |
|
|