-
Notifications
You must be signed in to change notification settings - Fork 105
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
ASP support member lookup #1706
Conversation
src/api/IBMiContent.ts
Outdated
return `/QSYS.LIB/${file.library}.LIB/${file.name}.FILE/${member}.MBR`; | ||
} | ||
}) | ||
.map(file => Tools.escapePath(file)) |
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.
@chrjorgensen Is this the valid way to use escape path? The tests continue to pass and this should ensure that $
can be used in the path itself.
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.
@worksofliam LGTM - even though I haven't had anything to do with Tools.escapePath
... you may be thinking of Tools.sanitizeLibraryNames
?
Using Tools.escapePath
should be okay, when the library is not preceded by a space (which caused trouble in the shell when the library name started with #
).
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.
Supposed I better use Tools.sanitizeLibraryNames
too!
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.
@chrjorgensen I actually used both in a new commit. Made a well needed improved to one of our existing APIs.
Tests continue to pass. |
Changes
Similar to opening files,
memberResolve
will now look in the user defined ASP to find a member. Additionally, the API can accept an ASP and will use that instead.Also solves a bug with the
qualifyPath
which wasn't handlingQSYS
correctly.Checklist
console.log
s I added