mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Changes formatting & ordering
This commit is contained in:
@@ -4,16 +4,41 @@ import { BuiltInCommands } from '../constants';
|
|||||||
import { Logger } from '../logger';
|
import { Logger } from '../logger';
|
||||||
import { Telemetry } from '../telemetry';
|
import { Telemetry } from '../telemetry';
|
||||||
|
|
||||||
export type Commands = 'gitlens.closeUnchangedFiles' | 'gitlens.copyMessageToClipboard' | 'gitlens.copyShaToClipboard' |
|
export type Commands = 'gitlens.closeUnchangedFiles' |
|
||||||
'gitlens.diffDirectory' | 'gitlens.diffWithBranch' | 'gitlens.diffWithNext' | 'gitlens.diffWithPrevious' | 'gitlens.diffLineWithPrevious' | 'gitlens.diffWithWorking' | 'gitlens.diffLineWithWorking' |
|
'gitlens.copyMessageToClipboard' |
|
||||||
'gitlens.openChangedFiles' | 'gitlens.openBranchInRemote' | 'gitlens.openCommitInRemote' | 'gitlens.openFileInRemote' | 'gitlens.openInRemote' | 'gitlens.openRepoInRemote' |
|
'gitlens.copyShaToClipboard' |
|
||||||
'gitlens.showBlameHistory' | 'gitlens.showCommitSearch' | 'gitlens.showFileBlame' | 'gitlens.showFileHistory' |
|
'gitlens.diffDirectory' |
|
||||||
'gitlens.showLastQuickPick' | 'gitlens.showLineBlame' | 'gitlens.showQuickBranchHistory' |
|
'gitlens.diffWithBranch' |
|
||||||
'gitlens.showQuickCommitDetails' | 'gitlens.showQuickCommitFileDetails' |
|
'gitlens.diffWithNext' |
|
||||||
'gitlens.showQuickFileHistory' | 'gitlens.showQuickRepoHistory' |
|
'gitlens.diffWithPrevious' |
|
||||||
'gitlens.showQuickRepoStatus' | 'gitlens.showQuickStashList' |
|
'gitlens.diffLineWithPrevious' |
|
||||||
'gitlens.stashApply' | 'gitlens.stashDelete' | 'gitlens.stashSave' |
|
'gitlens.diffWithWorking' |
|
||||||
'gitlens.toggleCodeLens' | 'gitlens.toggleFileBlame' | 'gitlens.toggleLineBlame';
|
'gitlens.diffLineWithWorking' |
|
||||||
|
'gitlens.openChangedFiles' |
|
||||||
|
'gitlens.openBranchInRemote' |
|
||||||
|
'gitlens.openCommitInRemote' |
|
||||||
|
'gitlens.openFileInRemote' |
|
||||||
|
'gitlens.openInRemote' |
|
||||||
|
'gitlens.openRepoInRemote' |
|
||||||
|
'gitlens.showBlameHistory' |
|
||||||
|
'gitlens.showCommitSearch' |
|
||||||
|
'gitlens.showFileBlame' |
|
||||||
|
'gitlens.showFileHistory' |
|
||||||
|
'gitlens.showLastQuickPick' |
|
||||||
|
'gitlens.showLineBlame' |
|
||||||
|
'gitlens.showQuickBranchHistory' |
|
||||||
|
'gitlens.showQuickCommitDetails' |
|
||||||
|
'gitlens.showQuickCommitFileDetails' |
|
||||||
|
'gitlens.showQuickFileHistory' |
|
||||||
|
'gitlens.showQuickRepoHistory' |
|
||||||
|
'gitlens.showQuickRepoStatus' |
|
||||||
|
'gitlens.showQuickStashList' |
|
||||||
|
'gitlens.stashApply' |
|
||||||
|
'gitlens.stashDelete' |
|
||||||
|
'gitlens.stashSave' |
|
||||||
|
'gitlens.toggleCodeLens' |
|
||||||
|
'gitlens.toggleFileBlame' |
|
||||||
|
'gitlens.toggleLineBlame';
|
||||||
export const Commands = {
|
export const Commands = {
|
||||||
CloseUnchangedFiles: 'gitlens.closeUnchangedFiles' as Commands,
|
CloseUnchangedFiles: 'gitlens.closeUnchangedFiles' as Commands,
|
||||||
CopyMessageToClipboard: 'gitlens.copyMessageToClipboard' as Commands,
|
CopyMessageToClipboard: 'gitlens.copyMessageToClipboard' as Commands,
|
||||||
@@ -31,12 +56,12 @@ export const Commands = {
|
|||||||
OpenFileInRemote: 'gitlens.openFileInRemote' as Commands,
|
OpenFileInRemote: 'gitlens.openFileInRemote' as Commands,
|
||||||
OpenInRemote: 'gitlens.openInRemote' as Commands,
|
OpenInRemote: 'gitlens.openInRemote' as Commands,
|
||||||
OpenRepoInRemote: 'gitlens.openRepoInRemote' as Commands,
|
OpenRepoInRemote: 'gitlens.openRepoInRemote' as Commands,
|
||||||
ShowFileBlame: 'gitlens.showFileBlame' as Commands,
|
|
||||||
ShowLineBlame: 'gitlens.showLineBlame' as Commands,
|
|
||||||
ShowBlameHistory: 'gitlens.showBlameHistory' as Commands,
|
ShowBlameHistory: 'gitlens.showBlameHistory' as Commands,
|
||||||
ShowCommitSearch: 'gitlens.showCommitSearch' as Commands,
|
ShowCommitSearch: 'gitlens.showCommitSearch' as Commands,
|
||||||
|
ShowFileBlame: 'gitlens.showFileBlame' as Commands,
|
||||||
ShowFileHistory: 'gitlens.showFileHistory' as Commands,
|
ShowFileHistory: 'gitlens.showFileHistory' as Commands,
|
||||||
ShowLastQuickPick: 'gitlens.showLastQuickPick' as Commands,
|
ShowLastQuickPick: 'gitlens.showLastQuickPick' as Commands,
|
||||||
|
ShowLineBlame: 'gitlens.showLineBlame' as Commands,
|
||||||
ShowQuickCommitDetails: 'gitlens.showQuickCommitDetails' as Commands,
|
ShowQuickCommitDetails: 'gitlens.showQuickCommitDetails' as Commands,
|
||||||
ShowQuickCommitFileDetails: 'gitlens.showQuickCommitFileDetails' as Commands,
|
ShowQuickCommitFileDetails: 'gitlens.showQuickCommitFileDetails' as Commands,
|
||||||
ShowQuickFileHistory: 'gitlens.showQuickFileHistory' as Commands,
|
ShowQuickFileHistory: 'gitlens.showQuickFileHistory' as Commands,
|
||||||
@@ -47,9 +72,9 @@ export const Commands = {
|
|||||||
StashApply: 'gitlens.stashApply' as Commands,
|
StashApply: 'gitlens.stashApply' as Commands,
|
||||||
StashDelete: 'gitlens.stashDelete' as Commands,
|
StashDelete: 'gitlens.stashDelete' as Commands,
|
||||||
StashSave: 'gitlens.stashSave' as Commands,
|
StashSave: 'gitlens.stashSave' as Commands,
|
||||||
|
ToggleCodeLens: 'gitlens.toggleCodeLens' as Commands,
|
||||||
ToggleFileBlame: 'gitlens.toggleFileBlame' as Commands,
|
ToggleFileBlame: 'gitlens.toggleFileBlame' as Commands,
|
||||||
ToggleLineBlame: 'gitlens.toggleLineBlame' as Commands,
|
ToggleLineBlame: 'gitlens.toggleLineBlame' as Commands
|
||||||
ToggleCodeLens: 'gitlens.toggleCodeLens' as Commands
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export function getCommandUri(uri?: Uri, editor?: TextEditor): Uri | undefined {
|
export function getCommandUri(uri?: Uri, editor?: TextEditor): Uri | undefined {
|
||||||
@@ -58,7 +83,13 @@ export function getCommandUri(uri?: Uri, editor?: TextEditor): Uri | undefined {
|
|||||||
return editor.document.uri;
|
return editor.document.uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CommandContext = 'gitlens:canToggleCodeLens' | 'gitlens:enabled' | 'gitlens:hasRemotes' | 'gitlens:isBlameable' | 'gitlens:isRepository' | 'gitlens:isTracked' | 'gitlens:key';
|
export type CommandContext = 'gitlens:canToggleCodeLens' |
|
||||||
|
'gitlens:enabled' |
|
||||||
|
'gitlens:hasRemotes' |
|
||||||
|
'gitlens:isBlameable' |
|
||||||
|
'gitlens:isRepository' |
|
||||||
|
'gitlens:isTracked' |
|
||||||
|
'gitlens:key';
|
||||||
export const CommandContext = {
|
export const CommandContext = {
|
||||||
CanToggleCodeLens: 'gitlens:canToggleCodeLens' as CommandContext,
|
CanToggleCodeLens: 'gitlens:canToggleCodeLens' as CommandContext,
|
||||||
Enabled: 'gitlens:enabled' as CommandContext,
|
Enabled: 'gitlens:enabled' as CommandContext,
|
||||||
|
|||||||
@@ -11,7 +11,14 @@ export const BlameLineHighlightLocations = {
|
|||||||
OverviewRuler: 'overviewRuler' as BlameLineHighlightLocations
|
OverviewRuler: 'overviewRuler' as BlameLineHighlightLocations
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CodeLensCommand = 'gitlens.toggleFileBlame' | 'gitlens.showBlameHistory' | 'gitlens.showFileHistory' | 'gitlens.diffWithPrevious' | 'gitlens.showQuickCommitDetails' | 'gitlens.showQuickCommitFileDetails' | 'gitlens.showQuickFileHistory' | 'gitlens.showQuickRepoHistory';
|
export type CodeLensCommand = 'gitlens.toggleFileBlame' |
|
||||||
|
'gitlens.showBlameHistory' |
|
||||||
|
'gitlens.showFileHistory' |
|
||||||
|
'gitlens.diffWithPrevious' |
|
||||||
|
'gitlens.showQuickCommitDetails' |
|
||||||
|
'gitlens.showQuickCommitFileDetails' |
|
||||||
|
'gitlens.showQuickFileHistory' |
|
||||||
|
'gitlens.showQuickRepoHistory';
|
||||||
export const CodeLensCommand = {
|
export const CodeLensCommand = {
|
||||||
BlameAnnotate: Commands.ToggleFileBlame as CodeLensCommand,
|
BlameAnnotate: Commands.ToggleFileBlame as CodeLensCommand,
|
||||||
ShowBlameHistory: Commands.ShowBlameHistory as CodeLensCommand,
|
ShowBlameHistory: Commands.ShowBlameHistory as CodeLensCommand,
|
||||||
@@ -43,7 +50,16 @@ export const LineAnnotationType = {
|
|||||||
Hover: 'hover' as LineAnnotationType
|
Hover: 'hover' as LineAnnotationType
|
||||||
};
|
};
|
||||||
|
|
||||||
export type StatusBarCommand = 'gitlens.toggleFileBlame' | 'gitlens.showBlameHistory' | 'gitlens.showFileHistory' | 'gitlens.toggleCodeLens' | 'gitlens.diffWithPrevious' | 'gitlens.diffWithWorking' | 'gitlens.showQuickCommitDetails' | 'gitlens.showQuickCommitFileDetails' | 'gitlens.showQuickFileHistory' | 'gitlens.showQuickRepoHistory';
|
export type StatusBarCommand = 'gitlens.toggleFileBlame' |
|
||||||
|
'gitlens.showBlameHistory' |
|
||||||
|
'gitlens.showFileHistory' |
|
||||||
|
'gitlens.toggleCodeLens' |
|
||||||
|
'gitlens.diffWithPrevious' |
|
||||||
|
'gitlens.diffWithWorking' |
|
||||||
|
'gitlens.showQuickCommitDetails' |
|
||||||
|
'gitlens.showQuickCommitFileDetails' |
|
||||||
|
'gitlens.showQuickFileHistory' |
|
||||||
|
'gitlens.showQuickRepoHistory';
|
||||||
export const StatusBarCommand = {
|
export const StatusBarCommand = {
|
||||||
BlameAnnotate: Commands.ToggleFileBlame as StatusBarCommand,
|
BlameAnnotate: Commands.ToggleFileBlame as StatusBarCommand,
|
||||||
ShowBlameHistory: Commands.ShowBlameHistory as StatusBarCommand,
|
ShowBlameHistory: Commands.ShowBlameHistory as StatusBarCommand,
|
||||||
|
|||||||
@@ -7,7 +7,20 @@ export const QualifiedExtensionId = `eamodio.${ExtensionId}`;
|
|||||||
|
|
||||||
export const ApplicationInsightsKey = 'a9c302f8-6483-4d01-b92c-c159c799c679';
|
export const ApplicationInsightsKey = 'a9c302f8-6483-4d01-b92c-c159c799c679';
|
||||||
|
|
||||||
export type BuiltInCommands = 'cursorMove' | 'editor.action.showReferences' | 'editor.action.toggleRenderWhitespace' | 'editorScroll' | 'revealLine' | 'setContext' | 'vscode.diff' | 'vscode.executeDocumentSymbolProvider' | 'vscode.executeCodeLensProvider' | 'vscode.open' | 'vscode.previewHtml' | 'workbench.action.closeActiveEditor' | 'workbench.action.closeAllEditors' | 'workbench.action.nextEditor';
|
export type BuiltInCommands = 'cursorMove' |
|
||||||
|
'editor.action.showReferences' |
|
||||||
|
'editor.action.toggleRenderWhitespace' |
|
||||||
|
'editorScroll' |
|
||||||
|
'revealLine' |
|
||||||
|
'setContext' |
|
||||||
|
'vscode.diff' |
|
||||||
|
'vscode.executeDocumentSymbolProvider' |
|
||||||
|
'vscode.executeCodeLensProvider' |
|
||||||
|
'vscode.open' |
|
||||||
|
'vscode.previewHtml' |
|
||||||
|
'workbench.action.closeActiveEditor' |
|
||||||
|
'workbench.action.closeAllEditors' |
|
||||||
|
'workbench.action.nextEditor';
|
||||||
export const BuiltInCommands = {
|
export const BuiltInCommands = {
|
||||||
CloseActiveEditor: 'workbench.action.closeActiveEditor' as BuiltInCommands,
|
CloseActiveEditor: 'workbench.action.closeActiveEditor' as BuiltInCommands,
|
||||||
CloseAllEditors: 'workbench.action.closeAllEditors' as BuiltInCommands,
|
CloseAllEditors: 'workbench.action.closeAllEditors' as BuiltInCommands,
|
||||||
|
|||||||
Reference in New Issue
Block a user