You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FilterFileTreeBrowserModel.path setter is emitting incorrect paths in the FilterFileTreeBrowserModel.pathChanged signal. It is setting the newValue as the parent of the current path rather than the actual current path. It is correct if it is already at the root.
The oldValue is set as new value (this._path) and newValue is set as the parent / directory of that new value (PathExt.dirname(this._path)). I am not sure what was the intended reason for this implementation.
This was actually added in a PR that I made but the particular commit was made by @martinRenou. #53
It was explicitly changed in c86761d from my prior implementation below:
set path(value: string) {
if (this._path === value) {
return;
}
const pathChanged = this.pathChanged as Signal<this, IChangedArgs<string>>;
const oldValue = this._path;
this._path = value;
pathChanged.emit({
name: 'path',
oldValue,
newValue: value
});
}
@martinRenou, perhaps there was a good reason for this change?
Reproduce
Install jupyterlab-git
Start with a workspace without any .git in root.
Create a directory with a git repository
Click on directory in UI
Click on jupyterlab-git extension widget
It would say that that directory is not a git repository
If you click on any of its child directories, it now would recognise that it is a git repository
Expected behavior
The jupyterlab-git extension should work with jupyterlab-unfold as expected.
Context
I have actually been working around this for quite a while but always clicking a child directory, I had assumed it was some issue with my setup.
The text was updated successfully, but these errors were encountered:
Description
The FilterFileTreeBrowserModel.path setter is emitting incorrect paths in the FilterFileTreeBrowserModel.pathChanged signal. It is setting the
newValue
as the parent of the current path rather than the actual current path. It is correct if it is already at the root.This logic is in:
jupyterlab-unfold/src/unfold.ts
Lines 451 to 455 in dd0191a
The
oldValue
is set as new value (this._path
) andnewValue
is set as the parent / directory of that new value (PathExt.dirname(this._path)
). I am not sure what was the intended reason for this implementation.This was actually added in a PR that I made but the particular commit was made by @martinRenou. #53
It was explicitly changed in c86761d from my prior implementation below:
@martinRenou, perhaps there was a good reason for this change?
Reproduce
jupyterlab-git
Expected behavior
The jupyterlab-git extension should work with jupyterlab-unfold as expected.
Context
I have actually been working around this for quite a while but always clicking a child directory, I had assumed it was some issue with my setup.
The text was updated successfully, but these errors were encountered: