From bb3440e9edc58b28350ce4d9f9bcb185bc6a4a82 Mon Sep 17 00:00:00 2001 From: haoqixu Date: Mon, 17 Mar 2025 00:10:54 +0800 Subject: [PATCH 1/7] Port part of tsc help from strada --- internal/core/compileroptions.go | 2 + internal/execute/outputs.go | 184 ++++++++++++++++++ internal/execute/tsc.go | 14 +- internal/tsoptions/commandlineoption.go | 6 +- internal/tsoptions/declsbuild.go | 12 +- internal/tsoptions/declscompiler.go | 18 +- internal/tsoptions/namemap.go | 4 +- internal/tsoptions/parsinghelpers.go | 4 + ...when explicitly requested with json api.js | 4 +- ...citly requested with jsonSourceFile api.js | 4 +- ...e references are provided with json api.js | 4 +- ...es are provided with jsonSourceFile api.js | 4 +- ...tionDir unless overridden with json api.js | 8 +- ...less overridden with jsonSourceFile api.js | 8 +- ... outDir unless overridden with json api.js | 8 +- ...less overridden with jsonSourceFile api.js | 8 +- ...rectory with no .ts files with json api.js | 4 +- ...th no .ts files with jsonSourceFile api.js | 4 +- ...rrors for empty directory with json api.js | 4 +- ...empty directory with jsonSourceFile api.js | 4 +- ...o references are provided with json api.js | 4 +- ...es are provided with jsonSourceFile api.js | 4 +- ...rors for empty files list with json api.js | 4 +- ...mpty files list with jsonSourceFile api.js | 4 +- ... errors for empty include with json api.js | 4 +- ...r empty include with jsonSourceFile api.js | 4 +- ... for includes with outDir with json api.js | 4 +- ...des with outDir with jsonSourceFile api.js | 4 +- ...ine option is in tsconfig with json api.js | 4 +- ... is in tsconfig with jsonSourceFile api.js | 4 +- ... when files is not string with json api.js | 4 +- ...s is not string with jsonSourceFile api.js | 4 +- ...hen include is not string with json api.js | 4 +- ...e is not string with jsonSourceFile api.js | 4 +- ... dotted files and folders with json api.js | 4 +- ...les and folders with jsonSourceFile api.js | 4 +- ...de common package folders with json api.js | 4 +- ...package folders with jsonSourceFile api.js | 4 +- ...les, include, and exclude with json api.js | 4 +- ...de, and exclude with jsonSourceFile api.js | 4 +- ...ith extends and configDir with json api.js | 4 +- ...s and configDir with jsonSourceFile api.js | 4 +- ...include and other options with json api.js | 4 +- ...d other options with jsonSourceFile api.js | 4 +- ...ror for an unknown option with json api.js | 4 +- ... unknown option with jsonSourceFile api.js | 4 +- ...en tsconfig have excludes with json api.js | 4 +- ...g have excludes with jsonSourceFile api.js | 4 +- ...outDir from base tsconfig with json api.js | 8 +- ...m base tsconfig with jsonSourceFile api.js | 8 +- .../Parse---lib-option-with-file-name.js | 4 +- .../Parse--p-with-path-to-tsconfig-file.js | 4 +- .../Parse--p-with-path-to-tsconfig-folder.js | 4 +- .../reference/tsc/commandLine/Parse--p.js | 4 +- .../commandLine/Parse-enum-type-options.js | 4 +- .../Parse-watch-interval-option.js | 4 +- .../commandLine/Project-is-empty-string.js | 5 +- ...does-not-add-color-when-NO_COLOR-is-set.js | 5 +- .../reference/tsc/commandLine/help-all.js | 9 +- .../reference/tsc/commandLine/help.js | 40 +++- ...when-host-cannot-provide-terminal-width.js | 5 +- ...tatus.DiagnosticsPresent_OutputsSkipped.js | 5 +- .../when-build-not-first-argument.js | 5 +- .../extends/configDir-template-showConfig.js | 4 +- .../configDir-template-with-commandline.js | 4 +- .../tsc/extends/configDir-template.js | 4 +- .../tsc/noCheck/outFile/dts-errors.js | 4 +- .../tsc/noCheck/outFile/semantic-errors.js | 4 +- .../tsc/noCheck/outFile/syntax-errors.js | 4 +- .../noEmit/when-project-has-strict-true.js | 4 +- ...eferences-composite-project-with-noEmit.js | 4 +- .../noEmit/dts-errors-without-dts-enabled.js | 4 +- .../reference/tscWatch/noEmit/dts-errors.js | 4 +- .../tscWatch/noEmit/semantic-errors.js | 4 +- .../tscWatch/noEmit/syntax-errors.js | 4 +- 75 files changed, 483 insertions(+), 99 deletions(-) diff --git a/internal/core/compileroptions.go b/internal/core/compileroptions.go index 074532d3a6..94fdeed106 100644 --- a/internal/core/compileroptions.go +++ b/internal/core/compileroptions.go @@ -134,6 +134,8 @@ type CompilerOptions struct { Watch Tristate `json:"watch,omitzero"` ShowConfig Tristate `json:"showConfig,omitzero"` TscBuild Tristate `json:"tscBuild,omitzero"` + Help Tristate `json:"help"` + All Tristate `json:"all"` } func (options *CompilerOptions) GetEmitScriptTarget() ScriptTarget { diff --git a/internal/execute/outputs.go b/internal/execute/outputs.go index 18e17a2350..fd84d0cc1f 100644 --- a/internal/execute/outputs.go +++ b/internal/execute/outputs.go @@ -2,6 +2,7 @@ package execute import ( "fmt" + "slices" "strings" "github.com/microsoft/typescript-go/internal/ast" @@ -9,6 +10,7 @@ import ( "github.com/microsoft/typescript-go/internal/compiler/diagnostics" "github.com/microsoft/typescript-go/internal/core" "github.com/microsoft/typescript-go/internal/diagnosticwriter" + "github.com/microsoft/typescript-go/internal/tsoptions" "github.com/microsoft/typescript-go/internal/tspath" ) @@ -85,3 +87,185 @@ func printVersion(sys System) { fmt.Fprint(sys.Writer(), diagnostics.Version_0.Format(core.Version)+sys.NewLine()) sys.EndWrite() } + +func printHelp(sys System, commandLine *tsoptions.ParsedCommandLine) { + if commandLine.CompilerOptions().All.IsFalseOrUnknown() { + printEasyHelp(sys, getOptionsForHelp(commandLine)) + } else { + // !!! printAllHelp(sys, getOptionsForHelp(commandLine)) + } +} + +func getOptionsForHelp(commandLine *tsoptions.ParsedCommandLine) []*tsoptions.CommandLineOption { + // Sort our options by their names, (e.g. "--noImplicitAny" comes before "--watch") + opts := slices.Clone(tsoptions.OptionsDeclarations) + opts = append(opts, &tsoptions.TscBuildOption) + + if commandLine.CompilerOptions().All.IsTrue() { + slices.SortFunc(opts, func(a, b *tsoptions.CommandLineOption) int { + return strings.Compare(strings.ToLower(a.Name), strings.ToLower(b.Name)) + }) + return opts + } else { + return core.Filter(opts, func(opt *tsoptions.CommandLineOption) bool { + return opt.ShowInSimplifiedHelpView() + }) + } +} + +func getHeader(sys System, message string) []string { + // !!! const colors = createColors(sys); + var header []string + // !!! terminalWidth := sys.GetWidthOfTerminal?.() ?? 0 + const tsIconLength = 5 + + // const tsIconFirstLine = colors.blueBackground("".padStart(tsIconLength)); + // const tsIconSecondLine = colors.blueBackground(colors.brightWhite("TS ".padStart(tsIconLength))); + // // If we have enough space, print TS icon. + // if (terminalWidth >= message.length + tsIconLength) { + // // right align of the icon is 120 at most. + // const rightAlign = terminalWidth > 120 ? 120 : terminalWidth; + // const leftAlign = rightAlign - tsIconLength; + // header.push(message.padEnd(leftAlign) + tsIconFirstLine + sys.newLine); + // header.push("".padStart(leftAlign) + tsIconSecondLine + sys.newLine); + // } + // else { + header = append(header, message+sys.NewLine(), sys.NewLine()) + // } + return header +} + +func printEasyHelp(sys System, simpleOptions []*tsoptions.CommandLineOption) { + // !!! const colors = createColors(sys); + var output []string + example := func(examples []string, desc *diagnostics.Message) { + for _, example := range examples { + // !!! colors + // output.push(" " + colors.blue(example) + sys.newLine); + output = append(output, " ", example, sys.NewLine()) + } + output = append(output, " ", ast.NewCompilerDiagnostic(desc).Message(), sys.NewLine(), sys.NewLine()) + } + + msg := ast.NewCompilerDiagnostic(diagnostics.X_tsc_Colon_The_TypeScript_Compiler).Message() + " - " + ast.NewCompilerDiagnostic(diagnostics.Version_0, core.Version).Message() + output = append(output, getHeader(sys, msg)...) + + output = append(output /*colors.bold(*/, ast.NewCompilerDiagnostic(diagnostics.COMMON_COMMANDS).Message() /*)*/, sys.NewLine(), sys.NewLine()) + + example([]string{"tsc"}, diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory) + example([]string{"tsc app.ts util.ts"}, diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options) + example([]string{"tsc -b"}, diagnostics.Build_a_composite_project_in_the_working_directory) + example([]string{"tsc --init"}, diagnostics.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory) + example([]string{"tsc -p ./path/to/tsconfig.json"}, diagnostics.Compiles_the_TypeScript_project_located_at_the_specified_path) + example([]string{"tsc --help --all"}, diagnostics.An_expanded_version_of_this_information_showing_all_possible_compiler_options) + example([]string{"tsc --noEmit", "tsc --target esnext"}, diagnostics.Compiles_the_current_project_with_additional_settings) + + var cliCommands []*tsoptions.CommandLineOption + var configOpts []*tsoptions.CommandLineOption + for _, opt := range simpleOptions { + if opt.IsCommandLineOnly || opt.Category == diagnostics.Command_line_Options { + cliCommands = append(cliCommands, opt) + } else { + configOpts = append(configOpts, opt) + } + } + + output = append(output, generateSectionOptionsOutput(sys, diagnostics.COMMAND_LINE_FLAGS.Format(), cliCommands /*subCategory*/, false /*beforeOptionsDescription*/, nil /*afterOptionsDescription*/, nil)...) + + after := diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0.Format("https://aka.ms/tsc") + output = append(output, generateSectionOptionsOutput(sys, diagnostics.COMMON_COMPILER_OPTIONS.Format(), configOpts /*subCategory*/, false /*beforeOptionsDescription*/, nil, + // !!! locale formatMessage(Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc")), + &after)...) + + for _, chunk := range output { + fmt.Fprint(sys.Writer(), chunk) + } + sys.EndWrite() +} + +func generateSectionOptionsOutput( + sys System, + sectionName string, + options []*tsoptions.CommandLineOption, + subCategory bool, + beforeOptionsDescription, + afterOptionsDescription *string, +) (output []string) { + // !!! color + output = append(output /*createColors(sys).bold(*/, sectionName /*)*/, sys.NewLine(), sys.NewLine()) + + if beforeOptionsDescription != nil { + output = append(output, *beforeOptionsDescription, sys.NewLine(), sys.NewLine()) + } + if !subCategory { + output = append(output, generateGroupOptionOutput(sys, options)...) + if afterOptionsDescription != nil { + output = append(output, *afterOptionsDescription, sys.NewLine(), sys.NewLine()) + } + return output + } + categoryMap := make(map[string][]*tsoptions.CommandLineOption) + for _, option := range options { + if option.Category == nil { + continue + } + curCategory := ast.NewCompilerDiagnostic(option.Category).Message() + categoryMap[curCategory] = append(categoryMap[curCategory], option) + } + for key, value := range categoryMap { + output = append(output, "### ", key, sys.NewLine(), sys.NewLine()) + output = append(output, generateGroupOptionOutput(sys, value)...) + } + if afterOptionsDescription != nil { + output = append(output, *afterOptionsDescription, sys.NewLine(), sys.NewLine()) + } + + return output +} + +func generateGroupOptionOutput(sys System, optionsList []*tsoptions.CommandLineOption) []string { + var maxLength int + for _, option := range optionsList { + curLenght := len(getDisplayNameTextOfOption(option)) + maxLength = max(curLenght, maxLength) + } + + // left part should be right align, right part should be left align + + // assume 2 space between left margin and left part. + rightAlignOfLeftPart := maxLength + 2 + // assume 2 space between left and right part + leftAlignOfRightPart := rightAlignOfLeftPart + 2 + + var lines []string + for _, option := range optionsList { + tmp := generateOptionOutput(sys, option, rightAlignOfLeftPart, leftAlignOfRightPart) + lines = append(lines, tmp...) + } + + // make sure always a blank line in the end. + // !!! if lines[len(lines)-2] != sys.NewLine() { + // !!! lines = append(lines, sys.NewLine()) + // !!! } + + return lines +} +func generateOptionOutput( + sys System, + option *tsoptions.CommandLineOption, + rightAlignOfLeftPart, leftAlignOfRightPart int, +) []string { + var text []string + // !!! const colors = createColors(sys); + + // name and description + // !!! name := getDisplayNameTextOfOption(option) + + // !!! + + return text +} + +func getDisplayNameTextOfOption(option *tsoptions.CommandLineOption) string { + return "--" + option.Name + core.IfElse(option.ShortName != "", ", -"+option.ShortName, "") +} diff --git a/internal/execute/tsc.go b/internal/execute/tsc.go index 498f9d2905..4f13982124 100644 --- a/internal/execute/tsc.go +++ b/internal/execute/tsc.go @@ -34,10 +34,7 @@ func executeCommandLineWorker(sys System, cb cbType, commandLine *tsoptions.Pars return ExitStatusDiagnosticsPresent_OutputsSkipped, nil } - if commandLine.CompilerOptions().Init.IsTrue() || - // commandLine.CompilerOptions().Help != nil || - // commandLine.CompilerOptions().All != nil || - commandLine.CompilerOptions().Watch.IsTrue() && commandLine.CompilerOptions().ListFilesOnly.IsTrue() { + if commandLine.CompilerOptions().Init.IsTrue() { return ExitStatusNotImplemented, nil } @@ -46,6 +43,15 @@ func executeCommandLineWorker(sys System, cb cbType, commandLine *tsoptions.Pars return ExitStatusSuccess, nil } + if commandLine.CompilerOptions().Help.IsTrue() || commandLine.CompilerOptions().All.IsTrue() { + printHelp(sys, commandLine) + return ExitStatusSuccess, nil + } + + if commandLine.CompilerOptions().Watch.IsTrue() && commandLine.CompilerOptions().ListFilesOnly.IsTrue() { + return ExitStatusNotImplemented, nil + } + if commandLine.CompilerOptions().Project != "" { if len(commandLine.FileNames()) != 0 { reportDiagnostic(ast.NewCompilerDiagnostic(diagnostics.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)) diff --git a/internal/tsoptions/commandlineoption.go b/internal/tsoptions/commandlineoption.go index 63173c98ac..fec6c0b9ea 100644 --- a/internal/tsoptions/commandlineoption.go +++ b/internal/tsoptions/commandlineoption.go @@ -19,7 +19,7 @@ const ( ) type CommandLineOption struct { - Name, shortName string + Name, ShortName string Kind CommandLineOptionKind // used in parsing @@ -65,6 +65,10 @@ type CommandLineOption struct { ElementOptions map[string]*CommandLineOption } +func (o *CommandLineOption) ShowInSimplifiedHelpView() bool { + return o.showInSimplifiedHelpView +} + func (o *CommandLineOption) DeprecatedKeys() *core.Set[string] { if o.Kind != CommandLineOptionTypeEnum { return nil diff --git a/internal/tsoptions/declsbuild.go b/internal/tsoptions/declsbuild.go index 5d40a4ae80..b0976c0d3a 100644 --- a/internal/tsoptions/declsbuild.go +++ b/internal/tsoptions/declsbuild.go @@ -8,10 +8,10 @@ import ( var BuildOpts = slices.Concat(commonOptionsWithBuild, optionsForBuild) -var tscBuildOption = CommandLineOption{ +var TscBuildOption = CommandLineOption{ Name: "build", Kind: "boolean", - shortName: "b", + ShortName: "b", showInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, @@ -19,10 +19,10 @@ var tscBuildOption = CommandLineOption{ } var optionsForBuild = []*CommandLineOption{ - &tscBuildOption, + &TscBuildOption, { Name: "verbose", - shortName: "v", + ShortName: "v", Category: diagnostics.Command_line_Options, Description: diagnostics.Enable_verbose_logging, Kind: "boolean", @@ -30,7 +30,7 @@ var optionsForBuild = []*CommandLineOption{ }, { Name: "dry", - shortName: "d", + ShortName: "d", Category: diagnostics.Command_line_Options, Description: diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean, Kind: "boolean", @@ -38,7 +38,7 @@ var optionsForBuild = []*CommandLineOption{ }, { Name: "force", - shortName: "f", + ShortName: "f", Category: diagnostics.Command_line_Options, Description: diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date, Kind: "boolean", diff --git a/internal/tsoptions/declscompiler.go b/internal/tsoptions/declscompiler.go index 11a577c237..a8b66ceef5 100644 --- a/internal/tsoptions/declscompiler.go +++ b/internal/tsoptions/declscompiler.go @@ -13,7 +13,7 @@ var optionsForCompiler = []*CommandLineOption{ //******* commandOptionsWithoutBuild ******* { Name: "help", - shortName: "h", + ShortName: "h", Kind: CommandLineOptionTypeBoolean, showInSimplifiedHelpView: true, IsCommandLineOnly: true, @@ -23,7 +23,7 @@ var optionsForCompiler = []*CommandLineOption{ }, { Name: "help", - shortName: "?", + ShortName: "?", Kind: CommandLineOptionTypeBoolean, IsCommandLineOnly: true, Category: diagnostics.Command_line_Options, @@ -31,7 +31,7 @@ var optionsForCompiler = []*CommandLineOption{ }, { Name: "watch", - shortName: "w", + ShortName: "w", Kind: CommandLineOptionTypeBoolean, showInSimplifiedHelpView: true, IsCommandLineOnly: true, @@ -114,7 +114,7 @@ var optionsForCompiler = []*CommandLineOption{ }, { Name: "incremental", - shortName: "i", + ShortName: "i", Kind: CommandLineOptionTypeBoolean, Category: diagnostics.Projects, Description: diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects, @@ -123,7 +123,7 @@ var optionsForCompiler = []*CommandLineOption{ }, { Name: "declaration", - shortName: "d", + ShortName: "d", Kind: CommandLineOptionTypeBoolean, // Not setting affectsEmit because we calculate this flag might not affect full emit AffectsBuildInfo: true, @@ -226,7 +226,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ }, { Name: "version", - shortName: "v", + ShortName: "v", Kind: CommandLineOptionTypeBoolean, showInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, @@ -243,7 +243,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ }, { Name: "project", - shortName: "p", + ShortName: "p", Kind: CommandLineOptionTypeString, isFilePath: true, showInSimplifiedHelpView: true, @@ -272,7 +272,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ // targetOptionDeclaration, { Name: "target", - shortName: "t", + ShortName: "t", Kind: CommandLineOptionTypeEnum, // targetOptionMap AffectsSourceFile: true, AffectsModuleResolution: true, @@ -287,7 +287,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ // moduleOptionDeclaration, { Name: "module", - shortName: "m", + ShortName: "m", Kind: CommandLineOptionTypeEnum, // moduleOptionMap AffectsModuleResolution: true, AffectsEmit: true, diff --git a/internal/tsoptions/namemap.go b/internal/tsoptions/namemap.go index 66ae8d231d..e199577f87 100644 --- a/internal/tsoptions/namemap.go +++ b/internal/tsoptions/namemap.go @@ -17,8 +17,8 @@ func GetNameMapFromList(optDecls []*CommandLineOption) *NameMap { shortOptionNames := map[string]string{} for _, option := range optDecls { optionsNames.Set(strings.ToLower(option.Name), option) - if option.shortName != "" { - shortOptionNames[option.shortName] = option.Name + if option.ShortName != "" { + shortOptionNames[option.ShortName] = option.Name } } return &NameMap{ diff --git a/internal/tsoptions/parsinghelpers.go b/internal/tsoptions/parsinghelpers.go index ac1e61f239..d0c69275c5 100644 --- a/internal/tsoptions/parsinghelpers.go +++ b/internal/tsoptions/parsinghelpers.go @@ -371,6 +371,10 @@ func ParseCompilerOptions(key string, value any, allOptions *core.CompilerOption allOptions.VerbatimModuleSyntax = parseTristate(value) case "version": allOptions.Version = parseTristate(value) + case "help": + allOptions.Help = parseTristate(value) + case "all": + allOptions.All = parseTristate(value) case "maxNodeModuleJsDepth": allOptions.MaxNodeModuleJsDepth = parseNumber(value) case "skipLibCheck": diff --git a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js index 41df8cba3c..facb02b95d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js @@ -20,7 +20,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js index 41df8cba3c..facb02b95d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js @@ -20,7 +20,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js index 5643e1f3a2..5018c52006 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js @@ -12,7 +12,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js index 5643e1f3a2..5018c52006 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js @@ -12,7 +12,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js index 2225a78419..849295c89e 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js @@ -17,7 +17,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: @@ -45,7 +47,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js index 2225a78419..849295c89e 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js @@ -17,7 +17,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: @@ -45,7 +47,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js index baed91368e..6886156c9b 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js @@ -17,7 +17,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: @@ -45,7 +47,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js index baed91368e..6886156c9b 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js @@ -17,7 +17,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: @@ -45,7 +47,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js index 8408f57e39..02c247223d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js @@ -10,7 +10,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js index 8408f57e39..02c247223d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js @@ -10,7 +10,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js index e8591c1021..f8804b5a70 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js @@ -11,7 +11,9 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "allowJs": true, - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js index e8591c1021..f8804b5a70 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js @@ -11,7 +11,9 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "allowJs": true, - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js index ece28dd2f8..090a7f2d1f 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js @@ -12,7 +12,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js index 84739c3f58..0517366214 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js @@ -12,7 +12,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js index ecb617a24f..3eb33cef1c 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js @@ -11,7 +11,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js index feb107fbe8..8d7b30cd64 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js @@ -11,7 +11,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js index de9832d3fe..33cc58bdda 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js @@ -11,7 +11,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js index de9832d3fe..33cc58bdda 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js @@ -11,7 +11,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js index 4b0bf403e5..c8f4dc9dd9 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js @@ -15,7 +15,9 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "outDir": "/apath", - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js index 4b0bf403e5..c8f4dc9dd9 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js @@ -15,7 +15,9 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "outDir": "/apath", - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js index f9a5a14a70..bff7fa1259 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js @@ -13,7 +13,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js index 6a347322a0..b501b77e3c 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js @@ -13,7 +13,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js index 6696e9779c..b634688db6 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js @@ -18,7 +18,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js index 45aa4d54c0..d6dd36924b 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js @@ -18,7 +18,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js index 2d40d4b246..814c069cb0 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js @@ -15,7 +15,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js index 5b34594c8a..86928baf77 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js @@ -15,7 +15,9 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js index 936f910926..15556cfbad 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js @@ -18,7 +18,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js index 936f910926..15556cfbad 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js @@ -18,7 +18,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js index 7cd2733552..f9c4ba4376 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js @@ -21,7 +21,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js index 7cd2733552..f9c4ba4376 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js @@ -21,7 +21,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js index 55dd834f4a..1511d9904f 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js @@ -50,7 +50,9 @@ CompilerOptions:: "strict": true, "target": 4, "configFilePath": "/apath/tsconfig.json", - "pathsBasePath": "/apath" + "pathsBasePath": "/apath", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js index 55dd834f4a..1511d9904f 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js @@ -50,7 +50,9 @@ CompilerOptions:: "strict": true, "target": 4, "configFilePath": "/apath/tsconfig.json", - "pathsBasePath": "/apath" + "pathsBasePath": "/apath", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js index 49b0c53e1d..461a30077d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js @@ -38,7 +38,9 @@ CompilerOptions:: "outFile": "/outFile", "rootDir": "/rootDir", "tsBuildInfoFile": "/tsBuildInfoFile", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js index 49b0c53e1d..461a30077d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js @@ -38,7 +38,9 @@ CompilerOptions:: "outFile": "/outFile", "rootDir": "/rootDir", "tsBuildInfoFile": "/tsBuildInfoFile", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js index 93bb9a4fef..8cc359e161 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js @@ -43,7 +43,9 @@ CompilerOptions:: "noImplicitAny": true, "outDir": "/dist", "strict": true, - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js index 93bb9a4fef..8cc359e161 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js @@ -43,7 +43,9 @@ CompilerOptions:: "noImplicitAny": true, "outDir": "/dist", "strict": true, - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js index 0b74274927..61710f9048 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js @@ -13,7 +13,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js index 94bf89ec37..e0334f403b 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js @@ -13,7 +13,9 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js index 334ebabd3a..3fd80c427a 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js @@ -22,7 +22,9 @@ CompilerOptions:: "lib": [ "es5" ], - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js index af3103c206..78a10923bb 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js @@ -22,7 +22,9 @@ CompilerOptions:: "lib": [ "es5" ], - "configFilePath": "/apath/tsconfig.json" + "configFilePath": "/apath/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js index 212351d785..8b21ab3131 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js @@ -22,7 +22,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: @@ -54,7 +56,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js index 212351d785..8b21ab3131 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js @@ -22,7 +22,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: @@ -54,7 +56,9 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json" + "configFilePath": "/tsconfig.json", + "help": null, + "all": null } FileNames:: diff --git a/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js b/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js index a33a57739b..ac46eefd56 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js @@ -12,7 +12,9 @@ ParsedCommandLine::{ "compilerOptions": { "lib": [ "lib.es2015.d.ts" - ] + ], + "help": null, + "all": null }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js index ad84b305d7..61e9e3c25b 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js @@ -12,7 +12,9 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "project": "/home/src/workspaces/project/tsconfig.json" + "project": "/home/src/workspaces/project/tsconfig.json", + "help": null, + "all": null }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js index aa896a4fb8..8d0cb31d1a 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js @@ -12,7 +12,9 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "project": "/home/src/workspaces/project" + "project": "/home/src/workspaces/project", + "help": null, + "all": null }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p.js b/testdata/baselines/reference/tsc/commandLine/Parse--p.js index bdefc1c62f..b4cf63f14b 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p.js @@ -12,7 +12,9 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "project": "/home/src/workspaces/project" + "project": "/home/src/workspaces/project", + "help": null, + "all": null }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js index 9f02851035..502663bcc2 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js @@ -13,7 +13,9 @@ ParsedCommandLine::{ "moduleResolution": 99, "moduleDetectionKind": 1, "newLine": 1, - "target": 99 + "target": 99, + "help": null, + "all": null }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js b/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js index 92fa2ab7fd..9354f73eaa 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js @@ -8,7 +8,9 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "watch": true + "watch": true, + "help": null, + "all": null }, "watchOptions": { "watchInterval": 1000, diff --git a/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js b/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js index 26db908904..6aa5808f7c 100644 --- a/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js +++ b/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js @@ -11,7 +11,10 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": {}, + "compilerOptions": { + "help": null, + "all": null + }, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js index 88dbd52083..d626ce5c00 100644 --- a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js +++ b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js @@ -7,7 +7,10 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": {}, + "compilerOptions": { + "help": null, + "all": null + }, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/help-all.js b/testdata/baselines/reference/tsc/commandLine/help-all.js index 0e43c8b742..95cca0f837 100644 --- a/testdata/baselines/reference/tsc/commandLine/help-all.js +++ b/testdata/baselines/reference/tsc/commandLine/help-all.js @@ -3,11 +3,14 @@ currentDirectory::/home/src/workspaces/project useCaseSensitiveFileNames::true Input::--help --all -ExitStatus:: 1 +ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": {}, + "compilerOptions": { + "help": true, + "all": true + }, "watchOptions": { "watchInterval": null, "watchFile": 0, @@ -29,5 +32,5 @@ ParsedCommandLine::{ "compileOnSave": null } Output:: -Version 7.0.0-dev +No output diff --git a/testdata/baselines/reference/tsc/commandLine/help.js b/testdata/baselines/reference/tsc/commandLine/help.js index 39db1c7675..c71c0cd1ba 100644 --- a/testdata/baselines/reference/tsc/commandLine/help.js +++ b/testdata/baselines/reference/tsc/commandLine/help.js @@ -3,11 +3,14 @@ currentDirectory::/home/src/workspaces/project useCaseSensitiveFileNames::true Input::--help -ExitStatus:: 1 +ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": {}, + "compilerOptions": { + "help": true, + "all": null + }, "watchOptions": { "watchInterval": null, "watchFile": 0, @@ -28,5 +31,36 @@ ParsedCommandLine::{ "compileOnSave": null } Output:: -Version 7.0.0-dev +tsc: The TypeScript Compiler - Version 7.0.0-dev + +COMMON COMMANDS + + tsc + Compiles the current project (tsconfig.json in the working directory.) + + tsc app.ts util.ts + Ignoring tsconfig.json, compiles the specified files with default compiler options. + + tsc -b + Build a composite project in the working directory. + + tsc --init + Creates a tsconfig.json with the recommended settings in the working directory. + + tsc -p ./path/to/tsconfig.json + Compiles the TypeScript project located at the specified path. + + tsc --help --all + An expanded version of this information, showing all possible compiler options + + tsc --noEmit + tsc --target esnext + Compiles the current project, with additional settings. + +COMMAND LINE FLAGS + +COMMON COMPILER OPTIONS + +You can learn about all of the compiler options at https://aka.ms/tsc + diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js index 88dbd52083..d626ce5c00 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js @@ -7,7 +7,10 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": {}, + "compilerOptions": { + "help": null, + "all": null + }, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index 88dbd52083..d626ce5c00 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -7,7 +7,10 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": {}, + "compilerOptions": { + "help": null, + "all": null + }, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js b/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js index 594072b06c..a19332aac1 100644 --- a/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js +++ b/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js @@ -7,7 +7,10 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": {}, + "compilerOptions": { + "help": null, + "all": null + }, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js b/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js index df628c8102..9165b01e39 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js @@ -59,7 +59,9 @@ Input::--showConfig ExitStatus:: 5 CompilerOptions::{ - "showConfig": true + "showConfig": true, + "help": null, + "all": null } Output:: No output diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js index bad696b912..e25866ae19 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js @@ -60,7 +60,9 @@ ExitStatus:: 2 CompilerOptions::{ "outDir": "/home/src/projects/myproject/${configDir}/outDir", - "explainFiles": true + "explainFiles": true, + "help": null, + "all": null } Output:: src/secondary.ts(4,20): error TS2307: Cannot find module 'other/sometype2' or its corresponding type declarations. diff --git a/testdata/baselines/reference/tsc/extends/configDir-template.js b/testdata/baselines/reference/tsc/extends/configDir-template.js index 448d060ceb..b3be003b3b 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template.js @@ -59,7 +59,9 @@ Input::--explainFiles ExitStatus:: 2 CompilerOptions::{ - "explainFiles": true + "explainFiles": true, + "help": null, + "all": null } Output:: src/secondary.ts(4,20): error TS2307: Cannot find module 'other/sometype2' or its corresponding type declarations. diff --git a/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js b/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js index 730fa4c127..c45e6e0c1b 100644 --- a/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js +++ b/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js @@ -17,7 +17,9 @@ ExitStatus:: 0 CompilerOptions::{ "noCheck": true, - "outFile": "/home/src/workspaces/project/built" + "outFile": "/home/src/workspaces/project/built", + "help": null, + "all": null } Output:: //// [/home/src/workspaces/project/a.js] new file diff --git a/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js b/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js index c18d455b84..9996dffd6b 100644 --- a/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js +++ b/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js @@ -17,7 +17,9 @@ ExitStatus:: 0 CompilerOptions::{ "noCheck": true, - "outFile": "/home/src/workspaces/project/built" + "outFile": "/home/src/workspaces/project/built", + "help": null, + "all": null } Output:: //// [/home/src/workspaces/project/a.js] new file diff --git a/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js b/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js index c0142afba5..e2b864177c 100644 --- a/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js +++ b/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js @@ -17,7 +17,9 @@ ExitStatus:: 2 CompilerOptions::{ "noCheck": true, - "outFile": "/home/src/workspaces/project/built" + "outFile": "/home/src/workspaces/project/built", + "help": null, + "all": null } Output:: a.ts(1,24): error TS1002: Unterminated string literal. diff --git a/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js b/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js index 5dcdf1e571..d42c60803d 100644 --- a/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js +++ b/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js @@ -15,7 +15,9 @@ export class class1 {} ExitStatus:: 7 CompilerOptions::{ - "noEmit": true + "noEmit": true, + "help": null, + "all": null } Output:: No output diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js index c9698a0d35..1e740ac051 100644 --- a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js +++ b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js @@ -23,7 +23,9 @@ export const x = 10; ExitStatus:: 2 CompilerOptions::{ - "project": "/home/src/workspaces/solution/project" + "project": "/home/src/workspaces/solution/project", + "help": null, + "all": null } Output:: project/index.ts(1,19): error TS2307: Cannot find module '../utils' or its corresponding type declarations. diff --git a/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js index 847e9edd27..e40261d9cc 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js +++ b/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js @@ -15,7 +15,9 @@ const a = class { private p = 10; }; CompilerOptions::{ - "watch": true + "watch": true, + "help": null, + "all": null } diff --git a/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js b/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js index d2a0dc23cc..99be94b380 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js +++ b/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js @@ -16,7 +16,9 @@ const a = class { private p = 10; }; CompilerOptions::{ - "watch": true + "watch": true, + "help": null, + "all": null } diff --git a/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js b/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js index 40969f8761..6618bf1367 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js +++ b/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js @@ -15,7 +15,9 @@ const a: number = "hello" CompilerOptions::{ - "watch": true + "watch": true, + "help": null, + "all": null } diff --git a/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js b/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js index 6e2fae3c57..51399a342d 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js +++ b/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js @@ -15,7 +15,9 @@ const a = "hello CompilerOptions::{ - "watch": true + "watch": true, + "help": null, + "all": null } From fa11da26ec2fb817d24e3eb3a5bfdd3a874e618a Mon Sep 17 00:00:00 2001 From: haoqixu Date: Mon, 17 Mar 2025 01:02:25 +0800 Subject: [PATCH 2/7] refactor: use diagnostics.Message.Format() --- internal/execute/outputs.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/execute/outputs.go b/internal/execute/outputs.go index fd84d0cc1f..fd6d44afbc 100644 --- a/internal/execute/outputs.go +++ b/internal/execute/outputs.go @@ -144,13 +144,13 @@ func printEasyHelp(sys System, simpleOptions []*tsoptions.CommandLineOption) { // output.push(" " + colors.blue(example) + sys.newLine); output = append(output, " ", example, sys.NewLine()) } - output = append(output, " ", ast.NewCompilerDiagnostic(desc).Message(), sys.NewLine(), sys.NewLine()) + output = append(output, " ", desc.Format(), sys.NewLine(), sys.NewLine()) } - msg := ast.NewCompilerDiagnostic(diagnostics.X_tsc_Colon_The_TypeScript_Compiler).Message() + " - " + ast.NewCompilerDiagnostic(diagnostics.Version_0, core.Version).Message() + msg := diagnostics.X_tsc_Colon_The_TypeScript_Compiler.Format() + " - " + diagnostics.Version_0.Format(core.Version) output = append(output, getHeader(sys, msg)...) - output = append(output /*colors.bold(*/, ast.NewCompilerDiagnostic(diagnostics.COMMON_COMMANDS).Message() /*)*/, sys.NewLine(), sys.NewLine()) + output = append(output /*colors.bold(*/, diagnostics.COMMON_COMMANDS.Format() /*)*/, sys.NewLine(), sys.NewLine()) example([]string{"tsc"}, diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory) example([]string{"tsc app.ts util.ts"}, diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options) @@ -209,7 +209,7 @@ func generateSectionOptionsOutput( if option.Category == nil { continue } - curCategory := ast.NewCompilerDiagnostic(option.Category).Message() + curCategory := option.Category.Format() categoryMap[curCategory] = append(categoryMap[curCategory], option) } for key, value := range categoryMap { From 13fc5fcd0a1a0829fd76500b9bf490b51a744cef Mon Sep 17 00:00:00 2001 From: haoqixu Date: Mon, 17 Mar 2025 01:08:57 +0800 Subject: [PATCH 3/7] fix code format --- internal/execute/outputs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/execute/outputs.go b/internal/execute/outputs.go index fd6d44afbc..2bf97e5c66 100644 --- a/internal/execute/outputs.go +++ b/internal/execute/outputs.go @@ -250,6 +250,7 @@ func generateGroupOptionOutput(sys System, optionsList []*tsoptions.CommandLineO return lines } + func generateOptionOutput( sys System, option *tsoptions.CommandLineOption, From a0cecfdd37860f2e7362757c510410b6db6a171a Mon Sep 17 00:00:00 2001 From: haoqixu Date: Mon, 17 Mar 2025 12:16:13 +0800 Subject: [PATCH 4/7] export ShowInSimplifiedHelpView --- internal/execute/outputs.go | 2 +- internal/tsoptions/commandlineoption.go | 6 +-- internal/tsoptions/declsbuild.go | 2 +- internal/tsoptions/declscompiler.go | 56 ++++++++++++------------- 4 files changed, 31 insertions(+), 35 deletions(-) diff --git a/internal/execute/outputs.go b/internal/execute/outputs.go index 2bf97e5c66..c51e70f6f9 100644 --- a/internal/execute/outputs.go +++ b/internal/execute/outputs.go @@ -108,7 +108,7 @@ func getOptionsForHelp(commandLine *tsoptions.ParsedCommandLine) []*tsoptions.Co return opts } else { return core.Filter(opts, func(opt *tsoptions.CommandLineOption) bool { - return opt.ShowInSimplifiedHelpView() + return opt.ShowInSimplifiedHelpView }) } } diff --git a/internal/tsoptions/commandlineoption.go b/internal/tsoptions/commandlineoption.go index fec6c0b9ea..ca944646be 100644 --- a/internal/tsoptions/commandlineoption.go +++ b/internal/tsoptions/commandlineoption.go @@ -30,7 +30,7 @@ type CommandLineOption struct { // used in output Description *diagnostics.Message DefaultValueDescription any - showInSimplifiedHelpView bool + ShowInSimplifiedHelpView bool // used in output in serializing and generate tsconfig Category *diagnostics.Message @@ -65,10 +65,6 @@ type CommandLineOption struct { ElementOptions map[string]*CommandLineOption } -func (o *CommandLineOption) ShowInSimplifiedHelpView() bool { - return o.showInSimplifiedHelpView -} - func (o *CommandLineOption) DeprecatedKeys() *core.Set[string] { if o.Kind != CommandLineOptionTypeEnum { return nil diff --git a/internal/tsoptions/declsbuild.go b/internal/tsoptions/declsbuild.go index b0976c0d3a..3b995d0137 100644 --- a/internal/tsoptions/declsbuild.go +++ b/internal/tsoptions/declsbuild.go @@ -12,7 +12,7 @@ var TscBuildOption = CommandLineOption{ Name: "build", Kind: "boolean", ShortName: "b", - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, DefaultValueDescription: false, diff --git a/internal/tsoptions/declscompiler.go b/internal/tsoptions/declscompiler.go index a8b66ceef5..8881f0f64c 100644 --- a/internal/tsoptions/declscompiler.go +++ b/internal/tsoptions/declscompiler.go @@ -15,7 +15,7 @@ var optionsForCompiler = []*CommandLineOption{ Name: "help", ShortName: "h", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, IsCommandLineOnly: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Print_this_message, @@ -33,7 +33,7 @@ var optionsForCompiler = []*CommandLineOption{ Name: "watch", ShortName: "w", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, IsCommandLineOnly: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Watch_input_files, @@ -42,7 +42,7 @@ var optionsForCompiler = []*CommandLineOption{ { Name: "preserveWatchOutput", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: false, + ShowInSimplifiedHelpView: false, Category: diagnostics.Output_Formatting, Description: diagnostics.Disable_wiping_the_console_in_watch_mode, DefaultValueDescription: false, @@ -71,7 +71,7 @@ var optionsForCompiler = []*CommandLineOption{ { Name: "pretty", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Output_Formatting, Description: diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read, DefaultValueDescription: true, @@ -127,7 +127,7 @@ var optionsForCompiler = []*CommandLineOption{ Kind: CommandLineOptionTypeBoolean, // Not setting affectsEmit because we calculate this flag might not affect full emit AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, transpileOptionValue: core.TSUnknown, Description: diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project, @@ -138,7 +138,7 @@ var optionsForCompiler = []*CommandLineOption{ Kind: CommandLineOptionTypeBoolean, // Not setting affectsEmit because we calculate this flag might not affect full emit AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, DefaultValueDescription: false, Description: diagnostics.Create_sourcemaps_for_d_ts_files, @@ -148,7 +148,7 @@ var optionsForCompiler = []*CommandLineOption{ Kind: CommandLineOptionTypeBoolean, // Not setting affectsEmit because we calculate this flag might not affect full emit AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, Description: diagnostics.Only_output_d_ts_files_and_not_JavaScript_files, transpileOptionValue: core.TSUnknown, @@ -159,7 +159,7 @@ var optionsForCompiler = []*CommandLineOption{ Kind: CommandLineOptionTypeBoolean, // Not setting affectsEmit because we calculate this flag might not affect full emit AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, DefaultValueDescription: false, Description: diagnostics.Create_source_map_files_for_emitted_JavaScript_files, @@ -176,7 +176,7 @@ var optionsForCompiler = []*CommandLineOption{ { Name: "noCheck", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: false, + ShowInSimplifiedHelpView: false, Category: diagnostics.Compiler_Diagnostics, Description: diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported, transpileOptionValue: core.TSTrue, @@ -186,7 +186,7 @@ var optionsForCompiler = []*CommandLineOption{ { Name: "noEmit", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, Description: diagnostics.Disable_emitting_files_from_a_compilation, transpileOptionValue: core.TSUnknown, @@ -219,7 +219,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ { Name: "all", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Show_all_compiler_options, DefaultValueDescription: false, @@ -228,7 +228,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ Name: "version", ShortName: "v", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Print_the_compiler_s_version, DefaultValueDescription: false, @@ -236,7 +236,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ { Name: "init", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file, DefaultValueDescription: false, @@ -246,14 +246,14 @@ var commonOptionsWithBuild = []*CommandLineOption{ ShortName: "p", Kind: CommandLineOptionTypeString, isFilePath: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, Description: diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json, }, { Name: "showConfig", Kind: CommandLineOptionTypeBoolean, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Command_line_Options, IsCommandLineOnly: true, Description: diagnostics.Print_the_final_configuration_instead_of_building, @@ -278,7 +278,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ AffectsModuleResolution: true, AffectsEmit: true, AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Language_and_Environment, Description: diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations, DefaultValueDescription: core.ScriptTargetES5, @@ -292,7 +292,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ AffectsModuleResolution: true, AffectsEmit: true, AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Modules, Description: diagnostics.Specify_what_module_code_is_generated, DefaultValueDescription: core.TSUnknown, @@ -306,7 +306,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ // defaultValueDescription: core.TSUnknown, // }, AffectsProgramStructure: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Language_and_Environment, Description: diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment, transpileOptionValue: core.TSUnknown, @@ -316,7 +316,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ Kind: CommandLineOptionTypeBoolean, allowJsFlag: true, AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.JavaScript_Support, Description: diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files, DefaultValueDescription: false, @@ -327,7 +327,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ AffectsModuleResolution: true, AffectsSemanticDiagnostics: true, AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.JavaScript_Support, Description: diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, DefaultValueDescription: false, @@ -343,7 +343,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ // This is effectively a semantic error, so mark this option as affecting semantic diagnostics // so we know to refresh errors when this option is changed. AffectsSemanticDiagnostics: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Language_and_Environment, Description: diagnostics.Specify_what_JSX_code_is_generated, DefaultValueDescription: core.TSUnknown, @@ -355,7 +355,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ AffectsBuildInfo: true, AffectsDeclarationPath: true, isFilePath: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, Description: diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output, transpileOptionValue: core.TSUnknown, @@ -367,7 +367,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ AffectsBuildInfo: true, AffectsDeclarationPath: true, isFilePath: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, Description: diagnostics.Specify_an_output_folder_for_all_emitted_files, }, @@ -409,7 +409,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ Kind: CommandLineOptionTypeBoolean, AffectsEmit: true, AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Emit, DefaultValueDescription: false, Description: diagnostics.Disable_emitting_comments, @@ -470,7 +470,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ // But we need to store `strict` in builf info, even though it won't be examined directly, so that the // flags it controls (e.g. `strictNullChecks`) will be retrieved correctly AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Type_Checking, Description: diagnostics.Enable_all_strict_type_checking_options, DefaultValueDescription: false, @@ -637,7 +637,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ Kind: CommandLineOptionTypeBoolean, AffectsSemanticDiagnostics: true, AffectsBuildInfo: true, - showInSimplifiedHelpView: false, + ShowInSimplifiedHelpView: false, Category: diagnostics.Type_Checking, Description: diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type, DefaultValueDescription: false, @@ -706,7 +706,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ Name: "types", Kind: CommandLineOptionTypeList, AffectsProgramStructure: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Modules, Description: diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file, transpileOptionValue: core.TSUnknown, @@ -726,7 +726,7 @@ var commonOptionsWithBuild = []*CommandLineOption{ AffectsSemanticDiagnostics: true, AffectsEmit: true, AffectsBuildInfo: true, - showInSimplifiedHelpView: true, + ShowInSimplifiedHelpView: true, Category: diagnostics.Interop_Constraints, Description: diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility, DefaultValueDescription: false, From f073b7e8102d01718771a2990535334a0b69f2f2 Mon Sep 17 00:00:00 2001 From: haoqixu Date: Mon, 17 Mar 2025 12:20:56 +0800 Subject: [PATCH 5/7] uncomment printHelp in one more branch --- internal/execute/tsc.go | 2 +- .../Parse-watch-interval-option.js | 33 +++++++++++++++++++ ...does-not-add-color-when-NO_COLOR-is-set.js | 33 +++++++++++++++++++ ...when-host-cannot-provide-terminal-width.js | 33 +++++++++++++++++++ ...tatus.DiagnosticsPresent_OutputsSkipped.js | 33 +++++++++++++++++++ 5 files changed, 133 insertions(+), 1 deletion(-) diff --git a/internal/execute/tsc.go b/internal/execute/tsc.go index 4f13982124..78a18ef788 100644 --- a/internal/execute/tsc.go +++ b/internal/execute/tsc.go @@ -82,7 +82,7 @@ func executeCommandLineWorker(sys System, cb cbType, commandLine *tsoptions.Pars reportDiagnostic(ast.NewCompilerDiagnostic(diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, tspath.NormalizePath(sys.GetCurrentDirectory()))) } else { printVersion(sys) - // print help + printHelp(sys, commandLine) } return ExitStatusDiagnosticsPresent_OutputsSkipped, nil } diff --git a/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js b/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js index 9354f73eaa..3c78d9ed75 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js @@ -35,3 +35,36 @@ ParsedCommandLine::{ Output:: Version 7.0.0-dev +tsc: The TypeScript Compiler - Version 7.0.0-dev + +COMMON COMMANDS + + tsc + Compiles the current project (tsconfig.json in the working directory.) + + tsc app.ts util.ts + Ignoring tsconfig.json, compiles the specified files with default compiler options. + + tsc -b + Build a composite project in the working directory. + + tsc --init + Creates a tsconfig.json with the recommended settings in the working directory. + + tsc -p ./path/to/tsconfig.json + Compiles the TypeScript project located at the specified path. + + tsc --help --all + An expanded version of this information, showing all possible compiler options + + tsc --noEmit + tsc --target esnext + Compiles the current project, with additional settings. + +COMMAND LINE FLAGS + +COMMON COMPILER OPTIONS + +You can learn about all of the compiler options at https://aka.ms/tsc + + diff --git a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js index d626ce5c00..dbb632bc0c 100644 --- a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js +++ b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js @@ -31,3 +31,36 @@ ParsedCommandLine::{ Output:: Version 7.0.0-dev +tsc: The TypeScript Compiler - Version 7.0.0-dev + +COMMON COMMANDS + + tsc + Compiles the current project (tsconfig.json in the working directory.) + + tsc app.ts util.ts + Ignoring tsconfig.json, compiles the specified files with default compiler options. + + tsc -b + Build a composite project in the working directory. + + tsc --init + Creates a tsconfig.json with the recommended settings in the working directory. + + tsc -p ./path/to/tsconfig.json + Compiles the TypeScript project located at the specified path. + + tsc --help --all + An expanded version of this information, showing all possible compiler options + + tsc --noEmit + tsc --target esnext + Compiles the current project, with additional settings. + +COMMAND LINE FLAGS + +COMMON COMPILER OPTIONS + +You can learn about all of the compiler options at https://aka.ms/tsc + + diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js index d626ce5c00..dbb632bc0c 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js @@ -31,3 +31,36 @@ ParsedCommandLine::{ Output:: Version 7.0.0-dev +tsc: The TypeScript Compiler - Version 7.0.0-dev + +COMMON COMMANDS + + tsc + Compiles the current project (tsconfig.json in the working directory.) + + tsc app.ts util.ts + Ignoring tsconfig.json, compiles the specified files with default compiler options. + + tsc -b + Build a composite project in the working directory. + + tsc --init + Creates a tsconfig.json with the recommended settings in the working directory. + + tsc -p ./path/to/tsconfig.json + Compiles the TypeScript project located at the specified path. + + tsc --help --all + An expanded version of this information, showing all possible compiler options + + tsc --noEmit + tsc --target esnext + Compiles the current project, with additional settings. + +COMMAND LINE FLAGS + +COMMON COMPILER OPTIONS + +You can learn about all of the compiler options at https://aka.ms/tsc + + diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index d626ce5c00..dbb632bc0c 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -31,3 +31,36 @@ ParsedCommandLine::{ Output:: Version 7.0.0-dev +tsc: The TypeScript Compiler - Version 7.0.0-dev + +COMMON COMMANDS + + tsc + Compiles the current project (tsconfig.json in the working directory.) + + tsc app.ts util.ts + Ignoring tsconfig.json, compiles the specified files with default compiler options. + + tsc -b + Build a composite project in the working directory. + + tsc --init + Creates a tsconfig.json with the recommended settings in the working directory. + + tsc -p ./path/to/tsconfig.json + Compiles the TypeScript project located at the specified path. + + tsc --help --all + An expanded version of this information, showing all possible compiler options + + tsc --noEmit + tsc --target esnext + Compiles the current project, with additional settings. + +COMMAND LINE FLAGS + +COMMON COMPILER OPTIONS + +You can learn about all of the compiler options at https://aka.ms/tsc + + From 421c29b4fa2950f3d8f759d18f64bbb001dfd92f Mon Sep 17 00:00:00 2001 From: xu0o0 Date: Tue, 18 Mar 2025 12:55:48 +0800 Subject: [PATCH 6/7] Update internal/core/compileroptions.go Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com> --- internal/core/compileroptions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/core/compileroptions.go b/internal/core/compileroptions.go index 94fdeed106..b6d91351bc 100644 --- a/internal/core/compileroptions.go +++ b/internal/core/compileroptions.go @@ -134,8 +134,8 @@ type CompilerOptions struct { Watch Tristate `json:"watch,omitzero"` ShowConfig Tristate `json:"showConfig,omitzero"` TscBuild Tristate `json:"tscBuild,omitzero"` - Help Tristate `json:"help"` - All Tristate `json:"all"` + Help Tristate `json:"help,omitzero"` + All Tristate `json:"all,omitzero"` } func (options *CompilerOptions) GetEmitScriptTarget() ScriptTarget { From 4478fa2f19f803b7ecd95ccd8772702a0944b329 Mon Sep 17 00:00:00 2001 From: haoqixu Date: Tue, 18 Mar 2025 13:03:06 +0800 Subject: [PATCH 7/7] baseline-accept --- ...and folders when explicitly requested with json api.js | 4 +--- ...s when explicitly requested with jsonSourceFile api.js | 4 +--- ...n one or more references are provided with json api.js | 4 +--- ...ore references are provided with jsonSourceFile api.js | 4 +--- ...lude declarationDir unless overridden with json api.js | 8 ++------ ...rationDir unless overridden with jsonSourceFile api.js | 8 ++------ .../exclude outDir unless overridden with json api.js | 8 ++------ ...de outDir unless overridden with jsonSourceFile api.js | 8 ++------ ...rrors for directory with no .ts files with json api.js | 4 +--- ...directory with no .ts files with jsonSourceFile api.js | 4 +--- .../generates errors for empty directory with json api.js | 4 +--- ... errors for empty directory with jsonSourceFile api.js | 4 +--- ... list when no references are provided with json api.js | 4 +--- ... no references are provided with jsonSourceFile api.js | 4 +--- ...generates errors for empty files list with json api.js | 4 +--- ...errors for empty files list with jsonSourceFile api.js | 4 +--- .../generates errors for empty include with json api.js | 4 +--- ...es errors for empty include with jsonSourceFile api.js | 4 +--- ...rates errors for includes with outDir with json api.js | 4 +--- ...rs for includes with outDir with jsonSourceFile api.js | 4 +--- ...hen commandline option is in tsconfig with json api.js | 4 +--- ...dline option is in tsconfig with jsonSourceFile api.js | 4 +--- ...rates errors when files is not string with json api.js | 4 +--- ...rs when files is not string with jsonSourceFile api.js | 4 +--- ...tes errors when include is not string with json api.js | 4 +--- ... when include is not string with jsonSourceFile api.js | 4 +--- .../ignore dotted files and folders with json api.js | 4 +--- ...re dotted files and folders with jsonSourceFile api.js | 4 +--- ...icitly exclude common package folders with json api.js | 4 +--- ...lude common package folders with jsonSourceFile api.js | 4 +--- ...rOptions, files, include, and exclude with json api.js | 4 +--- ...files, include, and exclude with jsonSourceFile api.js | 4 +--- ...s tsconfig with extends and configDir with json api.js | 4 +--- ... with extends and configDir with jsonSourceFile api.js | 4 +--- ...nds, files, include and other options with json api.js | 4 +--- ..., include and other options with jsonSourceFile api.js | 4 +--- .../reports error for an unknown option with json api.js | 4 +--- ...error for an unknown option with jsonSourceFile api.js | 4 +--- ...rns error when tsconfig have excludes with json api.js | 4 +--- ...when tsconfig have excludes with jsonSourceFile api.js | 4 +--- .../with outDir from base tsconfig with json api.js | 8 ++------ ...h outDir from base tsconfig with jsonSourceFile api.js | 8 ++------ .../tsc/commandLine/Parse---lib-option-with-file-name.js | 4 +--- .../commandLine/Parse--p-with-path-to-tsconfig-file.js | 4 +--- .../commandLine/Parse--p-with-path-to-tsconfig-folder.js | 4 +--- testdata/baselines/reference/tsc/commandLine/Parse--p.js | 4 +--- .../reference/tsc/commandLine/Parse-enum-type-options.js | 4 +--- .../tsc/commandLine/Parse-watch-interval-option.js | 4 +--- .../reference/tsc/commandLine/Project-is-empty-string.js | 5 +---- .../does-not-add-color-when-NO_COLOR-is-set.js | 5 +---- testdata/baselines/reference/tsc/commandLine/help.js | 3 +-- ...putsSkipped-when-host-cannot-provide-terminal-width.js | 5 +---- ...p-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js | 5 +---- .../tsc/commandLine/when-build-not-first-argument.js | 5 +---- .../tsc/extends/configDir-template-showConfig.js | 4 +--- .../tsc/extends/configDir-template-with-commandline.js | 4 +--- .../baselines/reference/tsc/extends/configDir-template.js | 4 +--- .../baselines/reference/tsc/noCheck/outFile/dts-errors.js | 4 +--- .../reference/tsc/noCheck/outFile/semantic-errors.js | 4 +--- .../reference/tsc/noCheck/outFile/syntax-errors.js | 4 +--- .../reference/tsc/noEmit/when-project-has-strict-true.js | 4 +--- ...en-project-references-composite-project-with-noEmit.js | 4 +--- .../tscWatch/noEmit/dts-errors-without-dts-enabled.js | 4 +--- .../baselines/reference/tscWatch/noEmit/dts-errors.js | 4 +--- .../reference/tscWatch/noEmit/semantic-errors.js | 4 +--- .../baselines/reference/tscWatch/noEmit/syntax-errors.js | 4 +--- 66 files changed, 72 insertions(+), 220 deletions(-) diff --git a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js index facb02b95d..41df8cba3c 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with json api.js @@ -20,9 +20,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js index facb02b95d..41df8cba3c 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/allow dotted files and folders when explicitly requested with jsonSourceFile api.js @@ -20,9 +20,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js index 5018c52006..5643e1f3a2 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with json api.js @@ -12,9 +12,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js index 5018c52006..5643e1f3a2 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/does not generate errors for empty files list when one or more references are provided with jsonSourceFile api.js @@ -12,9 +12,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js index 849295c89e..2225a78419 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with json api.js @@ -17,9 +17,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: @@ -47,9 +45,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js index 849295c89e..2225a78419 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude declarationDir unless overridden with jsonSourceFile api.js @@ -17,9 +17,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: @@ -47,9 +45,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "declarationDir": "/declarations", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js index 6886156c9b..baed91368e 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with json api.js @@ -17,9 +17,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: @@ -47,9 +45,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js index 6886156c9b..baed91368e 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/exclude outDir unless overridden with jsonSourceFile api.js @@ -17,9 +17,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: @@ -47,9 +45,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js index 02c247223d..8408f57e39 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with json api.js @@ -10,9 +10,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js index 02c247223d..8408f57e39 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for directory with no .ts files with jsonSourceFile api.js @@ -10,9 +10,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js index f8804b5a70..e8591c1021 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with json api.js @@ -11,9 +11,7 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "allowJs": true, - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js index f8804b5a70..e8591c1021 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty directory with jsonSourceFile api.js @@ -11,9 +11,7 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "allowJs": true, - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js index 090a7f2d1f..ece28dd2f8 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with json api.js @@ -12,9 +12,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js index 0517366214..84739c3f58 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list when no references are provided with jsonSourceFile api.js @@ -12,9 +12,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js index 3eb33cef1c..ecb617a24f 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with json api.js @@ -11,9 +11,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js index 8d7b30cd64..feb107fbe8 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty files list with jsonSourceFile api.js @@ -11,9 +11,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js index 33cc58bdda..de9832d3fe 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with json api.js @@ -11,9 +11,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js index 33cc58bdda..de9832d3fe 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for empty include with jsonSourceFile api.js @@ -11,9 +11,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js index c8f4dc9dd9..4b0bf403e5 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with json api.js @@ -15,9 +15,7 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "outDir": "/apath", - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js index c8f4dc9dd9..4b0bf403e5 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors for includes with outDir with jsonSourceFile api.js @@ -15,9 +15,7 @@ configFileName:: /apath/tsconfig.json CompilerOptions:: { "outDir": "/apath", - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js index bff7fa1259..f9a5a14a70 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with json api.js @@ -13,9 +13,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js index b501b77e3c..6a347322a0 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when commandline option is in tsconfig with jsonSourceFile api.js @@ -13,9 +13,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js index b634688db6..6696e9779c 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with json api.js @@ -18,9 +18,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js index d6dd36924b..45aa4d54c0 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when files is not string with jsonSourceFile api.js @@ -18,9 +18,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js index 814c069cb0..2d40d4b246 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with json api.js @@ -15,9 +15,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js index 86928baf77..5b34594c8a 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/generates errors when include is not string with jsonSourceFile api.js @@ -15,9 +15,7 @@ Fs:: configFileName:: /apath/tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js index 15556cfbad..936f910926 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with json api.js @@ -18,9 +18,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js index 15556cfbad..936f910926 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/ignore dotted files and folders with jsonSourceFile api.js @@ -18,9 +18,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js index f9c4ba4376..7cd2733552 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with json api.js @@ -21,9 +21,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js index f9c4ba4376..7cd2733552 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/implicitly exclude common package folders with jsonSourceFile api.js @@ -21,9 +21,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js index 1511d9904f..55dd834f4a 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with json api.js @@ -50,9 +50,7 @@ CompilerOptions:: "strict": true, "target": 4, "configFilePath": "/apath/tsconfig.json", - "pathsBasePath": "/apath", - "help": null, - "all": null + "pathsBasePath": "/apath" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js index 1511d9904f..55dd834f4a 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with compilerOptions, files, include, and exclude with jsonSourceFile api.js @@ -50,9 +50,7 @@ CompilerOptions:: "strict": true, "target": 4, "configFilePath": "/apath/tsconfig.json", - "pathsBasePath": "/apath", - "help": null, - "all": null + "pathsBasePath": "/apath" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js index 461a30077d..49b0c53e1d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with json api.js @@ -38,9 +38,7 @@ CompilerOptions:: "outFile": "/outFile", "rootDir": "/rootDir", "tsBuildInfoFile": "/tsBuildInfoFile", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js index 461a30077d..49b0c53e1d 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends and configDir with jsonSourceFile api.js @@ -38,9 +38,7 @@ CompilerOptions:: "outFile": "/outFile", "rootDir": "/rootDir", "tsBuildInfoFile": "/tsBuildInfoFile", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js index 8cc359e161..93bb9a4fef 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with json api.js @@ -43,9 +43,7 @@ CompilerOptions:: "noImplicitAny": true, "outDir": "/dist", "strict": true, - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js index 8cc359e161..93bb9a4fef 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/parses tsconfig with extends, files, include and other options with jsonSourceFile api.js @@ -43,9 +43,7 @@ CompilerOptions:: "noImplicitAny": true, "outDir": "/dist", "strict": true, - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js index 61710f9048..0b74274927 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with json api.js @@ -13,9 +13,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js index e0334f403b..94bf89ec37 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/reports error for an unknown option with jsonSourceFile api.js @@ -13,9 +13,7 @@ Fs:: configFileName:: tsconfig.json CompilerOptions:: { - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js index 3fd80c427a..334ebabd3a 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with json api.js @@ -22,9 +22,7 @@ CompilerOptions:: "lib": [ "es5" ], - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js index 78a10923bb..af3103c206 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/returns error when tsconfig have excludes with jsonSourceFile api.js @@ -22,9 +22,7 @@ CompilerOptions:: "lib": [ "es5" ], - "configFilePath": "/apath/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/apath/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js index 8b21ab3131..212351d785 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with json api.js @@ -22,9 +22,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: @@ -56,9 +54,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js index 8b21ab3131..212351d785 100644 --- a/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js +++ b/testdata/baselines/reference/config/tsconfigParsing/with outDir from base tsconfig with jsonSourceFile api.js @@ -22,9 +22,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: @@ -56,9 +54,7 @@ configFileName:: tsconfig.json CompilerOptions:: { "outDir": "/bin", - "configFilePath": "/tsconfig.json", - "help": null, - "all": null + "configFilePath": "/tsconfig.json" } FileNames:: diff --git a/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js b/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js index ac46eefd56..a33a57739b 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse---lib-option-with-file-name.js @@ -12,9 +12,7 @@ ParsedCommandLine::{ "compilerOptions": { "lib": [ "lib.es2015.d.ts" - ], - "help": null, - "all": null + ] }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js index 61e9e3c25b..ad84b305d7 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-file.js @@ -12,9 +12,7 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "project": "/home/src/workspaces/project/tsconfig.json", - "help": null, - "all": null + "project": "/home/src/workspaces/project/tsconfig.json" }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js index 8d0cb31d1a..aa896a4fb8 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p-with-path-to-tsconfig-folder.js @@ -12,9 +12,7 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "project": "/home/src/workspaces/project", - "help": null, - "all": null + "project": "/home/src/workspaces/project" }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse--p.js b/testdata/baselines/reference/tsc/commandLine/Parse--p.js index b4cf63f14b..bdefc1c62f 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse--p.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse--p.js @@ -12,9 +12,7 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "project": "/home/src/workspaces/project", - "help": null, - "all": null + "project": "/home/src/workspaces/project" }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js index 502663bcc2..9f02851035 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse-enum-type-options.js @@ -13,9 +13,7 @@ ParsedCommandLine::{ "moduleResolution": 99, "moduleDetectionKind": 1, "newLine": 1, - "target": 99, - "help": null, - "all": null + "target": 99 }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js b/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js index 3c78d9ed75..3af4af905c 100644 --- a/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js +++ b/testdata/baselines/reference/tsc/commandLine/Parse-watch-interval-option.js @@ -8,9 +8,7 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "watch": true, - "help": null, - "all": null + "watch": true }, "watchOptions": { "watchInterval": 1000, diff --git a/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js b/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js index 6aa5808f7c..26db908904 100644 --- a/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js +++ b/testdata/baselines/reference/tsc/commandLine/Project-is-empty-string.js @@ -11,10 +11,7 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": { - "help": null, - "all": null - }, + "compilerOptions": {}, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js index dbb632bc0c..b6fdb9e2de 100644 --- a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js +++ b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js @@ -7,10 +7,7 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": { - "help": null, - "all": null - }, + "compilerOptions": {}, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/help.js b/testdata/baselines/reference/tsc/commandLine/help.js index c71c0cd1ba..13d0d0c142 100644 --- a/testdata/baselines/reference/tsc/commandLine/help.js +++ b/testdata/baselines/reference/tsc/commandLine/help.js @@ -8,8 +8,7 @@ ExitStatus:: 0 ParsedCommandLine::{ "parsedConfig": { "compilerOptions": { - "help": true, - "all": null + "help": true }, "watchOptions": { "watchInterval": null, diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js index dbb632bc0c..b6fdb9e2de 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js @@ -7,10 +7,7 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": { - "help": null, - "all": null - }, + "compilerOptions": {}, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index dbb632bc0c..b6fdb9e2de 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -7,10 +7,7 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": { - "help": null, - "all": null - }, + "compilerOptions": {}, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js b/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js index a19332aac1..594072b06c 100644 --- a/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js +++ b/testdata/baselines/reference/tsc/commandLine/when-build-not-first-argument.js @@ -7,10 +7,7 @@ ExitStatus:: 1 ParsedCommandLine::{ "parsedConfig": { - "compilerOptions": { - "help": null, - "all": null - }, + "compilerOptions": {}, "watchOptions": { "watchInterval": null, "watchFile": 0, diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js b/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js index 9165b01e39..df628c8102 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template-showConfig.js @@ -59,9 +59,7 @@ Input::--showConfig ExitStatus:: 5 CompilerOptions::{ - "showConfig": true, - "help": null, - "all": null + "showConfig": true } Output:: No output diff --git a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js index e25866ae19..bad696b912 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template-with-commandline.js @@ -60,9 +60,7 @@ ExitStatus:: 2 CompilerOptions::{ "outDir": "/home/src/projects/myproject/${configDir}/outDir", - "explainFiles": true, - "help": null, - "all": null + "explainFiles": true } Output:: src/secondary.ts(4,20): error TS2307: Cannot find module 'other/sometype2' or its corresponding type declarations. diff --git a/testdata/baselines/reference/tsc/extends/configDir-template.js b/testdata/baselines/reference/tsc/extends/configDir-template.js index b3be003b3b..448d060ceb 100644 --- a/testdata/baselines/reference/tsc/extends/configDir-template.js +++ b/testdata/baselines/reference/tsc/extends/configDir-template.js @@ -59,9 +59,7 @@ Input::--explainFiles ExitStatus:: 2 CompilerOptions::{ - "explainFiles": true, - "help": null, - "all": null + "explainFiles": true } Output:: src/secondary.ts(4,20): error TS2307: Cannot find module 'other/sometype2' or its corresponding type declarations. diff --git a/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js b/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js index c45e6e0c1b..730fa4c127 100644 --- a/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js +++ b/testdata/baselines/reference/tsc/noCheck/outFile/dts-errors.js @@ -17,9 +17,7 @@ ExitStatus:: 0 CompilerOptions::{ "noCheck": true, - "outFile": "/home/src/workspaces/project/built", - "help": null, - "all": null + "outFile": "/home/src/workspaces/project/built" } Output:: //// [/home/src/workspaces/project/a.js] new file diff --git a/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js b/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js index 9996dffd6b..c18d455b84 100644 --- a/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js +++ b/testdata/baselines/reference/tsc/noCheck/outFile/semantic-errors.js @@ -17,9 +17,7 @@ ExitStatus:: 0 CompilerOptions::{ "noCheck": true, - "outFile": "/home/src/workspaces/project/built", - "help": null, - "all": null + "outFile": "/home/src/workspaces/project/built" } Output:: //// [/home/src/workspaces/project/a.js] new file diff --git a/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js b/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js index e2b864177c..c0142afba5 100644 --- a/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js +++ b/testdata/baselines/reference/tsc/noCheck/outFile/syntax-errors.js @@ -17,9 +17,7 @@ ExitStatus:: 2 CompilerOptions::{ "noCheck": true, - "outFile": "/home/src/workspaces/project/built", - "help": null, - "all": null + "outFile": "/home/src/workspaces/project/built" } Output:: a.ts(1,24): error TS1002: Unterminated string literal. diff --git a/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js b/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js index d42c60803d..5dcdf1e571 100644 --- a/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js +++ b/testdata/baselines/reference/tsc/noEmit/when-project-has-strict-true.js @@ -15,9 +15,7 @@ export class class1 {} ExitStatus:: 7 CompilerOptions::{ - "noEmit": true, - "help": null, - "all": null + "noEmit": true } Output:: No output diff --git a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js index 1e740ac051..c9698a0d35 100644 --- a/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js +++ b/testdata/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js @@ -23,9 +23,7 @@ export const x = 10; ExitStatus:: 2 CompilerOptions::{ - "project": "/home/src/workspaces/solution/project", - "help": null, - "all": null + "project": "/home/src/workspaces/solution/project" } Output:: project/index.ts(1,19): error TS2307: Cannot find module '../utils' or its corresponding type declarations. diff --git a/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js b/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js index e40261d9cc..847e9edd27 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js +++ b/testdata/baselines/reference/tscWatch/noEmit/dts-errors-without-dts-enabled.js @@ -15,9 +15,7 @@ const a = class { private p = 10; }; CompilerOptions::{ - "watch": true, - "help": null, - "all": null + "watch": true } diff --git a/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js b/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js index 99be94b380..d2a0dc23cc 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js +++ b/testdata/baselines/reference/tscWatch/noEmit/dts-errors.js @@ -16,9 +16,7 @@ const a = class { private p = 10; }; CompilerOptions::{ - "watch": true, - "help": null, - "all": null + "watch": true } diff --git a/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js b/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js index 6618bf1367..40969f8761 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js +++ b/testdata/baselines/reference/tscWatch/noEmit/semantic-errors.js @@ -15,9 +15,7 @@ const a: number = "hello" CompilerOptions::{ - "watch": true, - "help": null, - "all": null + "watch": true } diff --git a/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js b/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js index 51399a342d..6e2fae3c57 100644 --- a/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js +++ b/testdata/baselines/reference/tscWatch/noEmit/syntax-errors.js @@ -15,9 +15,7 @@ const a = "hello CompilerOptions::{ - "watch": true, - "help": null, - "all": null + "watch": true }