Przeglądaj źródła

Removes highlanderRepoPath method

main
Eric Amodio 2 lat temu
rodzic
commit
1fcf7bb8ab
5 zmienionych plików z 5 dodań i 10 usunięć
  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 Wyświetl plik

@ -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 Wyświetl plik

@ -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 Wyświetl plik

@ -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 Wyświetl plik

@ -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 Wyświetl plik

@ -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();

Ładowanie…
Anuluj
Zapisz