mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 17:25:28 -05:00
Adds error messages for failed operations
Adds showHistory command support to CodeLens Fixes and improve the showHistory explorer Refactoring
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
'use strict';
|
||||
import { CancellationToken, CodeLens, CodeLensProvider, DocumentSelector, ExtensionContext, Range, TextDocument, Uri } from 'vscode';
|
||||
import { Commands, DocumentSchemes } from './constants';
|
||||
import GitProvider, { IGitCommit } from './gitProvider';
|
||||
import GitProvider, { GitCommit } from './gitProvider';
|
||||
import * as path from 'path';
|
||||
|
||||
export class GitDiffWithWorkingTreeCodeLens extends CodeLens {
|
||||
constructor(git: GitProvider, public fileName: string, public commit: IGitCommit, range: Range) {
|
||||
constructor(git: GitProvider, public fileName: string, public commit: GitCommit, range: Range) {
|
||||
super(range);
|
||||
}
|
||||
}
|
||||
|
||||
export class GitDiffWithPreviousCodeLens extends CodeLens {
|
||||
constructor(git: GitProvider, public fileName: string, public commit: IGitCommit, range: Range) {
|
||||
constructor(git: GitProvider, public fileName: string, public commit: GitCommit, range: Range) {
|
||||
super(range);
|
||||
}
|
||||
}
|
||||
@@ -84,11 +84,7 @@ export default class GitBlameCodeLensProvider implements CodeLensProvider {
|
||||
command: Commands.DiffWithPrevious,
|
||||
arguments: [
|
||||
Uri.file(lens.fileName),
|
||||
lens.commit.repoPath,
|
||||
lens.commit.sha,
|
||||
lens.commit.uri,
|
||||
lens.commit.previousSha,
|
||||
lens.commit.previousUri,
|
||||
lens.commit,
|
||||
lens.range.start.line
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user