-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converted IFS browser to TypeScript #1611
Conversation
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@sebjulliand This is so fab! It's even less lines of code - I am going to run with this build for a few days and see how it goes.. will post back if I find any issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most functionality is looking good, other than the little issue that I can't open files. See my comments regarding a type issue.
Other things that are working:
- Download
- Rename / Move
- Search with valid results
- Delete object
- Open in terminal
super({ name: shortcut, path: shortcut, type: "directory" }) | ||
|
||
this.contextValue = "shortcut"; | ||
this.iconPath = new vscode.ThemeIcon("folder-library"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I love this new icon!
constructor(file: IFSFile, parent?: IFSDirectoryItem) { | ||
super(file, { state: vscode.TreeItemCollapsibleState.Collapsed, parent }) | ||
|
||
this.contextValue = "directory"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Directory icon.. so simple yet so nice.
this.iconPath = vscode.ThemeIcon.Folder; | ||
} | ||
|
||
async getChildren(): Promise<BrowserItem[]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving the logic to fetch subitems to this right class is a nice touch.
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@worksofliam Thanks for the nice feedback mate! |
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sebjulliand Now we're looking excellent!!
I also testing some additional work to make sure shortcuts are working as expected.
Go ahead and merge whenever you're ready!
Lovely! Thanks bud! |
Changes
This PR converts the IFS Browser to TypeScript.
Also:
Checklist