|
1 | 1 | 'use strict'; |
| 2 | +import { ClearFileAnnotationsCommand } from './commands/clearFileAnnotations'; |
| 3 | +import { CloseUnchangedFilesCommand } from './commands/closeUnchangedFiles'; |
| 4 | +import { CopyMessageToClipboardCommand } from './commands/copyMessageToClipboard'; |
| 5 | +import { CopyRemoteFileUrlToClipboardCommand } from './commands/copyRemoteFileUrlToClipboard'; |
| 6 | +import { CopyShaToClipboardCommand } from './commands/copyShaToClipboard'; |
| 7 | +import { DiffBranchWithBranchCommand } from './commands/diffBranchWithBranch'; |
| 8 | +import { DiffDirectoryCommand } from './commands/diffDirectory'; |
| 9 | +import { DiffLineWithPreviousCommand } from './commands/diffLineWithPrevious'; |
| 10 | +import { DiffLineWithWorkingCommand } from './commands/diffLineWithWorking'; |
| 11 | +import { DiffWithCommand } from './commands/diffWith'; |
| 12 | +import { DiffWithBranchCommand } from './commands/diffWithBranch'; |
| 13 | +import { DiffWithNextCommand } from './commands/diffWithNext'; |
| 14 | +import { DiffWithPreviousCommand } from './commands/diffWithPrevious'; |
| 15 | +import { DiffWithRevisionCommand } from './commands/diffWithRevision'; |
| 16 | +import { DiffWithWorkingCommand } from './commands/diffWithWorking'; |
| 17 | +import { ExternalDiffCommand } from './commands/externalDiff'; |
| 18 | +import { OpenBranchesInRemoteCommand } from './commands/openBranchesInRemote'; |
| 19 | +import { OpenBranchInRemoteCommand } from './commands/openBranchInRemote'; |
| 20 | +import { OpenChangedFilesCommand } from './commands/openChangedFiles'; |
| 21 | +import { OpenCommitInRemoteCommand } from './commands/openCommitInRemote'; |
| 22 | +import { OpenFileInRemoteCommand } from './commands/openFileInRemote'; |
| 23 | +import { OpenFileRevisionCommand } from './commands/openFileRevision'; |
| 24 | +import { OpenInRemoteCommand } from './commands/openInRemote'; |
| 25 | +import { OpenRepoInRemoteCommand } from './commands/openRepoInRemote'; |
| 26 | +import { OpenWorkingFileCommand } from './commands/openWorkingFile'; |
| 27 | +import { ResetSuppressedWarningsCommand } from './commands/resetSuppressedWarnings'; |
| 28 | +import { ShowCommitSearchCommand } from './commands/showCommitSearch'; |
| 29 | +import { ShowGitExplorerCommand } from './commands/showGitExplorer'; |
| 30 | +import { ShowHistoryExplorerCommand } from './commands/showHistoryExplorer'; |
| 31 | +import { ShowLastQuickPickCommand } from './commands/showLastQuickPick'; |
| 32 | +import { ShowQuickBranchHistoryCommand } from './commands/showQuickBranchHistory'; |
| 33 | +import { ShowQuickCommitDetailsCommand } from './commands/showQuickCommitDetails'; |
| 34 | +import { ShowQuickCommitFileDetailsCommand } from './commands/showQuickCommitFileDetails'; |
| 35 | +import { ShowQuickCurrentBranchHistoryCommand } from './commands/showQuickCurrentBranchHistory'; |
| 36 | +import { ShowQuickFileHistoryCommand } from './commands/showQuickFileHistory'; |
| 37 | +import { ShowQuickRepoStatusCommand } from './commands/showQuickRepoStatus'; |
| 38 | +import { ShowQuickStashListCommand } from './commands/showQuickStashList'; |
| 39 | +import { ShowResultsExplorerCommand } from './commands/showResultsExplorer'; |
| 40 | +import { StashApplyCommand } from './commands/stashApply'; |
| 41 | +import { StashDeleteCommand } from './commands/stashDelete'; |
| 42 | +import { StashSaveCommand } from './commands/stashSave'; |
| 43 | +import { SwitchModeCommand, ToggleReviewModeCommand, ToggleZenModeCommand } from './commands/switchMode'; |
| 44 | +import { ToggleCodeLensCommand } from './commands/toggleCodeLens'; |
| 45 | +import { ToggleFileBlameCommand } from './commands/toggleFileBlame'; |
| 46 | +import { ToggleFileHeatmapCommand } from './commands/toggleFileHeatmap'; |
| 47 | +import { ToggleFileRecentChangesCommand } from './commands/toggleFileRecentChanges'; |
| 48 | +import { ToggleLineBlameCommand } from './commands/toggleLineBlame'; |
2 | 49 | import { CommandContext, setCommandContext } from './constants'; |
3 | 50 | import { Container } from './container'; |
4 | 51 |
|
5 | 52 | export * from './commands/common'; |
6 | | - |
7 | 53 | export * from './commands/clearFileAnnotations'; |
8 | 54 | export * from './commands/closeUnchangedFiles'; |
9 | 55 | export * from './commands/copyMessageToClipboard'; |
@@ -52,58 +98,56 @@ export * from './commands/toggleFileHeatmap'; |
52 | 98 | export * from './commands/toggleFileRecentChanges'; |
53 | 99 | export * from './commands/toggleLineBlame'; |
54 | 100 |
|
55 | | -import * as Commands from './commands'; |
56 | | - |
57 | 101 | export function configureCommands(): void { |
58 | 102 | setCommandContext(CommandContext.KeyMap, Container.config.keymap); |
59 | 103 |
|
60 | | - Container.context.subscriptions.push(new Commands.ClearFileAnnotationsCommand()); |
61 | | - Container.context.subscriptions.push(new Commands.CloseUnchangedFilesCommand()); |
62 | | - Container.context.subscriptions.push(new Commands.CopyMessageToClipboardCommand()); |
63 | | - Container.context.subscriptions.push(new Commands.CopyRemoteFileUrlToClipboardCommand()); |
64 | | - Container.context.subscriptions.push(new Commands.CopyShaToClipboardCommand()); |
65 | | - Container.context.subscriptions.push(new Commands.DiffBranchWithBranchCommand()); |
66 | | - Container.context.subscriptions.push(new Commands.DiffDirectoryCommand()); |
67 | | - Container.context.subscriptions.push(new Commands.DiffLineWithPreviousCommand()); |
68 | | - Container.context.subscriptions.push(new Commands.DiffLineWithWorkingCommand()); |
69 | | - Container.context.subscriptions.push(new Commands.DiffWithCommand()); |
70 | | - Container.context.subscriptions.push(new Commands.DiffWithBranchCommand()); |
71 | | - Container.context.subscriptions.push(new Commands.DiffWithNextCommand()); |
72 | | - Container.context.subscriptions.push(new Commands.DiffWithPreviousCommand()); |
73 | | - Container.context.subscriptions.push(new Commands.DiffWithRevisionCommand()); |
74 | | - Container.context.subscriptions.push(new Commands.DiffWithWorkingCommand()); |
75 | | - Container.context.subscriptions.push(new Commands.ExternalDiffCommand()); |
76 | | - Container.context.subscriptions.push(new Commands.OpenBranchesInRemoteCommand()); |
77 | | - Container.context.subscriptions.push(new Commands.OpenBranchInRemoteCommand()); |
78 | | - Container.context.subscriptions.push(new Commands.OpenChangedFilesCommand()); |
79 | | - Container.context.subscriptions.push(new Commands.OpenCommitInRemoteCommand()); |
80 | | - Container.context.subscriptions.push(new Commands.OpenFileInRemoteCommand()); |
81 | | - Container.context.subscriptions.push(new Commands.OpenFileRevisionCommand()); |
82 | | - Container.context.subscriptions.push(new Commands.OpenInRemoteCommand()); |
83 | | - Container.context.subscriptions.push(new Commands.OpenRepoInRemoteCommand()); |
84 | | - Container.context.subscriptions.push(new Commands.OpenWorkingFileCommand()); |
85 | | - Container.context.subscriptions.push(new Commands.ResetSuppressedWarningsCommand()); |
86 | | - Container.context.subscriptions.push(new Commands.ShowCommitSearchCommand()); |
87 | | - Container.context.subscriptions.push(new Commands.ShowGitExplorerCommand()); |
88 | | - Container.context.subscriptions.push(new Commands.ShowHistoryExplorerCommand()); |
89 | | - Container.context.subscriptions.push(new Commands.ShowLastQuickPickCommand()); |
90 | | - Container.context.subscriptions.push(new Commands.ShowQuickBranchHistoryCommand()); |
91 | | - Container.context.subscriptions.push(new Commands.ShowQuickCommitDetailsCommand()); |
92 | | - Container.context.subscriptions.push(new Commands.ShowQuickCommitFileDetailsCommand()); |
93 | | - Container.context.subscriptions.push(new Commands.ShowQuickCurrentBranchHistoryCommand()); |
94 | | - Container.context.subscriptions.push(new Commands.ShowQuickFileHistoryCommand()); |
95 | | - Container.context.subscriptions.push(new Commands.ShowQuickRepoStatusCommand()); |
96 | | - Container.context.subscriptions.push(new Commands.ShowQuickStashListCommand()); |
97 | | - Container.context.subscriptions.push(new Commands.ShowResultsExplorerCommand()); |
98 | | - Container.context.subscriptions.push(new Commands.StashApplyCommand()); |
99 | | - Container.context.subscriptions.push(new Commands.StashDeleteCommand()); |
100 | | - Container.context.subscriptions.push(new Commands.StashSaveCommand()); |
101 | | - Container.context.subscriptions.push(new Commands.SwitchModeCommand()); |
102 | | - Container.context.subscriptions.push(new Commands.ToggleCodeLensCommand()); |
103 | | - Container.context.subscriptions.push(new Commands.ToggleFileBlameCommand()); |
104 | | - Container.context.subscriptions.push(new Commands.ToggleFileHeatmapCommand()); |
105 | | - Container.context.subscriptions.push(new Commands.ToggleFileRecentChangesCommand()); |
106 | | - Container.context.subscriptions.push(new Commands.ToggleLineBlameCommand()); |
107 | | - Container.context.subscriptions.push(new Commands.ToggleReviewModeCommand()); |
108 | | - Container.context.subscriptions.push(new Commands.ToggleZenModeCommand()); |
| 104 | + Container.context.subscriptions.push(new ClearFileAnnotationsCommand()); |
| 105 | + Container.context.subscriptions.push(new CloseUnchangedFilesCommand()); |
| 106 | + Container.context.subscriptions.push(new CopyMessageToClipboardCommand()); |
| 107 | + Container.context.subscriptions.push(new CopyRemoteFileUrlToClipboardCommand()); |
| 108 | + Container.context.subscriptions.push(new CopyShaToClipboardCommand()); |
| 109 | + Container.context.subscriptions.push(new DiffBranchWithBranchCommand()); |
| 110 | + Container.context.subscriptions.push(new DiffDirectoryCommand()); |
| 111 | + Container.context.subscriptions.push(new DiffLineWithPreviousCommand()); |
| 112 | + Container.context.subscriptions.push(new DiffLineWithWorkingCommand()); |
| 113 | + Container.context.subscriptions.push(new DiffWithCommand()); |
| 114 | + Container.context.subscriptions.push(new DiffWithBranchCommand()); |
| 115 | + Container.context.subscriptions.push(new DiffWithNextCommand()); |
| 116 | + Container.context.subscriptions.push(new DiffWithPreviousCommand()); |
| 117 | + Container.context.subscriptions.push(new DiffWithRevisionCommand()); |
| 118 | + Container.context.subscriptions.push(new DiffWithWorkingCommand()); |
| 119 | + Container.context.subscriptions.push(new ExternalDiffCommand()); |
| 120 | + Container.context.subscriptions.push(new OpenBranchesInRemoteCommand()); |
| 121 | + Container.context.subscriptions.push(new OpenBranchInRemoteCommand()); |
| 122 | + Container.context.subscriptions.push(new OpenChangedFilesCommand()); |
| 123 | + Container.context.subscriptions.push(new OpenCommitInRemoteCommand()); |
| 124 | + Container.context.subscriptions.push(new OpenFileInRemoteCommand()); |
| 125 | + Container.context.subscriptions.push(new OpenFileRevisionCommand()); |
| 126 | + Container.context.subscriptions.push(new OpenInRemoteCommand()); |
| 127 | + Container.context.subscriptions.push(new OpenRepoInRemoteCommand()); |
| 128 | + Container.context.subscriptions.push(new OpenWorkingFileCommand()); |
| 129 | + Container.context.subscriptions.push(new ResetSuppressedWarningsCommand()); |
| 130 | + Container.context.subscriptions.push(new ShowCommitSearchCommand()); |
| 131 | + Container.context.subscriptions.push(new ShowGitExplorerCommand()); |
| 132 | + Container.context.subscriptions.push(new ShowHistoryExplorerCommand()); |
| 133 | + Container.context.subscriptions.push(new ShowLastQuickPickCommand()); |
| 134 | + Container.context.subscriptions.push(new ShowQuickBranchHistoryCommand()); |
| 135 | + Container.context.subscriptions.push(new ShowQuickCommitDetailsCommand()); |
| 136 | + Container.context.subscriptions.push(new ShowQuickCommitFileDetailsCommand()); |
| 137 | + Container.context.subscriptions.push(new ShowQuickCurrentBranchHistoryCommand()); |
| 138 | + Container.context.subscriptions.push(new ShowQuickFileHistoryCommand()); |
| 139 | + Container.context.subscriptions.push(new ShowQuickRepoStatusCommand()); |
| 140 | + Container.context.subscriptions.push(new ShowQuickStashListCommand()); |
| 141 | + Container.context.subscriptions.push(new ShowResultsExplorerCommand()); |
| 142 | + Container.context.subscriptions.push(new StashApplyCommand()); |
| 143 | + Container.context.subscriptions.push(new StashDeleteCommand()); |
| 144 | + Container.context.subscriptions.push(new StashSaveCommand()); |
| 145 | + Container.context.subscriptions.push(new SwitchModeCommand()); |
| 146 | + Container.context.subscriptions.push(new ToggleCodeLensCommand()); |
| 147 | + Container.context.subscriptions.push(new ToggleFileBlameCommand()); |
| 148 | + Container.context.subscriptions.push(new ToggleFileHeatmapCommand()); |
| 149 | + Container.context.subscriptions.push(new ToggleFileRecentChangesCommand()); |
| 150 | + Container.context.subscriptions.push(new ToggleLineBlameCommand()); |
| 151 | + Container.context.subscriptions.push(new ToggleReviewModeCommand()); |
| 152 | + Container.context.subscriptions.push(new ToggleZenModeCommand()); |
109 | 153 | } |
0 commit comments