@@ -909,7 +909,7 @@ export function applyQuickFix(query: ApplyQuickFixQuery): Promise<ApplyQuickFixR
909
909
interface GetOutputResponse {
910
910
output : ts . EmitOutput ;
911
911
}
912
- import { getRawOutputPostExternal , getRawOutput } from "./modules/building" ;
912
+ import { getRawOutput } from "./modules/building" ;
913
913
export function getOutput ( query : FilePathQuery ) : Promise < GetOutputResponse > {
914
914
consistentPath ( query ) ;
915
915
var project = getOrCreateProject ( query . filePath ) ;
@@ -938,26 +938,22 @@ interface GetOutputJsStatusResponse {
938
938
export function getOutputJsStatus ( query : FilePathQuery ) : Promise < GetOutputJsStatusResponse > {
939
939
consistentPath ( query ) ;
940
940
var project = getOrCreateProject ( query . filePath ) ;
941
- return getRawOutputPostExternal ( project , query . filePath )
942
- . then ( ( output ) => {
943
- if ( output . emitSkipped ) {
944
- if ( output . outputFiles && output . outputFiles . length === 1 ) {
945
- if ( output . outputFiles [ 0 ] . text === building . Not_In_Context ) {
946
- return resolve ( { emitDiffers : false } ) ;
947
- }
948
- }
949
- return resolve ( { emitDiffers : true } ) ;
950
- }
951
- else {
952
- var jsFile = output . outputFiles . filter ( x => path . extname ( x . name ) == ".js" ) [ 0 ] ;
953
- if ( ! jsFile ) {
941
+ var output = getRawOutput ( project , query . filePath ) ;
942
+ if ( output . emitSkipped ) {
943
+ if ( output . outputFiles && output . outputFiles . length === 1 ) {
944
+ if ( output . outputFiles [ 0 ] . text === building . Not_In_Context ) {
954
945
return resolve ( { emitDiffers : false } ) ;
955
- } else {
956
- var emitDiffers = ! fs . existsSync ( jsFile . name ) || fs . readFileSync ( jsFile . name ) . toString ( ) !== jsFile . text ;
957
- return resolve ( { emitDiffers } ) ;
958
946
}
959
947
}
960
- } ) ;
948
+ return resolve ( { emitDiffers : true } ) ;
949
+ }
950
+ var jsFile = output . outputFiles . filter ( x => path . extname ( x . name ) == ".js" ) [ 0 ] ;
951
+ if ( ! jsFile ) {
952
+ return resolve ( { emitDiffers : false } ) ;
953
+ } else {
954
+ var emitDiffers = ! fs . existsSync ( jsFile . name ) || fs . readFileSync ( jsFile . name ) . toString ( ) !== jsFile . text ;
955
+ return resolve ( { emitDiffers } ) ;
956
+ }
961
957
}
962
958
963
959
/**
0 commit comments