Skip to content

Commit 776c45a

Browse files
committed
Changes import/exportsto avoid importing its own exports
1 parent 58700ab commit 776c45a

File tree

1 file changed

+96
-52
lines changed

1 file changed

+96
-52
lines changed

src/commands.ts

Lines changed: 96 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,55 @@
11
'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';
249
import { CommandContext, setCommandContext } from './constants';
350
import { Container } from './container';
451

552
export * from './commands/common';
6-
753
export * from './commands/clearFileAnnotations';
854
export * from './commands/closeUnchangedFiles';
955
export * from './commands/copyMessageToClipboard';
@@ -52,58 +98,56 @@ export * from './commands/toggleFileHeatmap';
5298
export * from './commands/toggleFileRecentChanges';
5399
export * from './commands/toggleLineBlame';
54100

55-
import * as Commands from './commands';
56-
57101
export function configureCommands(): void {
58102
setCommandContext(CommandContext.KeyMap, Container.config.keymap);
59103

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());
109153
}

0 commit comments

Comments
 (0)