@@ -117,7 +117,7 @@ namespace ts {
117117
118118 if ( commandLine . options . locale ) {
119119 if ( ! isJSONSupported ( ) ) {
120- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--locale" ) , /* host */ undefined ) ;
120+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--locale" ) , /*host*/ undefined ) ;
121121 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
122122 }
123123 validateLocaleAndSetLanguage ( commandLine . options . locale , sys , commandLine . errors ) ;
@@ -148,26 +148,26 @@ namespace ts {
148148
149149 if ( commandLine . options . project ) {
150150 if ( ! isJSONSupported ( ) ) {
151- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--project" ) , /* host */ undefined ) ;
151+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--project" ) , /*host*/ undefined ) ;
152152 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
153153 }
154154 if ( commandLine . fileNames . length !== 0 ) {
155- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Option_project_cannot_be_mixed_with_source_files_on_a_command_line ) , /* host */ undefined ) ;
155+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Option_project_cannot_be_mixed_with_source_files_on_a_command_line ) , /*host*/ undefined ) ;
156156 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
157157 }
158158
159159 const fileOrDirectory = normalizePath ( commandLine . options . project ) ;
160160 if ( ! fileOrDirectory /* current directory "." */ || sys . directoryExists ( fileOrDirectory ) ) {
161161 configFileName = combinePaths ( fileOrDirectory , "tsconfig.json" ) ;
162162 if ( ! sys . fileExists ( configFileName ) ) {
163- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0 , commandLine . options . project ) , /* host */ undefined ) ;
163+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0 , commandLine . options . project ) , /*host*/ undefined ) ;
164164 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
165165 }
166166 }
167167 else {
168168 configFileName = fileOrDirectory ;
169169 if ( ! sys . fileExists ( configFileName ) ) {
170- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_specified_path_does_not_exist_Colon_0 , commandLine . options . project ) , /* host */ undefined ) ;
170+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_specified_path_does_not_exist_Colon_0 , commandLine . options . project ) , /*host*/ undefined ) ;
171171 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
172172 }
173173 }
@@ -185,7 +185,7 @@ namespace ts {
185185
186186 if ( isWatchSet ( commandLine . options ) ) {
187187 if ( ! sys . watchFile ) {
188- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--watch" ) , /* host */ undefined ) ;
188+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--watch" ) , /*host*/ undefined ) ;
189189 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
190190 }
191191 if ( configFileName ) {
@@ -218,21 +218,21 @@ namespace ts {
218218 }
219219 if ( ! cachedConfigFileText ) {
220220 const error = createCompilerDiagnostic ( Diagnostics . File_0_not_found , configFileName ) ;
221- reportDiagnostics ( [ error ] , /* compilerHost */ undefined ) ;
221+ reportDiagnostics ( [ error ] , /*compilerHost*/ undefined ) ;
222222 sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
223223 return ;
224224 }
225225
226226 const result = parseJsonText ( configFileName , cachedConfigFileText ) ;
227- reportDiagnostics ( result . parseDiagnostics , /* compilerHost */ undefined ) ;
227+ reportDiagnostics ( result . parseDiagnostics , /*compilerHost*/ undefined ) ;
228228
229229 const cwd = sys . getCurrentDirectory ( ) ;
230230 const configParseResult = parseJsonSourceFileConfigFileContent ( result , sys , getNormalizedAbsolutePath ( getDirectoryPath ( configFileName ) , cwd ) , commandLine . options , getNormalizedAbsolutePath ( configFileName , cwd ) ) ;
231- reportDiagnostics ( configParseResult . errors , /* compilerHost */ undefined ) ;
231+ reportDiagnostics ( configParseResult . errors , /*compilerHost*/ undefined ) ;
232232
233233 if ( isWatchSet ( configParseResult . options ) ) {
234234 if ( ! sys . watchFile ) {
235- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--watch" ) , /* host */ undefined ) ;
235+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_current_host_does_not_support_the_0_option , "--watch" ) , /*host*/ undefined ) ;
236236 sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
237237 }
238238
@@ -654,11 +654,11 @@ namespace ts {
654654 const currentDirectory = sys . getCurrentDirectory ( ) ;
655655 const file = normalizePath ( combinePaths ( currentDirectory , "tsconfig.json" ) ) ;
656656 if ( sys . fileExists ( file ) ) {
657- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . A_tsconfig_json_file_is_already_defined_at_Colon_0 , file ) , /* host */ undefined ) ;
657+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . A_tsconfig_json_file_is_already_defined_at_Colon_0 , file ) , /*host*/ undefined ) ;
658658 }
659659 else {
660660 sys . writeFile ( file , generateTSConfig ( options , fileNames , sys . newLine ) ) ;
661- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Successfully_created_a_tsconfig_json_file ) , /* host */ undefined ) ;
661+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Successfully_created_a_tsconfig_json_file ) , /*host*/ undefined ) ;
662662 }
663663
664664 return ;
0 commit comments