Skip to content

Commit 95d18b0

Browse files
committed
Fix when
1 parent 9edc6ae commit 95d18b0

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2974,7 +2974,7 @@
29742974
},
29752975
{
29762976
"command": "pr.revealFileInOS",
2977-
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange.*:local/ && viewItem !~ /filechange:DELETE/",
2977+
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange(?!:ADD)/",
29782978
"group": "0_open@1"
29792979
},
29802980
{

src/view/treeNodes/fileChangeNode.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -299,20 +299,6 @@ export class GitFileChangeNode extends FileChangeNode implements vscode.TreeItem
299299
private _comments?: IComment[]
300300
) {
301301
super(parent, pullRequestManager, pullRequest, changeModel);
302-
this._appendLocalSuffix();
303-
}
304-
305-
private _appendLocalSuffix() {
306-
// Mark as local file to distinguish from remote files
307-
// Only append if not already present to avoid duplication
308-
if (!this.contextValue.endsWith(':local')) {
309-
this.contextValue = `${this.contextValue}:local`;
310-
}
311-
}
312-
313-
override updateViewed(viewed: ViewedState) {
314-
super.updateViewed(viewed);
315-
this._appendLocalSuffix();
316302
}
317303

318304
get comments(): IComment[] {

0 commit comments

Comments
 (0)