mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-05 17:25:44 -05:00
Changes default quick pick commit details
Show commands rather than file set
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
- Adds `gitlens.showQuickRepoHistory` and `gitlens.showQuickCommitDetails` commands to the status bar
|
- Adds `gitlens.showQuickRepoHistory` and `gitlens.showQuickCommitDetails` commands to the status bar
|
||||||
- Changes the default command of `gitlens.codeLens.recentChange.command` to `gitlens.showQuickCommitDetails`
|
- Changes the default command of `gitlens.codeLens.recentChange.command` to `gitlens.showQuickCommitDetails`
|
||||||
- Changes the default command of `gitlens.statusBar.command` to `gitlens.showQuickCommitDetails`
|
- Changes the default command of `gitlens.statusBar.command` to `gitlens.showQuickCommitDetails`
|
||||||
- Changes behavior of `gitlens.showQuickFileHistory` when executed via CodeLens to open commit details directly
|
- Changes Changes behavior of `gitlens.showQuickCommitDetails` to show commit commands rather than file set (use `Show Changed Files` command to get to the file set)
|
||||||
- Changes `gitlens.diffWithPrevious` command to behave as `gitlens.diffWithWorking` if the file has uncommitted changes
|
- Changes `gitlens.diffWithPrevious` command to behave as `gitlens.diffWithWorking` if the file has uncommitted changes
|
||||||
- Renames `gitlens.diffWithPrevious` command from `Diff Commit with Previous` to `Compare with Previous Commit`
|
- Renames `gitlens.diffWithPrevious` command from `Diff Commit with Previous` to `Compare with Previous Commit`
|
||||||
- Renames `gitlens.diffLineWithPrevious` command from `Diff Commit (line) with Previous` to `Compare Line with Previous Commit`
|
- Renames `gitlens.diffLineWithPrevious` command from `Diff Commit (line) with Previous` to `Compare Line with Previous Commit`
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
import { Iterables } from '../system';
|
import { Iterables } from '../system';
|
||||||
import { TextEditor, Uri, window } from 'vscode';
|
import { commands, TextEditor, Uri, window } from 'vscode';
|
||||||
import { ActiveEditorCommand } from './commands';
|
import { ActiveEditorCommand } from './commands';
|
||||||
import { Commands } from '../constants';
|
import { Commands } from '../constants';
|
||||||
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
|
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
|
||||||
@@ -36,6 +36,8 @@ export default class ShowQuickCommitDetailsCommand extends ActiveEditorCommand {
|
|||||||
|
|
||||||
sha = blame.commit.isUncommitted ? blame.commit.previousSha : blame.commit.sha;
|
sha = blame.commit.isUncommitted ? blame.commit.previousSha : blame.commit.sha;
|
||||||
repoPath = blame.commit.repoPath;
|
repoPath = blame.commit.repoPath;
|
||||||
|
|
||||||
|
return commands.executeCommand(Commands.ShowQuickFileHistory, uri, undefined, blame.commit);
|
||||||
}
|
}
|
||||||
catch (ex) {
|
catch (ex) {
|
||||||
Logger.error('[GitLens.ShowQuickCommitDetails]', `getBlameForLine(${blameline})`, ex);
|
Logger.error('[GitLens.ShowQuickCommitDetails]', `getBlameForLine(${blameline})`, ex);
|
||||||
|
|||||||
Reference in New Issue
Block a user