Skip to content

Commit f9b7a04

Browse files
committed
Fix object resolve with variant characters
1 parent 0a4b889 commit f9b7a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/IBMiContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ export default class IBMiContent {
822822
}
823823

824824
async objectResolve(object: string, libraries: string[]): Promise<string | undefined> {
825-
const command = `for f in ${libraries.map(lib => `/QSYS.LIB/${this.ibmi.upperCaseName(lib)}.LIB/${this.ibmi.upperCaseName(object)}.*`).join(` `)}; do if [ -f $f ] || [ -d $f ]; then echo $f; break; fi; done`;
825+
const command = `for f in ${libraries.map(lib => `/QSYS.LIB/${this.ibmi.sysNameInAmerican(lib)}.LIB/${this.ibmi.sysNameInAmerican(object)}.*`).join(` `)}; do if [ -f $f ] || [ -d $f ]; then echo $f; break; fi; done`;
826826

827827
const result = await this.ibmi.sendCommand({
828828
command,
@@ -832,7 +832,7 @@ export default class IBMiContent {
832832
const firstMost = result.stdout;
833833

834834
if (firstMost) {
835-
const lib = Tools.unqualifyPath(firstMost);
835+
const lib = this.ibmi.sysNameInLocal(Tools.unqualifyPath(firstMost));
836836

837837
return lib.split('/')[1];
838838
}

0 commit comments

Comments
 (0)