|
@ -187,18 +187,6 @@ export class RepositoryNode extends SubscribeableViewNode { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@log() |
|
|
@log() |
|
|
async star() { |
|
|
|
|
|
await this.repo.star(); |
|
|
|
|
|
void this.parent!.triggerChange(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@log() |
|
|
|
|
|
async unstar() { |
|
|
|
|
|
await this.repo.unstar(); |
|
|
|
|
|
void this.parent!.triggerChange(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@log() |
|
|
|
|
|
push(options: { force?: boolean; progress?: boolean } = {}) { |
|
|
push(options: { force?: boolean; progress?: boolean } = {}) { |
|
|
return this.repo.push(options); |
|
|
return this.repo.push(options); |
|
|
} |
|
|
} |
|
@ -212,6 +200,18 @@ export class RepositoryNode extends SubscribeableViewNode { |
|
|
await this.ensureSubscription(); |
|
|
await this.ensureSubscription(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@log() |
|
|
|
|
|
async star() { |
|
|
|
|
|
await this.repo.star(); |
|
|
|
|
|
void this.parent!.triggerChange(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@log() |
|
|
|
|
|
async unstar() { |
|
|
|
|
|
await this.repo.unstar(); |
|
|
|
|
|
void this.parent!.triggerChange(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@debug() |
|
|
@debug() |
|
|
protected async subscribe() { |
|
|
protected async subscribe() { |
|
|
const disposables = [this.repo.onDidChange(this.onRepoChanged, this)]; |
|
|
const disposables = [this.repo.onDidChange(this.onRepoChanged, this)]; |
|
|