-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add search item tooltip #2523
base: master
Are you sure you want to change the base?
Add search item tooltip #2523
Conversation
@chrjorgensen any chance you can fix that conflict? |
@worksofliam Done - had to eat first... 😉 |
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.
The change makes sense, but we are going to need test cases for this branch new method. Those belong in content.test.ts
.
* @param path | ||
* @return IFSFile | ||
*/ | ||
async getFileInfo(path: string): Promise<IFSFile> { |
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.
I think we are going to need some new test cases for this method.
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.
I will add some test cases...
@@ -110,9 +110,13 @@ export namespace Search { | |||
}); | |||
|
|||
if (grepRes.code == 0) { | |||
const hits = parseGrepOutput(grepRes.stdout); | |||
for (var i = 0; i < hits.length; i++) { | |||
hits[i].file = await connection.content.getFileInfo(hits[i].path) |
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.
Has this been testing with a large hits
array length? I wonder if getFileInfo
might be nicely suited to accept an array as parameter and then call stat
with multiple paths? Is that possible?
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.
It has not been tested, but both stat
and ls
supports multiple filenames, so I will change the function to accept an array of filenames and return an array of files info.
@chrjorgensen Please update this branch with the changes from master, but make sure your fix to |
Changes
This PR will add tooltips to the items in the search result view:
Members:

Streamfiles:

Streamfiles - find:

Included in the PR is a fix for invalid dates from the
getMemberInfo
andgetMultipleMemberInfo
functions...How to test this PR
Examples:
Checklist