Sfoglia il codice sorgente

Removes highlanderRepoPath method

main
Eric Amodio 2 anni fa
parent
commit
1fcf7bb8ab
5 ha cambiato i file con 5 aggiunte e 10 eliminazioni
  1. +1
    -1
      src/commands/gitCommands.actions.ts
  2. +1
    -1
      src/commands/showQuickBranchHistory.ts
  3. +0
    -5
      src/git/gitProviderService.ts
  4. +2
    -2
      src/terminal/linkProvider.ts
  5. +1
    -1
      src/views/viewCommands.ts

+ 1
- 1
src/commands/gitCommands.actions.ts Vedi File

@ -688,7 +688,7 @@ export namespace GitActions {
export namespace Remote {
export async function add(repo?: string | Repository) {
if (repo == null) {
repo = Container.instance.git.highlanderRepoPath;
repo = Container.instance.git.highlander;
if (repo == null) {
const pick = await RepositoryPicker.show(undefined, 'Choose a repository to add a remote to');

+ 1
- 1
src/commands/showQuickBranchHistory.ts Vedi File

@ -32,7 +32,7 @@ export class ShowQuickBranchHistoryCommand extends ActiveEditorCachedCommand {
const gitUri = uri != null ? await GitUri.fromUri(uri) : undefined;
const repoPath = args?.repoPath ?? gitUri?.repoPath ?? this.container.git.highlanderRepoPath;
const repoPath = args?.repoPath ?? gitUri?.repoPath ?? this.container.git.highlander?.path;
let ref: GitReference | 'HEAD' | undefined;
if (repoPath != null) {
if (args?.branch != null) {

+ 0
- 5
src/git/gitProviderService.ts Vedi File

@ -264,11 +264,6 @@ export class GitProviderService implements Disposable {
return this.repositoryCount === 1 ? first(this._repositories.values()) : undefined;
}
@log()
get highlanderRepoPath(): string | undefined {
return this.highlander?.path;
}
// get readonly() {
// return true;
// // return this.container.vsls.readonly;

+ 2
- 2
src/terminal/linkProvider.ts Vedi File

@ -38,8 +38,8 @@ export class GitTerminalLinkProvider implements Disposable, TerminalLinkProvider
async provideTerminalLinks(context: TerminalLinkContext): Promise<GitTerminalLink[]> {
if (context.line.trim().length === 0) return [];
const repoPath = this.container.git.highlanderRepoPath;
if (repoPath == null) return [];
const repoPath = this.container.git.highlander?.path;
if (!repoPath) return [];
const links: GitTerminalLink[] = [];

+ 1
- 1
src/views/viewCommands.ts Vedi File

@ -656,7 +656,7 @@ export class ViewCommands {
@debug()
private switch(node?: ViewRefNode | BranchesNode) {
if (node == null) {
return GitActions.switchTo(this.container.git.highlanderRepoPath);
return GitActions.switchTo(this.container.git.highlander);
}
if (!(node instanceof ViewRefNode) && !(node instanceof BranchesNode)) return Promise.resolve();

Caricamento…
Annulla
Salva