Skip to content

Commit 9220498

Browse files
Standardized aka.ms links for tsc and tsconfig (#47129)
* Standardized aka.ms links for tsc and tsconfig * Three missed baselines * Three last baselines * Went back to aka.ms/tsconfig
1 parent db226a8 commit 9220498

File tree

21 files changed

+23
-24
lines changed

21 files changed

+23
-24
lines changed

src/compiler/commandLineParser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2498,7 +2498,7 @@ namespace ts {
24982498
const result: string[] = [];
24992499
result.push(`{`);
25002500
result.push(`${tab}"compilerOptions": {`);
2501-
result.push(`${tab}${tab}/* ${getLocaleSpecificMessage(Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)} */`);
2501+
result.push(`${tab}${tab}/* ${getLocaleSpecificMessage(Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`);
25022502
result.push("");
25032503
// Print out each row, aligning all the descriptions on the same column.
25042504
for (const entry of entries) {

src/compiler/diagnosticMessages.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5852,7 +5852,6 @@
58525852
"code": 6930
58535853
},
58545854

5855-
58565855
"Variable '{0}' implicitly has an '{1}' type.": {
58575856
"category": "Error",
58585857
"code": 7005
@@ -6911,7 +6910,7 @@
69116910
"category": "Message",
69126911
"code": 95109
69136912
},
6914-
"Visit https://aka.ms/tsconfig.json to read more about this file": {
6913+
"Visit https://aka.ms/tsconfig to read more about this file": {
69156914
"category": "Message",
69166915
"code": 95110
69176916
},

src/executeCommandLine/executeCommandLine.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ namespace ts {
396396
output = [
397397
...output,
398398
...generateSectionOptionsOutput(sys, getDiagnosticText(Diagnostics.COMMAND_LINE_FLAGS), cliCommands, /*subCategory*/ false, /* beforeOptionsDescription */ undefined, /* afterOptionsDescription*/ undefined),
399-
...generateSectionOptionsOutput(sys, getDiagnosticText(Diagnostics.COMMON_COMPILER_OPTIONS), configOpts, /*subCategory*/ false, /* beforeOptionsDescription */ undefined, formatMessage(/*_dummy*/ undefined, Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsconfig-reference"))
399+
...generateSectionOptionsOutput(sys, getDiagnosticText(Diagnostics.COMMON_COMPILER_OPTIONS), configOpts, /*subCategory*/ false, /* beforeOptionsDescription */ undefined, formatMessage(/*_dummy*/ undefined, Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc"))
400400
];
401401

402402
for (const line of output) {
@@ -414,7 +414,7 @@ namespace ts {
414414

415415
function printAllHelp(sys: System, compilerOptions: readonly CommandLineOption[], buildOptions: readonly CommandLineOption[], watchOptions: readonly CommandLineOption[]) {
416416
let output: string[] = [...getHeader(sys,`${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)];
417-
output = [...output, ...generateSectionOptionsOutput(sys, getDiagnosticText(Diagnostics.ALL_COMPILER_OPTIONS), compilerOptions, /*subCategory*/ true, /* beforeOptionsDescription */ undefined, formatMessage(/*_dummy*/ undefined, Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsconfig-reference"))];
417+
output = [...output, ...generateSectionOptionsOutput(sys, getDiagnosticText(Diagnostics.ALL_COMPILER_OPTIONS), compilerOptions, /*subCategory*/ true, /* beforeOptionsDescription */ undefined, formatMessage(/*_dummy*/ undefined, Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc"))];
418418
output = [...output, ...generateSectionOptionsOutput(sys, getDiagnosticText(Diagnostics.WATCH_OPTIONS), watchOptions, /*subCategory*/ false, getDiagnosticText(Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))];
419419
output = [...output, ...generateSectionOptionsOutput(sys, getDiagnosticText(Diagnostics.BUILD_OPTIONS), buildOptions, /*subCategory*/ false, formatMessage(/*_dummy*/ undefined, Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds"))];
420420
for (const line of output) {
@@ -1061,7 +1061,7 @@ namespace ts {
10611061
sys.writeFile(file, generateTSConfig(options, fileNames, sys.newLine));
10621062
const output: string[] = [sys.newLine, ...getHeader(sys,"Created a new tsconfig.json with:")];
10631063
output.push(getCompilerOptionsDiffValue(options, sys.newLine) + sys.newLine + sys.newLine);
1064-
output.push(`You can learn more at https://aka.ms/tsconfig.json` + sys.newLine);
1064+
output.push(`You can learn more at https://aka.ms/tsconfig` + sys.newLine);
10651065
for (const line of output) {
10661066
sys.write(line);
10671067
}

tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
3+
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
66
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tsc/runWithoutArgs/initial-build/does-not-add-color-when-NO_COLOR-is-set.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Emit additional JavaScript to ease support for importing CommonJS modules. This
145145
type: boolean
146146
default: false
147147

148-
You can learn about all of the compiler options at https://aka.ms/tsconfig-reference
148+
You can learn about all of the compiler options at https://aka.ms/tsc
149149

150150
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
151151

tests/baselines/reference/tsc/runWithoutArgs/initial-build/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Emit additional JavaScript to ease support for importing CommonJS modules. This
145145
type: boolean
146146
default: false
147147

148-
You can learn about all of the compiler options at https://aka.ms/tsconfig-reference
148+
You can learn about all of the compiler options at https://aka.ms/tsc
149149

150150
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
151151

tests/baselines/reference/tsc/runWithoutArgs/initial-build/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Emit additional JavaScript to ease support for importing CommonJS modules. This
145145
type: boolean
146146
default: false
147147

148-
You can learn about all of the compiler options at https://aka.ms/tsconfig-reference
148+
You can learn about all of the compiler options at https://aka.ms/tsc
149149

150150
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
151151

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Array<T> { length: number; [n: number]: T; }
2121
//// [/user/username/projects/myproject/tsconfig.json]
2222
{
2323
"compilerOptions": {
24-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
24+
/* Visit https://aka.ms/tsconfig to read more about this file */
2525

2626
/* Projects */
2727
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Array<T> { length: number; [n: number]: T; }
2121
//// [/user/username/projects/myproject/tsconfig.json]
2222
{
2323
"compilerOptions": {
24-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
24+
/* Visit https://aka.ms/tsconfig to read more about this file */
2525

2626
/* Projects */
2727
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Array<T> { length: number; [n: number]: T; }
2121
//// [/user/username/projects/myproject/tsconfig.json]
2222
{
2323
"compilerOptions": {
24-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
24+
/* Visit https://aka.ms/tsconfig to read more about this file */
2525

2626
/* Projects */
2727
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Array<T> { length: number; [n: number]: T; }
2121
//// [/user/username/projects/myproject/tsconfig.json]
2222
{
2323
"compilerOptions": {
24-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
24+
/* Visit https://aka.ms/tsconfig to read more about this file */
2525

2626
/* Projects */
2727
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Array<T> { length: number; [n: number]: T; }
2121
//// [/user/username/projects/myproject/tsconfig.json]
2222
{
2323
"compilerOptions": {
24-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
24+
/* Visit https://aka.ms/tsconfig to read more about this file */
2525

2626
/* Projects */
2727
// "incremental": true, /* Enable incremental compilation */

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface Array<T> { length: number; [n: number]: T; }
2121
//// [/user/username/projects/myproject/tsconfig.json]
2222
{
2323
"compilerOptions": {
24-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
24+
/* Visit https://aka.ms/tsconfig to read more about this file */
2525

2626
/* Projects */
2727
// "incremental": true, /* Enable incremental compilation */

0 commit comments

Comments
 (0)