Quellcode durchsuchen

Fixes spelling mistake

main
Eric Amodio vor 2 Jahren
Ursprung
Commit
f155d6358f
8 geänderte Dateien mit 34 neuen und 34 gelöschten Zeilen
  1. +1
    -1
      CHANGELOG.md
  2. +6
    -6
      src/env/node/git/localGitProvider.ts
  3. +2
    -2
      src/git/formatters/commitFormatter.ts
  4. +6
    -6
      src/git/gitProvider.ts
  5. +8
    -8
      src/git/gitProviderService.ts
  6. +2
    -2
      src/git/models/commit.ts
  7. +6
    -6
      src/plus/github/githubGitProvider.ts
  8. +3
    -3
      src/repositories.ts

+ 1
- 1
CHANGELOG.md Datei anzeigen

@ -432,7 +432,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Adds a `gitlens.defaultTimeFormat` setting to specify how times will be formatted by default
- Adds a `gitlens.showWelcomeOnInstall` setting to specify whether to show the Welcome (Quick Setup) experience on first install — closes [#1049](https://github.com/gitkraken/vscode-gitlens/issues/1049) thanks to [PR #1258](https://github.com/gitkraken/vscode-gitlens/pull/1258) by Rickard ([@rickardp](https://github.com/rickardp))
- Adds a ⭐ star as a favorite indicator on branches in the quick pick menus
- Adds ability to toggle the _Toggle Compare with: Working Tree / Branch_ command before a comparision is chosen
- Adds ability to toggle the _Toggle Compare with: Working Tree / Branch_ command before a comparison is chosen
- Adds GitLens extensibility APIs
- Adds an _action runner_ extensibility point to provide a runner (handler) for the new _createPullRequest_ and _openPullRequest_ actions — see [`gitlens.d.ts`](https://github.com/gitkraken/vscode-gitlens/blob/main/src/api/gitlens.d.ts) for API definitions

+ 6
- 6
src/env/node/git/localGitProvider.ts Datei anzeigen

@ -39,10 +39,10 @@ import {
GitProvider,
GitProviderDescriptor,
GitProviderId,
NextComparisionUrisResult,
NextComparisonUrisResult,
PagedResult,
PreviousComparisionUrisResult,
PreviousLineComparisionUrisResult,
PreviousComparisonUrisResult,
PreviousLineComparisonUrisResult,
RepositoryCloseEvent,
RepositoryInitWatcher,
RepositoryOpenEvent,
@ -2786,7 +2786,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
uri: Uri,
ref: string | undefined,
skip: number = 0,
): Promise<NextComparisionUrisResult | undefined> {
): Promise<NextComparisonUrisResult | undefined> {
// If we have no ref (or staged ref) there is no next commit
if (!ref) return undefined;
@ -2890,7 +2890,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
ref: string | undefined,
skip: number = 0,
firstParent: boolean = false,
): Promise<PreviousComparisionUrisResult | undefined> {
): Promise<PreviousComparisonUrisResult | undefined> {
if (ref === GitRevision.deletedOrMissing) return undefined;
const relativePath = this.getRelativePath(uri, repoPath);
@ -2967,7 +2967,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
editorLine: number, // 0-based, Git is 1-based
ref: string | undefined,
skip: number = 0,
): Promise<PreviousLineComparisionUrisResult | undefined> {
): Promise<PreviousLineComparisonUrisResult | undefined> {
if (ref === GitRevision.deletedOrMissing) return undefined;
let relativePath = this.getRelativePath(uri, repoPath);

+ 2
- 2
src/git/formatters/commitFormatter.ts Datei anzeigen

@ -23,7 +23,7 @@ import { join, map } from '../../system/iterable';
import { PromiseCancelledError } from '../../system/promise';
import { escapeMarkdown, getSuperscript, TokenOptions } from '../../system/string';
import { ContactPresence } from '../../vsls/vsls';
import { PreviousLineComparisionUrisResult } from '../gitProvider';
import { PreviousLineComparisonUrisResult } from '../gitProvider';
import { GitCommit, GitRemote, GitRevision, IssueOrPullRequest, PullRequest } from '../models';
import { RemoteProvider } from '../remotes/provider';
import { FormatOptions, Formatter } from './formatter';
@ -42,7 +42,7 @@ export interface CommitFormatOptions extends FormatOptions {
pullRequestOrRemote?: PullRequest | PromiseCancelledError | GitRemote;
pullRequestPendingMessage?: string;
presence?: ContactPresence;
previousLineComparisonUris?: PreviousLineComparisionUrisResult;
previousLineComparisonUris?: PreviousLineComparisonUrisResult;
remotes?: GitRemote<RemoteProvider>[];
unpublished?: boolean;

+ 6
- 6
src/git/gitProvider.ts Datei anzeigen

@ -68,18 +68,18 @@ export interface PagedResult {
readonly values: NonNullable<T>[];
}
export interface NextComparisionUrisResult {
export interface NextComparisonUrisResult {
current: GitUri;
next: GitUri | undefined;
deleted?: boolean | undefined;
}
export interface PreviousComparisionUrisResult {
export interface PreviousComparisonUrisResult {
current: GitUri;
previous: GitUri | undefined;
}
export interface PreviousLineComparisionUrisResult extends PreviousComparisionUrisResult {
export interface PreviousLineComparisonUrisResult extends PreviousComparisonUrisResult {
line: number;
}
@ -332,21 +332,21 @@ export interface GitProvider extends Disposable {
uri: Uri,
ref: string | undefined,
skip?: number,
): Promise<NextComparisionUrisResult | undefined>;
): Promise<NextComparisonUrisResult | undefined>;
getPreviousComparisonUris(
repoPath: string,
uri: Uri,
ref: string | undefined,
skip?: number,
firstParent?: boolean,
): Promise<PreviousComparisionUrisResult | undefined>;
): Promise<PreviousComparisonUrisResult | undefined>;
getPreviousComparisonUrisForLine(
repoPath: string,
uri: Uri,
editorLine: number,
ref: string | undefined,
skip?: number,
): Promise<PreviousLineComparisionUrisResult | undefined>;
): Promise<PreviousLineComparisonUrisResult | undefined>;
getIncomingActivity(
repoPath: string,
options?: {

+ 8
- 8
src/git/gitProviderService.ts Datei anzeigen

@ -24,7 +24,7 @@ import { AccessDeniedError, ProviderNotFoundError } from '../errors';
import type { FeatureAccess, Features, PlusFeatures } from '../features';
import { Logger } from '../logger';
import type { SubscriptionChangeEvent } from '../plus/subscription/subscriptionService';
import { asRepoComparisonKey, RepoComparisionKey, Repositories } from '../repositories';
import { asRepoComparisonKey, RepoComparisonKey, Repositories } from '../repositories';
import { WorkspaceStorageKeys } from '../storage';
import {
FreeSubscriptionPlans,
@ -45,10 +45,10 @@ import {
GitProvider,
GitProviderDescriptor,
GitProviderId,
NextComparisionUrisResult,
NextComparisonUrisResult,
PagedResult,
PreviousComparisionUrisResult,
PreviousLineComparisionUrisResult,
PreviousComparisonUrisResult,
PreviousLineComparisonUrisResult,
RepositoryVisibility,
ScmRepository,
} from './gitProvider';
@ -161,7 +161,7 @@ export class GitProviderService implements Disposable {
readonly supportedSchemes = new Set<string>();
private readonly _disposable: Disposable;
private readonly _pendingRepositories = new Map<RepoComparisionKey, Promise<Repository | undefined>>();
private readonly _pendingRepositories = new Map<RepoComparisonKey, Promise<Repository | undefined>>();
private readonly _providers = new Map<GitProviderId, GitProvider>();
private readonly _repositories = new Repositories();
private readonly _richRemotesCache = new Map<string, GitRemote<RichRemoteProvider> | null>();
@ -1504,7 +1504,7 @@ export class GitProviderService implements Disposable {
uri: Uri,
ref: string | undefined,
skip: number = 0,
): Promise<NextComparisionUrisResult | undefined> {
): Promise<NextComparisonUrisResult | undefined> {
if (!ref) return Promise.resolve(undefined);
const { provider, path } = this.getProvider(repoPath);
@ -1518,7 +1518,7 @@ export class GitProviderService implements Disposable {
ref: string | undefined,
skip: number = 0,
firstParent: boolean = false,
): Promise<PreviousComparisionUrisResult | undefined> {
): Promise<PreviousComparisonUrisResult | undefined> {
if (ref === GitRevision.deletedOrMissing) return Promise.resolve(undefined);
const { provider, path } = this.getProvider(repoPath);
@ -1532,7 +1532,7 @@ export class GitProviderService implements Disposable {
editorLine: number,
ref: string | undefined,
skip: number = 0,
): Promise<PreviousLineComparisionUrisResult | undefined> {
): Promise<PreviousLineComparisonUrisResult | undefined> {
if (ref === GitRevision.deletedOrMissing) return Promise.resolve(undefined);
const { provider, path } = this.getProvider(repoPath);

+ 2
- 2
src/git/models/commit.ts Datei anzeigen

@ -8,7 +8,7 @@ import { gate } from '../../system/decorators/gate';
import { memoize } from '../../system/decorators/memoize';
import { cancellable } from '../../system/promise';
import { pad, pluralize } from '../../system/string';
import { PreviousLineComparisionUrisResult } from '../gitProvider';
import { PreviousLineComparisonUrisResult } from '../gitProvider';
import { GitUri } from '../gitUri';
import { GitFile, GitFileChange, GitFileWorkingTreeStatus } from './file';
import { PullRequest } from './pullRequest';
@ -430,7 +430,7 @@ export class GitCommit implements GitRevisionReference {
getPreviousComparisonUrisForLine(
editorLine: number,
ref?: string,
): Promise<PreviousLineComparisionUrisResult | undefined> {
): Promise<PreviousLineComparisonUrisResult | undefined> {
return this.file != null
? this.container.git.getPreviousComparisonUrisForLine(
this.repoPath,

+ 6
- 6
src/plus/github/githubGitProvider.ts Datei anzeigen

@ -29,10 +29,10 @@ import { Features, PlusFeatures } from '../../features';
import {
GitProvider,
GitProviderId,
NextComparisionUrisResult,
NextComparisonUrisResult,
PagedResult,
PreviousComparisionUrisResult,
PreviousLineComparisionUrisResult,
PreviousComparisonUrisResult,
PreviousLineComparisonUrisResult,
RepositoryCloseEvent,
RepositoryOpenEvent,
RepositoryVisibility,
@ -1987,7 +1987,7 @@ export class GitHubGitProvider implements GitProvider, Disposable {
uri: Uri,
ref: string | undefined,
skip: number = 0,
): Promise<NextComparisionUrisResult | undefined> {
): Promise<NextComparisonUrisResult | undefined> {
// If we have no ref there is no next commit
if (!ref) return undefined;
@ -2036,7 +2036,7 @@ export class GitHubGitProvider implements GitProvider, Disposable {
ref: string | undefined,
skip: number = 0,
_firstParent: boolean = false,
): Promise<PreviousComparisionUrisResult | undefined> {
): Promise<PreviousComparisonUrisResult | undefined> {
if (ref === GitRevision.deletedOrMissing) return undefined;
const cc = Logger.getCorrelationContext();
@ -2104,7 +2104,7 @@ export class GitHubGitProvider implements GitProvider, Disposable {
editorLine: number, // 0-based, Git is 1-based
ref: string | undefined,
skip: number = 0,
): Promise<PreviousLineComparisionUrisResult | undefined> {
): Promise<PreviousLineComparisonUrisResult | undefined> {
if (ref === GitRevision.deletedOrMissing) return undefined;
const cc = Logger.getCorrelationContext();

+ 3
- 3
src/repositories.ts Datei anzeigen

@ -9,11 +9,11 @@ import { UriTrie } from './system/trie';
const slash = 47; //CharCode.Slash;
export type RepoComparisionKey = string & { __type__: 'RepoComparisionKey' };
export type RepoComparisonKey = string & { __type__: 'RepoComparisonKey' };
export function asRepoComparisonKey(uri: Uri): RepoComparisionKey {
export function asRepoComparisonKey(uri: Uri): RepoComparisonKey {
const { path } = normalizeRepoUri(uri);
return path as RepoComparisionKey;
return path as RepoComparisonKey;
}
export function normalizeRepoUri(uri: Uri): { path: string; ignoreCase: boolean } {

Laden…
Abbrechen
Speichern