Skip to content

Commit

Permalink
compile on save doesn't work with --out.
Browse files Browse the repository at this point in the history
Refs #206
  • Loading branch information
basarat committed Apr 22, 2015
1 parent 89ebb63 commit 8f5fe6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/main/atom/onSaveHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ function handle(event) {
parent.getProjectFileDetails({ filePath: event.filePath }).then(function (fileDetails) {
if (!fileDetails.project.compileOnSave)
return;
if (!fileDetails.project.compilerOptions.out)
return;
textUpdated.then(function () { return parent.emitFile({ filePath: event.filePath }); })
.then(function (res) { return mainPanelView_1.errorView.showEmittedMessage(res); });
});
Expand Down
1 change: 1 addition & 0 deletions lib/main/atom/onSaveHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export function handle(event: { filePath: string; editor: AtomCore.IEditor }) {
// Compile on save
parent.getProjectFileDetails({ filePath: event.filePath }).then(fileDetails => {
if (!fileDetails.project.compileOnSave) return;
if (!fileDetails.project.compilerOptions.out) return;

textUpdated.then(() => parent.emitFile({ filePath: event.filePath }))
.then((res) => errorView.showEmittedMessage(res));
Expand Down

0 comments on commit 8f5fe6f

Please sign in to comment.