Skip to content

Commit 8f5fe6f

Browse files
committed
compile on save doesn't work with --out.
Refs #206
1 parent 89ebb63 commit 8f5fe6f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dist/main/atom/onSaveHandler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ function handle(event) {
1313
parent.getProjectFileDetails({ filePath: event.filePath }).then(function (fileDetails) {
1414
if (!fileDetails.project.compileOnSave)
1515
return;
16+
if (!fileDetails.project.compilerOptions.out)
17+
return;
1618
textUpdated.then(function () { return parent.emitFile({ filePath: event.filePath }); })
1719
.then(function (res) { return mainPanelView_1.errorView.showEmittedMessage(res); });
1820
});

lib/main/atom/onSaveHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export function handle(event: { filePath: string; editor: AtomCore.IEditor }) {
3232
// Compile on save
3333
parent.getProjectFileDetails({ filePath: event.filePath }).then(fileDetails => {
3434
if (!fileDetails.project.compileOnSave) return;
35+
if (!fileDetails.project.compilerOptions.out) return;
3536

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

0 commit comments

Comments
 (0)