Skip to content

Commit

Permalink
Correctly identity .pgm in source names
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Allan <[email protected]>
  • Loading branch information
worksofliam committed May 6, 2023
1 parent 1549ef6 commit 7a8b7b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/providers/project/exportInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export function getInterfaces(): APIInterface[] {
const uriDetail = path.parse(uri);
const basename = uriDetail.base;
const nameDetail = path.parse(basename);
const objectName = nameDetail.name.toUpperCase();
let objectName = path.basename(nameDetail.name).toUpperCase();

if (objectName.endsWith(`.PGM`)) objectName = objectName.substring(0, objectName.length-4);

if (basename.toLowerCase().endsWith(`.rpgleinc`) === false) {
const cache = parser.getParsedCache(uri);
Expand Down

0 comments on commit 7a8b7b7

Please sign in to comment.