Bladeren bron

Removes re-exports to limit import scopes

main
Eric Amodio 1 jaar geleden
bovenliggende
commit
0efdc3e209
22 gewijzigde bestanden met toevoegingen van 65 en 138 verwijderingen
  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 Bestand weergeven

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

+ 2
- 11
src/commands/git/cherry-pick.ts Bestand weergeven

@ -16,17 +16,8 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 2
- 1
src/commands/git/coauthors.ts Bestand weergeven

@ -5,7 +5,8 @@ import { executeCoreCommand } from '../../system/command';
import { normalizePath } from '../../system/path'; import { normalizePath } from '../../system/path';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase'; import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import type { PartialStepState, StepGenerator, StepState } from '../quickCommand'; 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 2
- 9
src/commands/git/fetch.ts Bestand weergeven

@ -17,15 +17,8 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 2
- 8
src/commands/git/log.ts Bestand weergeven

@ -11,14 +11,8 @@ import { pad } from '../../system/string';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase'; import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import { getSteps } from '../gitCommands.utils'; import { getSteps } from '../gitCommands.utils';
import type { PartialStepState, StepGenerator, StepResult } from '../quickCommand'; 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 3
- 11
src/commands/git/merge.ts Bestand weergeven

@ -19,17 +19,9 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 3
- 9
src/commands/git/pull.ts Bestand weergeven

@ -19,15 +19,9 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 3
- 10
src/commands/git/push.ts Bestand weergeven

@ -21,16 +21,9 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 3
- 11
src/commands/git/rebase.ts Bestand weergeven

@ -20,17 +20,9 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 6
- 4
src/commands/git/remote.ts Bestand weergeven

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

+ 2
- 9
src/commands/git/reset.ts Bestand weergeven

@ -16,15 +16,8 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 2
- 9
src/commands/git/revert.ts Bestand weergeven

@ -16,15 +16,8 @@ import type {
StepSelection, StepSelection,
StepState, StepState,
} from '../quickCommand'; } 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 3
- 9
src/commands/git/search.ts Bestand weergeven

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

+ 2
- 4
src/commands/git/show.ts Bestand weergeven

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

+ 2
- 5
src/commands/git/stash.ts Bestand weergeven

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

+ 2
- 1
src/commands/git/status.ts Bestand weergeven

@ -8,7 +8,8 @@ import { GitCommandQuickPickItem } from '../../quickpicks/items/gitCommands';
import { pad } from '../../system/string'; import { pad } from '../../system/string';
import type { ViewsWithRepositoryFolders } from '../../views/viewBase'; import type { ViewsWithRepositoryFolders } from '../../views/viewBase';
import type { PartialStepState, StepGenerator, StepState } from '../quickCommand'; 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 { interface Context {
repos: Repository[]; repos: Repository[];

+ 2
- 5
src/commands/git/switch.ts Bestand weergeven

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

+ 6
- 4
src/commands/git/tag.ts Bestand weergeven

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

+ 6
- 4
src/commands/git/worktree.ts Bestand weergeven

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

+ 4
- 2
src/commands/quickCommand.steps.ts Bestand weergeven

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

+ 0
- 3
src/commands/quickCommand.ts Bestand weergeven

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

+ 2
- 5
src/quickpicks/referencePicker.ts Bestand weergeven

@ -1,10 +1,7 @@
import type { Disposable, QuickPick } from 'vscode'; import type { Disposable, QuickPick } from 'vscode';
import { CancellationTokenSource, window } 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 type { Keys } from '../constants';
import { GlyphChars } from '../constants'; import { GlyphChars } from '../constants';
import { Container } from '../container'; import { Container } from '../container';

Laden…
Annuleren
Opslaan