Adds CodeLens for Diff'ing in blame

Other fixes and refactoring
This commit is contained in:
Eric Amodio
2016-08-31 21:15:06 -04:00
parent 0e064f15c7
commit 70cc92ddd6
9 changed files with 162 additions and 29 deletions

View File

@@ -7,18 +7,22 @@ export const WorkspaceState = {
export const RepoPath: string = 'repoPath';
export type Commands = 'git.action.showBlameHistory';
export type Commands = 'git.action.diffWithPrevious' | 'git.action.diffWithWorking' | 'git.action.showBlameHistory';
export const Commands = {
DiffWithPrevious: 'git.action.diffWithPrevious' as Commands,
DiffWithWorking: 'git.action.diffWithWorking' as Commands,
ShowBlameHistory: 'git.action.showBlameHistory' as Commands
}
export type DocumentSchemes = 'gitblame';
export type DocumentSchemes = 'file' | 'gitblame';
export const DocumentSchemes = {
File: 'file' as DocumentSchemes,
GitBlame: 'gitblame' as DocumentSchemes
}
export type VsCodeCommands = 'vscode.executeDocumentSymbolProvider' | 'vscode.executeCodeLensProvider' | 'editor.action.showReferences';
export type VsCodeCommands = 'vscode.diff' | 'vscode.executeDocumentSymbolProvider' | 'vscode.executeCodeLensProvider' | 'editor.action.showReferences';
export const VsCodeCommands = {
Diff: 'vscode.diff' as VsCodeCommands,
ExecuteDocumentSymbolProvider: 'vscode.executeDocumentSymbolProvider' as VsCodeCommands,
ExecuteCodeLensProvider: 'vscode.executeCodeLensProvider' as VsCodeCommands,
ShowReferences: 'editor.action.showReferences' as VsCodeCommands