ソースを参照

Removes highlanderRepoPath method

main
Eric Amodio 2年前
コミット
1fcf7bb8ab
5個のファイルの変更5行の追加10行の削除
  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 ファイルの表示

@ -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 ファイルの表示

@ -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 ファイルの表示

@ -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 ファイルの表示

@ -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 ファイルの表示

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

読み込み中…
キャンセル
保存