@@ -909,7 +909,7 @@ export function applyQuickFix(query: ApplyQuickFixQuery): Promise<ApplyQuickFixR
909909interface GetOutputResponse {
910910 output : ts . EmitOutput ;
911911}
912- import { getRawOutputPostExternal , getRawOutput } from "./modules/building" ;
912+ import { getRawOutput } from "./modules/building" ;
913913export function getOutput ( query : FilePathQuery ) : Promise < GetOutputResponse > {
914914 consistentPath ( query ) ;
915915 var project = getOrCreateProject ( query . filePath ) ;
@@ -938,26 +938,22 @@ interface GetOutputJsStatusResponse {
938938export function getOutputJsStatus ( query : FilePathQuery ) : Promise < GetOutputJsStatusResponse > {
939939 consistentPath ( query ) ;
940940 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 ) {
954945 return resolve ( { emitDiffers : false } ) ;
955- } else {
956- var emitDiffers = ! fs . existsSync ( jsFile . name ) || fs . readFileSync ( jsFile . name ) . toString ( ) !== jsFile . text ;
957- return resolve ( { emitDiffers } ) ;
958946 }
959947 }
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+ }
961957}
962958
963959/**
0 commit comments