Skip to content

Commit 4297ff8

Browse files
committed
Revert fix for microsoft#26425
1 parent c7a84f9 commit 4297ff8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

extensions/git/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@
577577
},
578578
{
579579
"command": "git.openChange",
580-
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && resourcePath in git.changedResources"
580+
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
581581
},
582582
{
583583
"command": "git.stage",
@@ -1324,7 +1324,7 @@
13241324
{
13251325
"command": "git.openChange",
13261326
"group": "navigation",
1327-
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file && resourcePath in git.changedResources"
1327+
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file"
13281328
},
13291329
{
13301330
"command": "git.stageSelectedRanges",

extensions/git/src/repository.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,6 @@ export class Repository implements Disposable {
18731873
this._submodules = submodules!;
18741874
this.rebaseCommit = rebaseCommit;
18751875

1876-
18771876
const untrackedChanges = scopedConfig.get<'mixed' | 'separate' | 'hidden'>('untrackedChanges');
18781877
const index: Resource[] = [];
18791878
const workingTree: Resource[] = [];
@@ -1964,9 +1963,6 @@ export class Repository implements Disposable {
19641963
// set count badge
19651964
this.setCountBadge();
19661965

1967-
// Update context key with changed resources
1968-
commands.executeCommand('setContext', 'git.changedResources', [...merge, ...index, ...workingTree, ...untracked].map(r => r.resourceUri.fsPath.toString()));
1969-
19701966
this._onDidChangeStatus.fire();
19711967

19721968
this._sourceControl.commitTemplate = await this.getInputTemplate();

0 commit comments

Comments
 (0)