Skip to content

Commit 2efc817

Browse files
authored
fix pathChanged signal to emit correct newValue (#63)
1 parent dd0191a commit 2efc817

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/unfold.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ export class FilterFileTreeBrowserModel extends FilterFileBrowserModel {
440440
needsToEmit = true;
441441
}
442442

443+
const oldValue = this._path;
443444
this._path = value;
444445

445446
if (needsToEmit) {
@@ -450,8 +451,8 @@ export class FilterFileTreeBrowserModel extends FilterFileBrowserModel {
450451

451452
pathChanged.emit({
452453
name: 'path',
453-
oldValue: this._path,
454-
newValue: PathExt.dirname(this._path)
454+
oldValue,
455+
newValue: this._path,
455456
});
456457
}
457458
}

0 commit comments

Comments
 (0)