Skip to content

Commit 6dbddd8

Browse files
authored
fix: freeze Resource#command (microsoft#158579)
Fixes: microsoft#157904
1 parent a3f5d24 commit 6dbddd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/src/repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export class Resource implements SourceControlResourceState {
8787
return this.resources[1];
8888
}
8989

90+
@memoize
9091
get command(): Command {
9192
return this._commandResolver.resolveDefaultCommand(this);
9293
}
@@ -938,8 +939,7 @@ export class Repository implements Disposable {
938939

939940
workspace.onDidChangeConfiguration(e => {
940941
if (e.affectsConfiguration('git.mergeEditor')) {
941-
// this.mergeGroup.resourceStates = this.mergeGroup.resourceStates.map(r => r.clone());
942-
this.status();
942+
this.mergeGroup.resourceStates = this.mergeGroup.resourceStates.map(r => r.clone());
943943
}
944944
}, undefined, this.disposables);
945945

0 commit comments

Comments
 (0)