@typescript-deploys/pr-build 4.8.0-pr-49285-5 → 4.8.0-pr-49285-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +49 -20
- package/lib/tsserver.js +34 -5
- package/lib/tsserverlibrary.js +34 -5
- package/lib/typescript.js +34 -5
- package/lib/typescriptServices.js +34 -5
- package/lib/typingsInstaller.js +34 -5
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -2981,6 +2981,7 @@ var ts;
|
|
|
2981
2981
|
var marks = new ts.Map();
|
|
2982
2982
|
var counts = new ts.Map();
|
|
2983
2983
|
var durations = new ts.Map();
|
|
2984
|
+
var durationMarks = new ts.Set();
|
|
2984
2985
|
return {
|
|
2985
2986
|
createTimerIf: createTimerIf,
|
|
2986
2987
|
createTimer: createTimer,
|
|
@@ -2989,6 +2990,7 @@ var ts;
|
|
|
2989
2990
|
getCount: getCount,
|
|
2990
2991
|
getDuration: getDuration,
|
|
2991
2992
|
forEachMeasure: forEachMeasure,
|
|
2993
|
+
forEachCount: forEachCount,
|
|
2992
2994
|
isEnabled: isEnabled,
|
|
2993
2995
|
enable: enable,
|
|
2994
2996
|
disable: disable,
|
|
@@ -3029,6 +3031,7 @@ var ts;
|
|
|
3029
3031
|
function measure(measureName, startMarkName, endMarkName) {
|
|
3030
3032
|
var _a, _b;
|
|
3031
3033
|
if (enabled) {
|
|
3034
|
+
durationMarks.add(startMarkName).add(endMarkName);
|
|
3032
3035
|
var end = (_a = marks.get(endMarkName)) !== null && _a !== void 0 ? _a : ts.timestamp();
|
|
3033
3036
|
var start = (_b = marks.get(startMarkName)) !== null && _b !== void 0 ? _b : timeorigin;
|
|
3034
3037
|
var previousDuration = durations.get(measureName) || 0;
|
|
@@ -3045,6 +3048,9 @@ var ts;
|
|
|
3045
3048
|
function forEachMeasure(cb) {
|
|
3046
3049
|
durations.forEach(function (duration, measureName) { return cb(measureName, duration); });
|
|
3047
3050
|
}
|
|
3051
|
+
function forEachCount(cb) {
|
|
3052
|
+
counts.forEach(function (count, countName) { return !durationMarks.has(countName) && cb(countName, count); });
|
|
3053
|
+
}
|
|
3048
3054
|
function isEnabled() {
|
|
3049
3055
|
return enabled;
|
|
3050
3056
|
}
|
|
@@ -6530,7 +6536,7 @@ var ts;
|
|
|
6530
6536
|
Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, ts.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"),
|
|
6531
6537
|
Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, ts.DiagnosticCategory.Message, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),
|
|
6532
6538
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", undefined, undefined, true),
|
|
6533
|
-
|
|
6539
|
+
Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, ts.DiagnosticCategory.Message, "Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available__6386", "Performance timings for '--diagnostics' or '--extendedDiagnostics' or '--solutionDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),
|
|
6534
6540
|
The_signature_0_of_1_is_deprecated: diag(6387, ts.DiagnosticCategory.Suggestion, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", undefined, undefined, true),
|
|
6535
6541
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
6536
6542
|
Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389", "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),
|
|
@@ -6664,6 +6670,7 @@ var ts;
|
|
|
6664
6670
|
Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."),
|
|
6665
6671
|
Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
|
|
6666
6672
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
6673
|
+
Output_more_detailed_solution_performance_information_after_building: diag(6719, ts.DiagnosticCategory.Message, "Output_more_detailed_solution_performance_information_after_building_6719", "Output more detailed solution performance information after building."),
|
|
6667
6674
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
6668
6675
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
6669
6676
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -32693,7 +32700,14 @@ var ts;
|
|
|
32693
32700
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
32694
32701
|
type: "boolean",
|
|
32695
32702
|
defaultValueDescription: false,
|
|
32696
|
-
}
|
|
32703
|
+
},
|
|
32704
|
+
{
|
|
32705
|
+
name: "solutionDiagnostics",
|
|
32706
|
+
type: "boolean",
|
|
32707
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
32708
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
32709
|
+
defaultValueDescription: false,
|
|
32710
|
+
},
|
|
32697
32711
|
];
|
|
32698
32712
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
32699
32713
|
ts.typeAcquisitionDeclarations = [
|
|
@@ -90553,7 +90567,7 @@ var ts;
|
|
|
90553
90567
|
sourceMap: compilerOptions.sourceMap,
|
|
90554
90568
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
90555
90569
|
inlineSources: compilerOptions.inlineSources,
|
|
90556
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
90570
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
90557
90571
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
90558
90572
|
relativeToBuildInfo: relativeToBuildInfo
|
|
90559
90573
|
};
|
|
@@ -90598,7 +90612,7 @@ var ts;
|
|
|
90598
90612
|
target: compilerOptions.target,
|
|
90599
90613
|
sourceMap: compilerOptions.sourceMap,
|
|
90600
90614
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
90601
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
90615
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
90602
90616
|
onlyPrintJsDocStyle: true,
|
|
90603
90617
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
90604
90618
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -90618,7 +90632,7 @@ var ts;
|
|
|
90618
90632
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
90619
90633
|
sourceRoot: compilerOptions.sourceRoot,
|
|
90620
90634
|
mapRoot: compilerOptions.mapRoot,
|
|
90621
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
90635
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
90622
90636
|
});
|
|
90623
90637
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305) {
|
|
90624
90638
|
var sourceFile = declarationTransform.transformed[0];
|
|
@@ -101501,6 +101515,7 @@ var ts;
|
|
|
101501
101515
|
if (system.clearScreen &&
|
|
101502
101516
|
!options.preserveWatchOutput &&
|
|
101503
101517
|
!options.extendedDiagnostics &&
|
|
101518
|
+
!options.solutionDiagnostics &&
|
|
101504
101519
|
!options.diagnostics &&
|
|
101505
101520
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
101506
101521
|
system.clearScreen();
|
|
@@ -102810,6 +102825,8 @@ var ts;
|
|
|
102810
102825
|
if (ts.hasProperty(buildOptions, option.name))
|
|
102811
102826
|
result[option.name] = buildOptions[option.name];
|
|
102812
102827
|
});
|
|
102828
|
+
if (buildOptions.solutionDiagnostics)
|
|
102829
|
+
result.solutionDiagnostics = true;
|
|
102813
102830
|
return result;
|
|
102814
102831
|
}
|
|
102815
102832
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -103922,6 +103939,13 @@ var ts;
|
|
|
103922
103939
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
103923
103940
|
}
|
|
103924
103941
|
function clean(state, project, onlyReferences) {
|
|
103942
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
103943
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
103944
|
+
ts.solutionPerformance.mark("afterClean");
|
|
103945
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
103946
|
+
return result;
|
|
103947
|
+
}
|
|
103948
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
103925
103949
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
103926
103950
|
if (!buildOrder)
|
|
103927
103951
|
return ts.ExitStatus.InvalidProject_OutputsSkipped;
|
|
@@ -104828,14 +104852,14 @@ var ts;
|
|
|
104828
104852
|
return;
|
|
104829
104853
|
if (d.code === ts.Diagnostics.Found_0_errors_Watching_for_file_changes.code ||
|
|
104830
104854
|
d.code === ts.Diagnostics.Found_1_error_Watching_for_file_changes.code) {
|
|
104831
|
-
reportSolutionBuilderTimes(sys, builder_1, buildHost_1);
|
|
104855
|
+
reportSolutionBuilderTimes(sys, buildOptions, builder_1, buildHost_1);
|
|
104832
104856
|
}
|
|
104833
104857
|
};
|
|
104834
104858
|
updateSolutionBuilderHost(sys, cb, buildHost_1);
|
|
104835
104859
|
enableSolutionPerformance(sys, buildOptions);
|
|
104836
104860
|
var builder_1 = ts.createSolutionBuilderWithWatch(buildHost_1, projects, buildOptions, watchOptions);
|
|
104837
104861
|
builder_1.build();
|
|
104838
|
-
reportSolutionBuilderTimes(sys, builder_1, buildHost_1);
|
|
104862
|
+
reportSolutionBuilderTimes(sys, buildOptions, builder_1, buildHost_1);
|
|
104839
104863
|
reportWatchStatistics_1 = true;
|
|
104840
104864
|
return builder_1;
|
|
104841
104865
|
}
|
|
@@ -104844,25 +104868,29 @@ var ts;
|
|
|
104844
104868
|
enableSolutionPerformance(sys, buildOptions);
|
|
104845
104869
|
var builder = ts.createSolutionBuilder(buildHost, projects, buildOptions);
|
|
104846
104870
|
var exitStatus = buildOptions.clean ? builder.clean() : builder.build();
|
|
104847
|
-
reportSolutionBuilderTimes(sys, builder, buildHost);
|
|
104871
|
+
reportSolutionBuilderTimes(sys, buildOptions, builder, buildHost);
|
|
104848
104872
|
ts.dumpTracingLegend();
|
|
104849
104873
|
return sys.exit(exitStatus);
|
|
104850
104874
|
}
|
|
104851
104875
|
function enableSolutionPerformance(system, options) {
|
|
104852
|
-
if (system === ts.sys &&
|
|
104876
|
+
if (system === ts.sys && options.solutionDiagnostics)
|
|
104853
104877
|
ts.solutionPerformance.enable();
|
|
104854
104878
|
}
|
|
104855
|
-
function reportSolutionBuilderTimes(system, builder, buildHost) {
|
|
104856
|
-
if (system !== ts.sys)
|
|
104879
|
+
function reportSolutionBuilderTimes(system, buildOptions, builder, buildHost) {
|
|
104880
|
+
if (system !== ts.sys || !buildOptions.solutionDiagnostics)
|
|
104857
104881
|
return;
|
|
104858
104882
|
if (ts.solutionPerformance.isEnabled()) {
|
|
104859
104883
|
var solutionStatistics_1 = [];
|
|
104884
|
+
solutionStatistics_1.push({ name: "Projects", value: ts.getBuildOrderFromAnyBuildOrder(builder.getBuildOrder()).length, type: StatisticType.count });
|
|
104885
|
+
ts.solutionPerformance.forEachCount(function (name, count) { return solutionStatistics_1.push({ name: name, value: count, type: StatisticType.count }); });
|
|
104860
104886
|
ts.solutionPerformance.forEachMeasure(function (name, duration) { return solutionStatistics_1.push({ name: name + " time", value: duration, type: StatisticType.time }); });
|
|
104861
|
-
solutionStatistics_1.push({ name: "projectsBuilt", value: ts.solutionPerformance.getCount("projectsBuilt"), type: StatisticType.count }, { name: "timestampUpdated", value: ts.solutionPerformance.getCount("timestampUpdated"), type: StatisticType.count }, { name: "bundlesUpdated", value: ts.solutionPerformance.getCount("bundlesUpdated"), type: StatisticType.count }, { name: "projects", value: ts.getBuildOrderFromAnyBuildOrder(builder.getBuildOrder()).length, type: StatisticType.count });
|
|
104862
104887
|
buildHost.statistics = ts.append(buildHost.statistics, solutionStatistics_1);
|
|
104863
104888
|
ts.solutionPerformance.disable();
|
|
104864
104889
|
ts.solutionPerformance.enable();
|
|
104865
104890
|
}
|
|
104891
|
+
else {
|
|
104892
|
+
ts.sys.write(ts.Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n");
|
|
104893
|
+
}
|
|
104866
104894
|
if (!buildHost.statistics)
|
|
104867
104895
|
return;
|
|
104868
104896
|
var statistics = [];
|
|
@@ -104991,14 +105019,14 @@ var ts;
|
|
|
104991
105019
|
updateWatchCompilationHost(system, cb, watchCompilerHost);
|
|
104992
105020
|
return ts.createWatchProgram(watchCompilerHost);
|
|
104993
105021
|
}
|
|
104994
|
-
function
|
|
104995
|
-
return system === ts.sys && (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics);
|
|
105022
|
+
function canGenerateStatistics(system, compilerOptions) {
|
|
105023
|
+
return system === ts.sys && (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics);
|
|
104996
105024
|
}
|
|
104997
105025
|
function canTrace(system, compilerOptions) {
|
|
104998
105026
|
return system === ts.sys && compilerOptions.generateTrace;
|
|
104999
105027
|
}
|
|
105000
105028
|
function enableStatisticsAndTracing(system, compilerOptions, isBuildMode) {
|
|
105001
|
-
if (
|
|
105029
|
+
if (canGenerateStatistics(system, compilerOptions)) {
|
|
105002
105030
|
ts.performance.enable(system);
|
|
105003
105031
|
}
|
|
105004
105032
|
if (canTrace(system, compilerOptions)) {
|
|
@@ -105016,14 +105044,14 @@ var ts;
|
|
|
105016
105044
|
ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.stopTracing();
|
|
105017
105045
|
}
|
|
105018
105046
|
var statistics;
|
|
105019
|
-
if (
|
|
105047
|
+
if (canGenerateStatistics(sys, compilerOptions)) {
|
|
105020
105048
|
statistics = [];
|
|
105021
105049
|
var memoryUsed = sys.getMemoryUsage ? sys.getMemoryUsage() : -1;
|
|
105022
105050
|
if (program) {
|
|
105023
105051
|
reportCountStatistic("Files", program.getSourceFiles().length);
|
|
105024
105052
|
var lineCounts = countLines(program);
|
|
105025
105053
|
var nodeCounts = countNodes(program);
|
|
105026
|
-
if (compilerOptions.extendedDiagnostics) {
|
|
105054
|
+
if (compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics) {
|
|
105027
105055
|
for (var _i = 0, _a = ts.arrayFrom(lineCounts.keys()); _i < _a.length; _i++) {
|
|
105028
105056
|
var key = _a[_i];
|
|
105029
105057
|
reportCountStatistic("Lines of " + key, lineCounts.get(key));
|
|
@@ -105050,7 +105078,7 @@ var ts;
|
|
|
105050
105078
|
var bindTime = isPerformanceEnabled ? ts.performance.getDuration("Bind") : 0;
|
|
105051
105079
|
var checkTime = isPerformanceEnabled ? ts.performance.getDuration("Check") : 0;
|
|
105052
105080
|
var emitTime = isPerformanceEnabled ? ts.performance.getDuration("Emit") : 0;
|
|
105053
|
-
if (compilerOptions.extendedDiagnostics) {
|
|
105081
|
+
if (compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics) {
|
|
105054
105082
|
if (program) {
|
|
105055
105083
|
var caches = program.getRelationCacheSizes();
|
|
105056
105084
|
reportCountStatistic("Assignability cache size", caches.assignable);
|
|
@@ -105073,9 +105101,10 @@ var ts;
|
|
|
105073
105101
|
if (isPerformanceEnabled) {
|
|
105074
105102
|
reportTimeStatistic("Total time", programTime + bindTime + checkTime + emitTime);
|
|
105075
105103
|
}
|
|
105076
|
-
|
|
105104
|
+
if (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics)
|
|
105105
|
+
reportAllStatistics(sys, statistics);
|
|
105077
105106
|
if (!isPerformanceEnabled) {
|
|
105078
|
-
sys.write(ts.Diagnostics.
|
|
105107
|
+
sys.write(ts.Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n");
|
|
105079
105108
|
}
|
|
105080
105109
|
else {
|
|
105081
105110
|
ts.performance.disable();
|
package/lib/tsserver.js
CHANGED
|
@@ -3523,6 +3523,7 @@ var ts;
|
|
|
3523
3523
|
var marks = new ts.Map();
|
|
3524
3524
|
var counts = new ts.Map();
|
|
3525
3525
|
var durations = new ts.Map();
|
|
3526
|
+
var durationMarks = new ts.Set();
|
|
3526
3527
|
return {
|
|
3527
3528
|
createTimerIf: createTimerIf,
|
|
3528
3529
|
createTimer: createTimer,
|
|
@@ -3531,6 +3532,7 @@ var ts;
|
|
|
3531
3532
|
getCount: getCount,
|
|
3532
3533
|
getDuration: getDuration,
|
|
3533
3534
|
forEachMeasure: forEachMeasure,
|
|
3535
|
+
forEachCount: forEachCount,
|
|
3534
3536
|
isEnabled: isEnabled,
|
|
3535
3537
|
enable: enable,
|
|
3536
3538
|
disable: disable,
|
|
@@ -3585,6 +3587,7 @@ var ts;
|
|
|
3585
3587
|
function measure(measureName, startMarkName, endMarkName) {
|
|
3586
3588
|
var _a, _b;
|
|
3587
3589
|
if (enabled) {
|
|
3590
|
+
durationMarks.add(startMarkName).add(endMarkName);
|
|
3588
3591
|
var end = (_a = marks.get(endMarkName)) !== null && _a !== void 0 ? _a : ts.timestamp();
|
|
3589
3592
|
var start = (_b = marks.get(startMarkName)) !== null && _b !== void 0 ? _b : timeorigin;
|
|
3590
3593
|
var previousDuration = durations.get(measureName) || 0;
|
|
@@ -3616,6 +3619,14 @@ var ts;
|
|
|
3616
3619
|
function forEachMeasure(cb) {
|
|
3617
3620
|
durations.forEach(function (duration, measureName) { return cb(measureName, duration); });
|
|
3618
3621
|
}
|
|
3622
|
+
/**
|
|
3623
|
+
* Iterate over each count which is not duration mark, performing some action
|
|
3624
|
+
*
|
|
3625
|
+
* @param cb The action to perform for each measure
|
|
3626
|
+
*/
|
|
3627
|
+
function forEachCount(cb) {
|
|
3628
|
+
counts.forEach(function (count, countName) { return !durationMarks.has(countName) && cb(countName, count); });
|
|
3629
|
+
}
|
|
3619
3630
|
/**
|
|
3620
3631
|
* Indicates whether the performance API is enabled.
|
|
3621
3632
|
*/
|
|
@@ -9351,7 +9362,7 @@ var ts;
|
|
|
9351
9362
|
Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, ts.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"),
|
|
9352
9363
|
Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, ts.DiagnosticCategory.Message, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),
|
|
9353
9364
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9354
|
-
|
|
9365
|
+
Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, ts.DiagnosticCategory.Message, "Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available__6386", "Performance timings for '--diagnostics' or '--extendedDiagnostics' or '--solutionDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),
|
|
9355
9366
|
The_signature_0_of_1_is_deprecated: diag(6387, ts.DiagnosticCategory.Suggestion, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9356
9367
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9357
9368
|
Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389", "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),
|
|
@@ -9485,6 +9496,7 @@ var ts;
|
|
|
9485
9496
|
Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."),
|
|
9486
9497
|
Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
|
|
9487
9498
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
9499
|
+
Output_more_detailed_solution_performance_information_after_building: diag(6719, ts.DiagnosticCategory.Message, "Output_more_detailed_solution_performance_information_after_building_6719", "Output more detailed solution performance information after building."),
|
|
9488
9500
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
9489
9501
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9490
9502
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40238,7 +40250,14 @@ var ts;
|
|
|
40238
40250
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40239
40251
|
type: "boolean",
|
|
40240
40252
|
defaultValueDescription: false,
|
|
40241
|
-
}
|
|
40253
|
+
},
|
|
40254
|
+
{
|
|
40255
|
+
name: "solutionDiagnostics",
|
|
40256
|
+
type: "boolean",
|
|
40257
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40258
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40259
|
+
defaultValueDescription: false,
|
|
40260
|
+
},
|
|
40242
40261
|
];
|
|
40243
40262
|
/* @internal */
|
|
40244
40263
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110361,7 +110380,7 @@ var ts;
|
|
|
110361
110380
|
sourceMap: compilerOptions.sourceMap,
|
|
110362
110381
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110363
110382
|
inlineSources: compilerOptions.inlineSources,
|
|
110364
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110383
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110365
110384
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110366
110385
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110367
110386
|
};
|
|
@@ -110413,7 +110432,7 @@ var ts;
|
|
|
110413
110432
|
target: compilerOptions.target,
|
|
110414
110433
|
sourceMap: compilerOptions.sourceMap,
|
|
110415
110434
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110416
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110435
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110417
110436
|
onlyPrintJsDocStyle: true,
|
|
110418
110437
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110419
110438
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110435,7 +110454,7 @@ var ts;
|
|
|
110435
110454
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110436
110455
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110437
110456
|
mapRoot: compilerOptions.mapRoot,
|
|
110438
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110457
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110439
110458
|
// Explicitly do not passthru either `inline` option
|
|
110440
110459
|
});
|
|
110441
110460
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -122747,6 +122766,7 @@ var ts;
|
|
|
122747
122766
|
if (system.clearScreen &&
|
|
122748
122767
|
!options.preserveWatchOutput &&
|
|
122749
122768
|
!options.extendedDiagnostics &&
|
|
122769
|
+
!options.solutionDiagnostics &&
|
|
122750
122770
|
!options.diagnostics &&
|
|
122751
122771
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
122752
122772
|
system.clearScreen();
|
|
@@ -124187,6 +124207,8 @@ var ts;
|
|
|
124187
124207
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124188
124208
|
result[option.name] = buildOptions[option.name];
|
|
124189
124209
|
});
|
|
124210
|
+
if (buildOptions.solutionDiagnostics)
|
|
124211
|
+
result.solutionDiagnostics = true;
|
|
124190
124212
|
return result;
|
|
124191
124213
|
}
|
|
124192
124214
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125364,6 +125386,13 @@ var ts;
|
|
|
125364
125386
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125365
125387
|
}
|
|
125366
125388
|
function clean(state, project, onlyReferences) {
|
|
125389
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125390
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125391
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125392
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125393
|
+
return result;
|
|
125394
|
+
}
|
|
125395
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125367
125396
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125368
125397
|
if (!buildOrder)
|
|
125369
125398
|
return ts.ExitStatus.InvalidProject_OutputsSkipped;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -3717,6 +3717,7 @@ var ts;
|
|
|
3717
3717
|
var marks = new ts.Map();
|
|
3718
3718
|
var counts = new ts.Map();
|
|
3719
3719
|
var durations = new ts.Map();
|
|
3720
|
+
var durationMarks = new ts.Set();
|
|
3720
3721
|
return {
|
|
3721
3722
|
createTimerIf: createTimerIf,
|
|
3722
3723
|
createTimer: createTimer,
|
|
@@ -3725,6 +3726,7 @@ var ts;
|
|
|
3725
3726
|
getCount: getCount,
|
|
3726
3727
|
getDuration: getDuration,
|
|
3727
3728
|
forEachMeasure: forEachMeasure,
|
|
3729
|
+
forEachCount: forEachCount,
|
|
3728
3730
|
isEnabled: isEnabled,
|
|
3729
3731
|
enable: enable,
|
|
3730
3732
|
disable: disable,
|
|
@@ -3779,6 +3781,7 @@ var ts;
|
|
|
3779
3781
|
function measure(measureName, startMarkName, endMarkName) {
|
|
3780
3782
|
var _a, _b;
|
|
3781
3783
|
if (enabled) {
|
|
3784
|
+
durationMarks.add(startMarkName).add(endMarkName);
|
|
3782
3785
|
var end = (_a = marks.get(endMarkName)) !== null && _a !== void 0 ? _a : ts.timestamp();
|
|
3783
3786
|
var start = (_b = marks.get(startMarkName)) !== null && _b !== void 0 ? _b : timeorigin;
|
|
3784
3787
|
var previousDuration = durations.get(measureName) || 0;
|
|
@@ -3810,6 +3813,14 @@ var ts;
|
|
|
3810
3813
|
function forEachMeasure(cb) {
|
|
3811
3814
|
durations.forEach(function (duration, measureName) { return cb(measureName, duration); });
|
|
3812
3815
|
}
|
|
3816
|
+
/**
|
|
3817
|
+
* Iterate over each count which is not duration mark, performing some action
|
|
3818
|
+
*
|
|
3819
|
+
* @param cb The action to perform for each measure
|
|
3820
|
+
*/
|
|
3821
|
+
function forEachCount(cb) {
|
|
3822
|
+
counts.forEach(function (count, countName) { return !durationMarks.has(countName) && cb(countName, count); });
|
|
3823
|
+
}
|
|
3813
3824
|
/**
|
|
3814
3825
|
* Indicates whether the performance API is enabled.
|
|
3815
3826
|
*/
|
|
@@ -9545,7 +9556,7 @@ var ts;
|
|
|
9545
9556
|
Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, ts.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"),
|
|
9546
9557
|
Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, ts.DiagnosticCategory.Message, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),
|
|
9547
9558
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9548
|
-
|
|
9559
|
+
Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, ts.DiagnosticCategory.Message, "Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available__6386", "Performance timings for '--diagnostics' or '--extendedDiagnostics' or '--solutionDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),
|
|
9549
9560
|
The_signature_0_of_1_is_deprecated: diag(6387, ts.DiagnosticCategory.Suggestion, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9550
9561
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9551
9562
|
Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389", "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),
|
|
@@ -9679,6 +9690,7 @@ var ts;
|
|
|
9679
9690
|
Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."),
|
|
9680
9691
|
Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
|
|
9681
9692
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
9693
|
+
Output_more_detailed_solution_performance_information_after_building: diag(6719, ts.DiagnosticCategory.Message, "Output_more_detailed_solution_performance_information_after_building_6719", "Output more detailed solution performance information after building."),
|
|
9682
9694
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
9683
9695
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9684
9696
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40432,7 +40444,14 @@ var ts;
|
|
|
40432
40444
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40433
40445
|
type: "boolean",
|
|
40434
40446
|
defaultValueDescription: false,
|
|
40435
|
-
}
|
|
40447
|
+
},
|
|
40448
|
+
{
|
|
40449
|
+
name: "solutionDiagnostics",
|
|
40450
|
+
type: "boolean",
|
|
40451
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40452
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40453
|
+
defaultValueDescription: false,
|
|
40454
|
+
},
|
|
40436
40455
|
];
|
|
40437
40456
|
/* @internal */
|
|
40438
40457
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110555,7 +110574,7 @@ var ts;
|
|
|
110555
110574
|
sourceMap: compilerOptions.sourceMap,
|
|
110556
110575
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110557
110576
|
inlineSources: compilerOptions.inlineSources,
|
|
110558
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110577
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110559
110578
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110560
110579
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110561
110580
|
};
|
|
@@ -110607,7 +110626,7 @@ var ts;
|
|
|
110607
110626
|
target: compilerOptions.target,
|
|
110608
110627
|
sourceMap: compilerOptions.sourceMap,
|
|
110609
110628
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110610
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110629
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110611
110630
|
onlyPrintJsDocStyle: true,
|
|
110612
110631
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110613
110632
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110629,7 +110648,7 @@ var ts;
|
|
|
110629
110648
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110630
110649
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110631
110650
|
mapRoot: compilerOptions.mapRoot,
|
|
110632
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110651
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110633
110652
|
// Explicitly do not passthru either `inline` option
|
|
110634
110653
|
});
|
|
110635
110654
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -122941,6 +122960,7 @@ var ts;
|
|
|
122941
122960
|
if (system.clearScreen &&
|
|
122942
122961
|
!options.preserveWatchOutput &&
|
|
122943
122962
|
!options.extendedDiagnostics &&
|
|
122963
|
+
!options.solutionDiagnostics &&
|
|
122944
122964
|
!options.diagnostics &&
|
|
122945
122965
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
122946
122966
|
system.clearScreen();
|
|
@@ -124381,6 +124401,8 @@ var ts;
|
|
|
124381
124401
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124382
124402
|
result[option.name] = buildOptions[option.name];
|
|
124383
124403
|
});
|
|
124404
|
+
if (buildOptions.solutionDiagnostics)
|
|
124405
|
+
result.solutionDiagnostics = true;
|
|
124384
124406
|
return result;
|
|
124385
124407
|
}
|
|
124386
124408
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125558,6 +125580,13 @@ var ts;
|
|
|
125558
125580
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125559
125581
|
}
|
|
125560
125582
|
function clean(state, project, onlyReferences) {
|
|
125583
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125584
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125585
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125586
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125587
|
+
return result;
|
|
125588
|
+
}
|
|
125589
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125561
125590
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125562
125591
|
if (!buildOrder)
|
|
125563
125592
|
return ts.ExitStatus.InvalidProject_OutputsSkipped;
|
package/lib/typescript.js
CHANGED
|
@@ -3717,6 +3717,7 @@ var ts;
|
|
|
3717
3717
|
var marks = new ts.Map();
|
|
3718
3718
|
var counts = new ts.Map();
|
|
3719
3719
|
var durations = new ts.Map();
|
|
3720
|
+
var durationMarks = new ts.Set();
|
|
3720
3721
|
return {
|
|
3721
3722
|
createTimerIf: createTimerIf,
|
|
3722
3723
|
createTimer: createTimer,
|
|
@@ -3725,6 +3726,7 @@ var ts;
|
|
|
3725
3726
|
getCount: getCount,
|
|
3726
3727
|
getDuration: getDuration,
|
|
3727
3728
|
forEachMeasure: forEachMeasure,
|
|
3729
|
+
forEachCount: forEachCount,
|
|
3728
3730
|
isEnabled: isEnabled,
|
|
3729
3731
|
enable: enable,
|
|
3730
3732
|
disable: disable,
|
|
@@ -3779,6 +3781,7 @@ var ts;
|
|
|
3779
3781
|
function measure(measureName, startMarkName, endMarkName) {
|
|
3780
3782
|
var _a, _b;
|
|
3781
3783
|
if (enabled) {
|
|
3784
|
+
durationMarks.add(startMarkName).add(endMarkName);
|
|
3782
3785
|
var end = (_a = marks.get(endMarkName)) !== null && _a !== void 0 ? _a : ts.timestamp();
|
|
3783
3786
|
var start = (_b = marks.get(startMarkName)) !== null && _b !== void 0 ? _b : timeorigin;
|
|
3784
3787
|
var previousDuration = durations.get(measureName) || 0;
|
|
@@ -3810,6 +3813,14 @@ var ts;
|
|
|
3810
3813
|
function forEachMeasure(cb) {
|
|
3811
3814
|
durations.forEach(function (duration, measureName) { return cb(measureName, duration); });
|
|
3812
3815
|
}
|
|
3816
|
+
/**
|
|
3817
|
+
* Iterate over each count which is not duration mark, performing some action
|
|
3818
|
+
*
|
|
3819
|
+
* @param cb The action to perform for each measure
|
|
3820
|
+
*/
|
|
3821
|
+
function forEachCount(cb) {
|
|
3822
|
+
counts.forEach(function (count, countName) { return !durationMarks.has(countName) && cb(countName, count); });
|
|
3823
|
+
}
|
|
3813
3824
|
/**
|
|
3814
3825
|
* Indicates whether the performance API is enabled.
|
|
3815
3826
|
*/
|
|
@@ -9545,7 +9556,7 @@ var ts;
|
|
|
9545
9556
|
Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, ts.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"),
|
|
9546
9557
|
Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, ts.DiagnosticCategory.Message, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),
|
|
9547
9558
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9548
|
-
|
|
9559
|
+
Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, ts.DiagnosticCategory.Message, "Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available__6386", "Performance timings for '--diagnostics' or '--extendedDiagnostics' or '--solutionDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),
|
|
9549
9560
|
The_signature_0_of_1_is_deprecated: diag(6387, ts.DiagnosticCategory.Suggestion, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9550
9561
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9551
9562
|
Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389", "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),
|
|
@@ -9679,6 +9690,7 @@ var ts;
|
|
|
9679
9690
|
Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."),
|
|
9680
9691
|
Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
|
|
9681
9692
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
9693
|
+
Output_more_detailed_solution_performance_information_after_building: diag(6719, ts.DiagnosticCategory.Message, "Output_more_detailed_solution_performance_information_after_building_6719", "Output more detailed solution performance information after building."),
|
|
9682
9694
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
9683
9695
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9684
9696
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40432,7 +40444,14 @@ var ts;
|
|
|
40432
40444
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40433
40445
|
type: "boolean",
|
|
40434
40446
|
defaultValueDescription: false,
|
|
40435
|
-
}
|
|
40447
|
+
},
|
|
40448
|
+
{
|
|
40449
|
+
name: "solutionDiagnostics",
|
|
40450
|
+
type: "boolean",
|
|
40451
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40452
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40453
|
+
defaultValueDescription: false,
|
|
40454
|
+
},
|
|
40436
40455
|
];
|
|
40437
40456
|
/* @internal */
|
|
40438
40457
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110555,7 +110574,7 @@ var ts;
|
|
|
110555
110574
|
sourceMap: compilerOptions.sourceMap,
|
|
110556
110575
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110557
110576
|
inlineSources: compilerOptions.inlineSources,
|
|
110558
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110577
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110559
110578
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110560
110579
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110561
110580
|
};
|
|
@@ -110607,7 +110626,7 @@ var ts;
|
|
|
110607
110626
|
target: compilerOptions.target,
|
|
110608
110627
|
sourceMap: compilerOptions.sourceMap,
|
|
110609
110628
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110610
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110629
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110611
110630
|
onlyPrintJsDocStyle: true,
|
|
110612
110631
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110613
110632
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110629,7 +110648,7 @@ var ts;
|
|
|
110629
110648
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110630
110649
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110631
110650
|
mapRoot: compilerOptions.mapRoot,
|
|
110632
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110651
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110633
110652
|
// Explicitly do not passthru either `inline` option
|
|
110634
110653
|
});
|
|
110635
110654
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -122941,6 +122960,7 @@ var ts;
|
|
|
122941
122960
|
if (system.clearScreen &&
|
|
122942
122961
|
!options.preserveWatchOutput &&
|
|
122943
122962
|
!options.extendedDiagnostics &&
|
|
122963
|
+
!options.solutionDiagnostics &&
|
|
122944
122964
|
!options.diagnostics &&
|
|
122945
122965
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
122946
122966
|
system.clearScreen();
|
|
@@ -124381,6 +124401,8 @@ var ts;
|
|
|
124381
124401
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124382
124402
|
result[option.name] = buildOptions[option.name];
|
|
124383
124403
|
});
|
|
124404
|
+
if (buildOptions.solutionDiagnostics)
|
|
124405
|
+
result.solutionDiagnostics = true;
|
|
124384
124406
|
return result;
|
|
124385
124407
|
}
|
|
124386
124408
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125558,6 +125580,13 @@ var ts;
|
|
|
125558
125580
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125559
125581
|
}
|
|
125560
125582
|
function clean(state, project, onlyReferences) {
|
|
125583
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125584
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125585
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125586
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125587
|
+
return result;
|
|
125588
|
+
}
|
|
125589
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125561
125590
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125562
125591
|
if (!buildOrder)
|
|
125563
125592
|
return ts.ExitStatus.InvalidProject_OutputsSkipped;
|
|
@@ -3717,6 +3717,7 @@ var ts;
|
|
|
3717
3717
|
var marks = new ts.Map();
|
|
3718
3718
|
var counts = new ts.Map();
|
|
3719
3719
|
var durations = new ts.Map();
|
|
3720
|
+
var durationMarks = new ts.Set();
|
|
3720
3721
|
return {
|
|
3721
3722
|
createTimerIf: createTimerIf,
|
|
3722
3723
|
createTimer: createTimer,
|
|
@@ -3725,6 +3726,7 @@ var ts;
|
|
|
3725
3726
|
getCount: getCount,
|
|
3726
3727
|
getDuration: getDuration,
|
|
3727
3728
|
forEachMeasure: forEachMeasure,
|
|
3729
|
+
forEachCount: forEachCount,
|
|
3728
3730
|
isEnabled: isEnabled,
|
|
3729
3731
|
enable: enable,
|
|
3730
3732
|
disable: disable,
|
|
@@ -3779,6 +3781,7 @@ var ts;
|
|
|
3779
3781
|
function measure(measureName, startMarkName, endMarkName) {
|
|
3780
3782
|
var _a, _b;
|
|
3781
3783
|
if (enabled) {
|
|
3784
|
+
durationMarks.add(startMarkName).add(endMarkName);
|
|
3782
3785
|
var end = (_a = marks.get(endMarkName)) !== null && _a !== void 0 ? _a : ts.timestamp();
|
|
3783
3786
|
var start = (_b = marks.get(startMarkName)) !== null && _b !== void 0 ? _b : timeorigin;
|
|
3784
3787
|
var previousDuration = durations.get(measureName) || 0;
|
|
@@ -3810,6 +3813,14 @@ var ts;
|
|
|
3810
3813
|
function forEachMeasure(cb) {
|
|
3811
3814
|
durations.forEach(function (duration, measureName) { return cb(measureName, duration); });
|
|
3812
3815
|
}
|
|
3816
|
+
/**
|
|
3817
|
+
* Iterate over each count which is not duration mark, performing some action
|
|
3818
|
+
*
|
|
3819
|
+
* @param cb The action to perform for each measure
|
|
3820
|
+
*/
|
|
3821
|
+
function forEachCount(cb) {
|
|
3822
|
+
counts.forEach(function (count, countName) { return !durationMarks.has(countName) && cb(countName, count); });
|
|
3823
|
+
}
|
|
3813
3824
|
/**
|
|
3814
3825
|
* Indicates whether the performance API is enabled.
|
|
3815
3826
|
*/
|
|
@@ -9545,7 +9556,7 @@ var ts;
|
|
|
9545
9556
|
Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, ts.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"),
|
|
9546
9557
|
Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, ts.DiagnosticCategory.Message, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),
|
|
9547
9558
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9548
|
-
|
|
9559
|
+
Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, ts.DiagnosticCategory.Message, "Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available__6386", "Performance timings for '--diagnostics' or '--extendedDiagnostics' or '--solutionDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),
|
|
9549
9560
|
The_signature_0_of_1_is_deprecated: diag(6387, ts.DiagnosticCategory.Suggestion, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9550
9561
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9551
9562
|
Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389", "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),
|
|
@@ -9679,6 +9690,7 @@ var ts;
|
|
|
9679
9690
|
Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."),
|
|
9680
9691
|
Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
|
|
9681
9692
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
9693
|
+
Output_more_detailed_solution_performance_information_after_building: diag(6719, ts.DiagnosticCategory.Message, "Output_more_detailed_solution_performance_information_after_building_6719", "Output more detailed solution performance information after building."),
|
|
9682
9694
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
9683
9695
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9684
9696
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40432,7 +40444,14 @@ var ts;
|
|
|
40432
40444
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40433
40445
|
type: "boolean",
|
|
40434
40446
|
defaultValueDescription: false,
|
|
40435
|
-
}
|
|
40447
|
+
},
|
|
40448
|
+
{
|
|
40449
|
+
name: "solutionDiagnostics",
|
|
40450
|
+
type: "boolean",
|
|
40451
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40452
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40453
|
+
defaultValueDescription: false,
|
|
40454
|
+
},
|
|
40436
40455
|
];
|
|
40437
40456
|
/* @internal */
|
|
40438
40457
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110555,7 +110574,7 @@ var ts;
|
|
|
110555
110574
|
sourceMap: compilerOptions.sourceMap,
|
|
110556
110575
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110557
110576
|
inlineSources: compilerOptions.inlineSources,
|
|
110558
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110577
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110559
110578
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110560
110579
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110561
110580
|
};
|
|
@@ -110607,7 +110626,7 @@ var ts;
|
|
|
110607
110626
|
target: compilerOptions.target,
|
|
110608
110627
|
sourceMap: compilerOptions.sourceMap,
|
|
110609
110628
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110610
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110629
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110611
110630
|
onlyPrintJsDocStyle: true,
|
|
110612
110631
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110613
110632
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110629,7 +110648,7 @@ var ts;
|
|
|
110629
110648
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110630
110649
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110631
110650
|
mapRoot: compilerOptions.mapRoot,
|
|
110632
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110651
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110633
110652
|
// Explicitly do not passthru either `inline` option
|
|
110634
110653
|
});
|
|
110635
110654
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -122941,6 +122960,7 @@ var ts;
|
|
|
122941
122960
|
if (system.clearScreen &&
|
|
122942
122961
|
!options.preserveWatchOutput &&
|
|
122943
122962
|
!options.extendedDiagnostics &&
|
|
122963
|
+
!options.solutionDiagnostics &&
|
|
122944
122964
|
!options.diagnostics &&
|
|
122945
122965
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
122946
122966
|
system.clearScreen();
|
|
@@ -124381,6 +124401,8 @@ var ts;
|
|
|
124381
124401
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124382
124402
|
result[option.name] = buildOptions[option.name];
|
|
124383
124403
|
});
|
|
124404
|
+
if (buildOptions.solutionDiagnostics)
|
|
124405
|
+
result.solutionDiagnostics = true;
|
|
124384
124406
|
return result;
|
|
124385
124407
|
}
|
|
124386
124408
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125558,6 +125580,13 @@ var ts;
|
|
|
125558
125580
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125559
125581
|
}
|
|
125560
125582
|
function clean(state, project, onlyReferences) {
|
|
125583
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125584
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125585
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125586
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125587
|
+
return result;
|
|
125588
|
+
}
|
|
125589
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125561
125590
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125562
125591
|
if (!buildOrder)
|
|
125563
125592
|
return ts.ExitStatus.InvalidProject_OutputsSkipped;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -3512,6 +3512,7 @@ var ts;
|
|
|
3512
3512
|
var marks = new ts.Map();
|
|
3513
3513
|
var counts = new ts.Map();
|
|
3514
3514
|
var durations = new ts.Map();
|
|
3515
|
+
var durationMarks = new ts.Set();
|
|
3515
3516
|
return {
|
|
3516
3517
|
createTimerIf: createTimerIf,
|
|
3517
3518
|
createTimer: createTimer,
|
|
@@ -3520,6 +3521,7 @@ var ts;
|
|
|
3520
3521
|
getCount: getCount,
|
|
3521
3522
|
getDuration: getDuration,
|
|
3522
3523
|
forEachMeasure: forEachMeasure,
|
|
3524
|
+
forEachCount: forEachCount,
|
|
3523
3525
|
isEnabled: isEnabled,
|
|
3524
3526
|
enable: enable,
|
|
3525
3527
|
disable: disable,
|
|
@@ -3574,6 +3576,7 @@ var ts;
|
|
|
3574
3576
|
function measure(measureName, startMarkName, endMarkName) {
|
|
3575
3577
|
var _a, _b;
|
|
3576
3578
|
if (enabled) {
|
|
3579
|
+
durationMarks.add(startMarkName).add(endMarkName);
|
|
3577
3580
|
var end = (_a = marks.get(endMarkName)) !== null && _a !== void 0 ? _a : ts.timestamp();
|
|
3578
3581
|
var start = (_b = marks.get(startMarkName)) !== null && _b !== void 0 ? _b : timeorigin;
|
|
3579
3582
|
var previousDuration = durations.get(measureName) || 0;
|
|
@@ -3605,6 +3608,14 @@ var ts;
|
|
|
3605
3608
|
function forEachMeasure(cb) {
|
|
3606
3609
|
durations.forEach(function (duration, measureName) { return cb(measureName, duration); });
|
|
3607
3610
|
}
|
|
3611
|
+
/**
|
|
3612
|
+
* Iterate over each count which is not duration mark, performing some action
|
|
3613
|
+
*
|
|
3614
|
+
* @param cb The action to perform for each measure
|
|
3615
|
+
*/
|
|
3616
|
+
function forEachCount(cb) {
|
|
3617
|
+
counts.forEach(function (count, countName) { return !durationMarks.has(countName) && cb(countName, count); });
|
|
3618
|
+
}
|
|
3608
3619
|
/**
|
|
3609
3620
|
* Indicates whether the performance API is enabled.
|
|
3610
3621
|
*/
|
|
@@ -9340,7 +9351,7 @@ var ts;
|
|
|
9340
9351
|
Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, ts.DiagnosticCategory.Message, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"),
|
|
9341
9352
|
Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, ts.DiagnosticCategory.Message, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),
|
|
9342
9353
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9343
|
-
|
|
9354
|
+
Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, ts.DiagnosticCategory.Message, "Performance_timings_for_diagnostics_or_extendedDiagnostics_or_solutionDiagnostics_are_not_available__6386", "Performance timings for '--diagnostics' or '--extendedDiagnostics' or '--solutionDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),
|
|
9344
9355
|
The_signature_0_of_1_is_deprecated: diag(6387, ts.DiagnosticCategory.Suggestion, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9345
9356
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9346
9357
|
Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, ts.DiagnosticCategory.Message, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389", "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),
|
|
@@ -9474,6 +9485,7 @@ var ts;
|
|
|
9474
9485
|
Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, "Specify_how_the_TypeScript_watch_mode_works_6715", "Specify how the TypeScript watch mode works."),
|
|
9475
9486
|
Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
|
|
9476
9487
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
9488
|
+
Output_more_detailed_solution_performance_information_after_building: diag(6719, ts.DiagnosticCategory.Message, "Output_more_detailed_solution_performance_information_after_building_6719", "Output more detailed solution performance information after building."),
|
|
9477
9489
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
9478
9490
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9479
9491
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40227,7 +40239,14 @@ var ts;
|
|
|
40227
40239
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40228
40240
|
type: "boolean",
|
|
40229
40241
|
defaultValueDescription: false,
|
|
40230
|
-
}
|
|
40242
|
+
},
|
|
40243
|
+
{
|
|
40244
|
+
name: "solutionDiagnostics",
|
|
40245
|
+
type: "boolean",
|
|
40246
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40247
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40248
|
+
defaultValueDescription: false,
|
|
40249
|
+
},
|
|
40231
40250
|
];
|
|
40232
40251
|
/* @internal */
|
|
40233
40252
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110350,7 +110369,7 @@ var ts;
|
|
|
110350
110369
|
sourceMap: compilerOptions.sourceMap,
|
|
110351
110370
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110352
110371
|
inlineSources: compilerOptions.inlineSources,
|
|
110353
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110372
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110354
110373
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110355
110374
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110356
110375
|
};
|
|
@@ -110402,7 +110421,7 @@ var ts;
|
|
|
110402
110421
|
target: compilerOptions.target,
|
|
110403
110422
|
sourceMap: compilerOptions.sourceMap,
|
|
110404
110423
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110405
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110424
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110406
110425
|
onlyPrintJsDocStyle: true,
|
|
110407
110426
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110408
110427
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110424,7 +110443,7 @@ var ts;
|
|
|
110424
110443
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110425
110444
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110426
110445
|
mapRoot: compilerOptions.mapRoot,
|
|
110427
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110446
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110428
110447
|
// Explicitly do not passthru either `inline` option
|
|
110429
110448
|
});
|
|
110430
110449
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -122736,6 +122755,7 @@ var ts;
|
|
|
122736
122755
|
if (system.clearScreen &&
|
|
122737
122756
|
!options.preserveWatchOutput &&
|
|
122738
122757
|
!options.extendedDiagnostics &&
|
|
122758
|
+
!options.solutionDiagnostics &&
|
|
122739
122759
|
!options.diagnostics &&
|
|
122740
122760
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
122741
122761
|
system.clearScreen();
|
|
@@ -124176,6 +124196,8 @@ var ts;
|
|
|
124176
124196
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124177
124197
|
result[option.name] = buildOptions[option.name];
|
|
124178
124198
|
});
|
|
124199
|
+
if (buildOptions.solutionDiagnostics)
|
|
124200
|
+
result.solutionDiagnostics = true;
|
|
124179
124201
|
return result;
|
|
124180
124202
|
}
|
|
124181
124203
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125353,6 +125375,13 @@ var ts;
|
|
|
125353
125375
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125354
125376
|
}
|
|
125355
125377
|
function clean(state, project, onlyReferences) {
|
|
125378
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125379
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125380
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125381
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125382
|
+
return result;
|
|
125383
|
+
}
|
|
125384
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125356
125385
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125357
125386
|
if (!buildOrder)
|
|
125358
125387
|
return ts.ExitStatus.InvalidProject_OutputsSkipped;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.8.0-pr-49285-
|
|
5
|
+
"version": "4.8.0-pr-49285-8",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|