Skip to content

Commit

Permalink
Merge pull request #1764 from angelorpa/fix-#1172-No-warning-of-trunc…
Browse files Browse the repository at this point in the history
…ated-lines-when-saving-to-source-member

Fix #1172 - No warning of truncated lines when saving to source member
  • Loading branch information
sebjulliand committed Jan 8, 2024
2 parents 498ad23 + dffa919 commit 88120f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/IBMiContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { CommandResult, IBMiError, IBMiFile, IBMiMember, IBMiObject, IFSFile, Qs
import { ConnectionConfiguration } from './Configuration';
import { default as IBMi } from './IBMi';
import { Tools } from './Tools';
import { window } from 'vscode';
const tmpFile = util.promisify(tmp.file);
const readFileAsync = util.promisify(fs.readFile);
const writeFileAsync = util.promisify(fs.writeFile);
Expand Down Expand Up @@ -187,6 +188,10 @@ export default class IBMiContent {
});

if (copyResult.code === 0) {
const messages = Tools.parseMessages(copyResult.stderr);
if (messages.findId("CPIA083")) {
window.showWarningMessage(`${library}/${sourceFile}(${member}) was saved with truncated records!`);
}
return true;
} else {
if (!retry) {
Expand Down

0 comments on commit 88120f9

Please sign in to comment.