Skip to content

Commit 07fb139

Browse files
committed
Adds success message for tsconfig.json init
1 parent db6e46d commit 07fb139

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/compiler/diagnosticInformationMap.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ namespace ts {
574574
Option_experimentalAsyncFunctions_cannot_be_specified_when_targeting_ES5_or_lower: { code: 6067, category: DiagnosticCategory.Message, key: "Option 'experimentalAsyncFunctions' cannot be specified when targeting ES5 or lower." },
575575
Enables_experimental_support_for_ES7_async_functions: { code: 6068, category: DiagnosticCategory.Message, key: "Enables experimental support for ES7 async functions." },
576576
Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file: { code: 6069, category: DiagnosticCategory.Message, key: "Initializes a TypeScript project and creates a tsconfig.json file." },
577+
Successfully_created_a_tsconfig_json_file: { code: 6070, category: DiagnosticCategory.Message, key: "Successfully created a tsconfig.json file." },
577578
Variable_0_implicitly_has_an_1_type: { code: 7005, category: DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." },
578579
Parameter_0_implicitly_has_an_1_type: { code: 7006, category: DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." },
579580
Member_0_implicitly_has_an_1_type: { code: 7008, category: DiagnosticCategory.Error, key: "Member '{0}' implicitly has an '{1}' type." },

src/compiler/diagnosticMessages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,6 +2286,10 @@
22862286
"category": "Message",
22872287
"code": 6069
22882288
},
2289+
"Successfully created a tsconfig.json file.": {
2290+
"category": "Message",
2291+
"code": 6070
2292+
},
22892293

22902294
"Variable '{0}' implicitly has an '{1}' type.": {
22912295
"category": "Error",

src/compiler/tsc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ namespace ts {
153153
let writer = createTextWriter("\n");
154154
buildConfigFile(writer, compilerOptions, commandLine.fileNames, ["node_modules"]);
155155
sys.writeFile(file, writer.getText());
156+
reportDiagnostic(createCompilerDiagnostic(Diagnostics.Successfully_created_a_tsconfig_json_file));
156157
}
157158
return sys.exit(ExitStatus.Success);
158159
}

0 commit comments

Comments
 (0)