Adds open in remote to hover annotations

Optimizes annotation computation (cache by commit)
This commit is contained in:
Eric Amodio
2017-09-14 23:43:41 -04:00
parent f0bdf3e2c3
commit f6019454b6
10 changed files with 134 additions and 18 deletions

View File

@@ -12,6 +12,15 @@ export interface OpenCommitInRemoteCommandArgs {
export class OpenCommitInRemoteCommand extends ActiveEditorCommand {
static getMarkdownCommandArgs(sha: string): string;
static getMarkdownCommandArgs(args: OpenCommitInRemoteCommandArgs): string;
static getMarkdownCommandArgs(argsOrSha: OpenCommitInRemoteCommandArgs | string): string {
const args = typeof argsOrSha === 'string'
? { sha: argsOrSha }
: argsOrSha;
return super.getMarkdownCommandArgsCore<OpenCommitInRemoteCommandArgs>(Commands.OpenCommitInRemote, args);
}
constructor(private git: GitService) {
super(Commands.OpenCommitInRemote);
}