mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-09 09:42:41 -05:00
Adds CodeLens for Diff'ing in blame
Other fixes and refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user