Skip to content
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

Save file before build #80

Merged
merged 10 commits into from
Jun 2, 2020
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Queenie Ma <queeniema@us.ibm.com>
  • Loading branch information
urvapatel and Queenie Ma authored Jun 2, 2020
commit 5f2482cbe2832d5e23b1d3eb8de9241767f94256
6 changes: 5 additions & 1 deletion src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ export default class StreamsBuild {
}
}

private static async checkIfDirty(filePath): Promise<void> {
/**
* Check if a file is dirty (has unsaved changes)
* @param filePath The path to the SPL file or Makefile
*/
private static async checkIfDirty(filePath: string): Promise<void> {
let isFileDirty = false;
let dirtyFile = null;
const fileName = filePath.substring(filePath.lastIndexOf("/") + 1);
Expand Down