File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -740,10 +740,10 @@ namespace ts {
740740 */
741741 export const supportedTypeScriptExtensions = [ ".ts" , ".tsx" , ".d.ts" ] ;
742742 export const supportedJavascriptExtensions = [ ".js" , ".jsx" ] ;
743- export const supportedExtensionsWhenAllowedJs = supportedTypeScriptExtensions . concat ( supportedJavascriptExtensions ) ;
743+ const allSupportedExtensions = supportedTypeScriptExtensions . concat ( supportedJavascriptExtensions ) ;
744744
745745 export function getSupportedExtensions ( options ?: CompilerOptions ) : string [ ] {
746- return options && options . allowJs ? supportedExtensionsWhenAllowedJs : supportedTypeScriptExtensions ;
746+ return options && options . allowJs ? allSupportedExtensions : supportedTypeScriptExtensions ;
747747 }
748748
749749 export function isSupportedSourceFileName ( fileName : string , compilerOptions ?: CompilerOptions ) {
Original file line number Diff line number Diff line change @@ -832,13 +832,11 @@ namespace ts {
832832 } ) ;
833833 }
834834
835- function getOptionsDiagnostics ( cancellationToken ?: CancellationToken , includeEmitBlockingDiagnostics ?: boolean ) : Diagnostic [ ] {
835+ function getOptionsDiagnostics ( cancellationToken ?: CancellationToken ) : Diagnostic [ ] {
836836 let allDiagnostics : Diagnostic [ ] = [ ] ;
837837 addRange ( allDiagnostics , fileProcessingDiagnostics . getGlobalDiagnostics ( ) ) ;
838838 addRange ( allDiagnostics , programDiagnostics . getGlobalDiagnostics ( ) ) ;
839- if ( ! includeEmitBlockingDiagnostics ) {
840- addRange ( allDiagnostics , emitBlockingDiagnostics . getGlobalDiagnostics ( ) ) ;
841- }
839+ addRange ( allDiagnostics , emitBlockingDiagnostics . getGlobalDiagnostics ( ) ) ;
842840 return sortAndDeduplicateDiagnostics ( allDiagnostics ) ;
843841 }
844842
You can’t perform that action at this time.
0 commit comments