Quellcode durchsuchen

Removes re-exports to limit import scopes

main
Eric Amodio vor 1 Jahr
Ursprung
Commit
0efdc3e209
22 geänderte Dateien mit 65 neuen und 138 gelöschten Zeilen
  1. +6
    -4
      src/commands/git/branch.ts
  2. +2
    -11
      src/commands/git/cherry-pick.ts
  3. +2
    -1
      src/commands/git/coauthors.ts
  4. +2
    -9
      src/commands/git/fetch.ts
  5. +2
    -8
      src/commands/git/log.ts
  6. +3
    -11
      src/commands/git/merge.ts
  7. +3
    -9
      src/commands/git/pull.ts
  8. +3
    -10
      src/commands/git/push.ts
  9. +3
    -11
      src/commands/git/rebase.ts
  10. +6
    -4
      src/commands/git/remote.ts
  11. +2
    -9
      src/commands/git/reset.ts
  12. +2
    -9
      src/commands/git/revert.ts
  13. +3
    -9
      src/commands/git/search.ts
  14. +2
    -4
      src/commands/git/show.ts
  15. +2
    -5
      src/commands/git/stash.ts
  16. +2
    -1
      src/commands/git/status.ts
  17. +2
    -5
      src/commands/git/switch.ts
  18. +6
    -4
      src/commands/git/tag.ts
  19. +6
    -4
      src/commands/git/worktree.ts
  20. +4
    -2
      src/commands/quickCommand.steps.ts
  21. +0
    -3
      src/commands/quickCommand.ts
  22. +2
    -5
      src/quickpicks/referencePicker.ts

+ 6
- 4
src/commands/git/branch.ts Datei anzeigen

@ -18,19 +18,21 @@ import type {
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
createConfirmStep,
createPickStep,
endSteps,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import {
appendReposToTitle,
inputBranchNameStep,
pickBranchesStep,
pickBranchOrTagStep,
pickBranchStep,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
} from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 11
src/commands/git/cherry-pick.ts Datei anzeigen

@ -16,17 +16,8 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
createConfirmStep,
endSteps,
pickBranchOrTagStep,
pickCommitsStep,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, createConfirmStep, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { appendReposToTitle, pickBranchOrTagStep, pickCommitsStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 1
src/commands/git/coauthors.ts Datei anzeigen

@ -5,7 +5,8 @@ import { executeCoreCommand } from '../../system/command';
import { normalizePath } from '../../system/path';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import type { PartialStepState, StepGenerator, StepState } from '../quickCommand';
import { endSteps, pickContributorsStep, pickRepositoryStep, QuickCommand, StepResultBreak } from '../quickCommand';
import { endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { pickContributorsStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 9
src/commands/git/fetch.ts Datei anzeigen

@ -17,15 +17,8 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
createConfirmStep,
endSteps,
pickRepositoriesStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, createConfirmStep, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { appendReposToTitle, pickRepositoriesStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 8
src/commands/git/log.ts Datei anzeigen

@ -11,14 +11,8 @@ import { pad } from '../../system/string';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import { getSteps } from '../gitCommands.utils';
import type { PartialStepState, StepGenerator, StepResult } from '../quickCommand';
import {
endSteps,
pickBranchOrTagStep,
pickCommitStep,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { pickBranchOrTagStep, pickCommitStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 3
- 11
src/commands/git/merge.ts Datei anzeigen

@ -19,17 +19,9 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
endSteps,
pickBranchOrTagStep,
pickCommitStep,
PickCommitToggleQuickInputButton,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { PickCommitToggleQuickInputButton } from '../quickCommand.buttons';
import { appendReposToTitle, pickBranchOrTagStep, pickCommitStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 3
- 9
src/commands/git/pull.ts Datei anzeigen

@ -19,15 +19,9 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
endSteps,
FetchQuickInputButton,
pickRepositoriesStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { FetchQuickInputButton } from '../quickCommand.buttons';
import { appendReposToTitle, pickRepositoriesStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 3
- 10
src/commands/git/push.ts Datei anzeigen

@ -21,16 +21,9 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
endSteps,
FetchQuickInputButton,
pickRepositoriesStep,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { FetchQuickInputButton } from '../quickCommand.buttons';
import { appendReposToTitle, pickRepositoriesStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 3
- 11
src/commands/git/rebase.ts Datei anzeigen

@ -20,17 +20,9 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
endSteps,
pickBranchOrTagStep,
pickCommitStep,
PickCommitToggleQuickInputButton,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { PickCommitToggleQuickInputButton } from '../quickCommand.buttons';
import { appendReposToTitle, pickBranchOrTagStep, pickCommitStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 6
- 4
src/commands/git/remote.ts Datei anzeigen

@ -19,18 +19,20 @@ import type {
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
createConfirmStep,
createPickStep,
endSteps,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import {
appendReposToTitle,
inputRemoteNameStep,
inputRemoteUrlStep,
pickRemoteStep,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
} from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 9
src/commands/git/reset.ts Datei anzeigen

@ -16,15 +16,8 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
endSteps,
pickCommitStep,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { appendReposToTitle, pickCommitStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 9
src/commands/git/revert.ts Datei anzeigen

@ -16,15 +16,8 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
endSteps,
pickCommitsStep,
pickRepositoryStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { appendReposToTitle, pickCommitsStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 3
- 9
src/commands/git/search.ts Datei anzeigen

@ -22,20 +22,14 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import { canPickStepContinue, createPickStep, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
createPickStep,
endSteps,
MatchAllToggleQuickInputButton,
MatchCaseToggleQuickInputButton,
MatchRegexToggleQuickInputButton,
pickCommitStep,
pickRepositoryStep,
QuickCommand,
ShowResultsInSideBarQuickInputButton,
StepResultBreak,
} from '../quickCommand';
} from '../quickCommand.buttons';
import { appendReposToTitle, pickCommitStep, pickRepositoryStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 4
src/commands/git/show.ts Datei anzeigen

@ -8,16 +8,14 @@ import { CommandQuickPickItem } from '../../quickpicks/items/common';
import { GitCommandQuickPickItem } from '../../quickpicks/items/gitCommands';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import type { PartialStepState, StepGenerator } from '../quickCommand';
import { endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import {
endSteps,
pickCommitStep,
pickRepositoryStep,
QuickCommand,
showCommitOrStashFilesStep,
showCommitOrStashFileStep,
showCommitOrStashStep,
StepResultBreak,
} from '../quickCommand';
} from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 5
src/commands/git/stash.ts Datei anzeigen

@ -29,20 +29,17 @@ import type {
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canInputStepContinue,
canPickStepContinue,
canStepContinue,
createInputStep,
createPickStep,
endSteps,
pickRepositoryStep,
pickStashStep,
QuickCommand,
RevealInSideBarQuickInputButton,
ShowDetailsViewQuickInputButton,
StepResultBreak,
} from '../quickCommand';
import { RevealInSideBarQuickInputButton, ShowDetailsViewQuickInputButton } from '../quickCommand.buttons';
import { appendReposToTitle, pickRepositoryStep, pickStashStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 1
src/commands/git/status.ts Datei anzeigen

@ -8,7 +8,8 @@ import { GitCommandQuickPickItem } from '../../quickpicks/items/gitCommands';
import { pad } from '../../system/string';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import type { PartialStepState, StepGenerator, StepState } from '../quickCommand';
import { endSteps, pickRepositoryStep, QuickCommand, showRepositoryStatusStep, StepResultBreak } from '../quickCommand';
import { endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import { pickRepositoryStep, showRepositoryStatusStep } from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 2
- 5
src/commands/git/switch.ts Datei anzeigen

@ -14,16 +14,13 @@ import type {
StepSelection,
StepState,
} from '../quickCommand';
import { canPickStepContinue, endSteps, QuickCommand, StepResultBreak } from '../quickCommand';
import {
appendReposToTitle,
canPickStepContinue,
endSteps,
inputBranchNameStep,
pickBranchOrTagStepMultiRepo,
pickRepositoriesStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
} from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 6
- 4
src/commands/git/tag.ts Datei anzeigen

@ -18,7 +18,6 @@ import type {
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canInputStepContinue,
canPickStepContinue,
canStepContinue,
@ -26,13 +25,16 @@ import {
createInputStep,
createPickStep,
endSteps,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import {
appendReposToTitle,
inputTagNameStep,
pickBranchOrTagStep,
pickRepositoryStep,
pickTagsStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
} from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 6
- 4
src/commands/git/worktree.ts Datei anzeigen

@ -36,7 +36,6 @@ import type {
StepState,
} from '../quickCommand';
import {
appendReposToTitle,
canInputStepContinue,
canPickStepContinue,
canStepContinue,
@ -44,15 +43,18 @@ import {
createCustomStep,
createPickStep,
endSteps,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
import {
appendReposToTitle,
ensureAccessStep,
inputBranchNameStep,
pickBranchOrTagStep,
pickRepositoryStep,
pickWorktreesStep,
pickWorktreeStep,
QuickCommand,
StepResultBreak,
} from '../quickCommand';
} from '../quickCommand.steps';
interface Context {
repos: Repository[];

+ 4
- 2
src/commands/quickCommand.steps.ts Datei anzeigen

@ -117,6 +117,9 @@ import {
createInputStep,
createPickStep,
endSteps,
StepResultBreak,
} from './quickCommand';
import {
LoadMoreQuickInputButton,
OpenChangesViewQuickInputButton,
OpenInNewWindowQuickInputButton,
@ -124,8 +127,7 @@ import {
RevealInSideBarQuickInputButton,
ShowDetailsViewQuickInputButton,
ShowTagsToggleQuickInputButton,
StepResultBreak,
} from './quickCommand';
} from './quickCommand.buttons';
export function appendReposToTitle<
State extends { repo: Repository } | { repos: Repository[] },

+ 0
- 3
src/commands/quickCommand.ts Datei anzeigen

@ -5,9 +5,6 @@ import type { DirectiveQuickPickItem } from '../quickpicks/items/directive';
import { createDirectiveQuickPickItem, Directive, isDirective } from '../quickpicks/items/directive';
import { configuration } from '../system/configuration';
export * from './quickCommand.buttons';
export * from './quickCommand.steps';
export interface CustomStep<T = unknown> {
ignoreFocusOut?: boolean;

+ 2
- 5
src/quickpicks/referencePicker.ts Datei anzeigen

@ -1,10 +1,7 @@
import type { Disposable, QuickPick } from 'vscode';
import { CancellationTokenSource, window } from 'vscode';
import {
getBranchesAndOrTags,
getValidateGitReferenceFn,
RevealInSideBarQuickInputButton,
} from '../commands/quickCommand';
import { RevealInSideBarQuickInputButton } from '../commands/quickCommand.buttons';
import { getBranchesAndOrTags, getValidateGitReferenceFn } from '../commands/quickCommand.steps';
import type { Keys } from '../constants';
import { GlyphChars } from '../constants';
import { Container } from '../container';

Laden…
Abbrechen
Speichern