File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ function handle(event) {
13
13
parent . getProjectFileDetails ( { filePath : event . filePath } ) . then ( function ( fileDetails ) {
14
14
if ( ! fileDetails . project . compileOnSave )
15
15
return ;
16
+ if ( ! fileDetails . project . compilerOptions . out )
17
+ return ;
16
18
textUpdated . then ( function ( ) { return parent . emitFile ( { filePath : event . filePath } ) ; } )
17
19
. then ( function ( res ) { return mainPanelView_1 . errorView . showEmittedMessage ( res ) ; } ) ;
18
20
} ) ;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export function handle(event: { filePath: string; editor: AtomCore.IEditor }) {
32
32
// Compile on save
33
33
parent . getProjectFileDetails ( { filePath : event . filePath } ) . then ( fileDetails => {
34
34
if ( ! fileDetails . project . compileOnSave ) return ;
35
+ if ( ! fileDetails . project . compilerOptions . out ) return ;
35
36
36
37
textUpdated . then ( ( ) => parent . emitFile ( { filePath : event . filePath } ) )
37
38
. then ( ( res ) => errorView . showEmittedMessage ( res ) ) ;
You can’t perform that action at this time.
0 commit comments