@typescript-deploys/pr-build 4.8.0-pr-48784-17 → 4.8.0-pr-48784-20
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
|
}
|
|
@@ -6539,7 +6545,7 @@ var ts;
|
|
|
6539
6545
|
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"),
|
|
6540
6546
|
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."),
|
|
6541
6547
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", undefined, undefined, true),
|
|
6542
|
-
|
|
6548
|
+
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."),
|
|
6543
6549
|
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),
|
|
6544
6550
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
6545
6551
|
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."),
|
|
@@ -6675,6 +6681,7 @@ var ts;
|
|
|
6675
6681
|
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."),
|
|
6676
6682
|
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."),
|
|
6677
6683
|
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."),
|
|
6684
|
+
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."),
|
|
6678
6685
|
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'."),
|
|
6679
6686
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
6680
6687
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -32788,7 +32795,14 @@ var ts;
|
|
|
32788
32795
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
32789
32796
|
type: "boolean",
|
|
32790
32797
|
defaultValueDescription: false,
|
|
32791
|
-
}
|
|
32798
|
+
},
|
|
32799
|
+
{
|
|
32800
|
+
name: "solutionDiagnostics",
|
|
32801
|
+
type: "boolean",
|
|
32802
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
32803
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
32804
|
+
defaultValueDescription: false,
|
|
32805
|
+
},
|
|
32792
32806
|
];
|
|
32793
32807
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
32794
32808
|
ts.typeAcquisitionDeclarations = [
|
|
@@ -90650,7 +90664,7 @@ var ts;
|
|
|
90650
90664
|
sourceMap: compilerOptions.sourceMap,
|
|
90651
90665
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
90652
90666
|
inlineSources: compilerOptions.inlineSources,
|
|
90653
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
90667
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
90654
90668
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
90655
90669
|
relativeToBuildInfo: relativeToBuildInfo
|
|
90656
90670
|
};
|
|
@@ -90695,7 +90709,7 @@ var ts;
|
|
|
90695
90709
|
target: compilerOptions.target,
|
|
90696
90710
|
sourceMap: compilerOptions.sourceMap,
|
|
90697
90711
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
90698
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
90712
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
90699
90713
|
onlyPrintJsDocStyle: true,
|
|
90700
90714
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
90701
90715
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -90715,7 +90729,7 @@ var ts;
|
|
|
90715
90729
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
90716
90730
|
sourceRoot: compilerOptions.sourceRoot,
|
|
90717
90731
|
mapRoot: compilerOptions.mapRoot,
|
|
90718
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
90732
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
90719
90733
|
});
|
|
90720
90734
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305) {
|
|
90721
90735
|
var sourceFile = declarationTransform.transformed[0];
|
|
@@ -101677,6 +101691,7 @@ var ts;
|
|
|
101677
101691
|
if (system.clearScreen &&
|
|
101678
101692
|
!options.preserveWatchOutput &&
|
|
101679
101693
|
!options.extendedDiagnostics &&
|
|
101694
|
+
!options.solutionDiagnostics &&
|
|
101680
101695
|
!options.diagnostics &&
|
|
101681
101696
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
101682
101697
|
system.clearScreen();
|
|
@@ -102999,6 +103014,8 @@ var ts;
|
|
|
102999
103014
|
if (ts.hasProperty(buildOptions, option.name))
|
|
103000
103015
|
result[option.name] = buildOptions[option.name];
|
|
103001
103016
|
});
|
|
103017
|
+
if (buildOptions.solutionDiagnostics)
|
|
103018
|
+
result.solutionDiagnostics = true;
|
|
103002
103019
|
return result;
|
|
103003
103020
|
}
|
|
103004
103021
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -104317,6 +104334,13 @@ var ts;
|
|
|
104317
104334
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
104318
104335
|
}
|
|
104319
104336
|
function clean(state, project, onlyReferences) {
|
|
104337
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
104338
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
104339
|
+
ts.solutionPerformance.mark("afterClean");
|
|
104340
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
104341
|
+
return result;
|
|
104342
|
+
}
|
|
104343
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
104320
104344
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
104321
104345
|
if (!buildOrder)
|
|
104322
104346
|
return ts.ExitStatus.InvalidProject_OutputsSkipped;
|
|
@@ -105224,14 +105248,14 @@ var ts;
|
|
|
105224
105248
|
return;
|
|
105225
105249
|
if (d.code === ts.Diagnostics.Found_0_errors_Watching_for_file_changes.code ||
|
|
105226
105250
|
d.code === ts.Diagnostics.Found_1_error_Watching_for_file_changes.code) {
|
|
105227
|
-
reportSolutionBuilderTimes(sys, builder_1, buildHost_1);
|
|
105251
|
+
reportSolutionBuilderTimes(sys, buildOptions, builder_1, buildHost_1);
|
|
105228
105252
|
}
|
|
105229
105253
|
};
|
|
105230
105254
|
updateSolutionBuilderHost(sys, cb, buildHost_1);
|
|
105231
105255
|
enableSolutionPerformance(sys, buildOptions);
|
|
105232
105256
|
var builder_1 = ts.createSolutionBuilderWithWatch(buildHost_1, projects, buildOptions, watchOptions);
|
|
105233
105257
|
builder_1.build();
|
|
105234
|
-
reportSolutionBuilderTimes(sys, builder_1, buildHost_1);
|
|
105258
|
+
reportSolutionBuilderTimes(sys, buildOptions, builder_1, buildHost_1);
|
|
105235
105259
|
reportWatchStatistics_1 = true;
|
|
105236
105260
|
return builder_1;
|
|
105237
105261
|
}
|
|
@@ -105240,25 +105264,29 @@ var ts;
|
|
|
105240
105264
|
enableSolutionPerformance(sys, buildOptions);
|
|
105241
105265
|
var builder = ts.createSolutionBuilder(buildHost, projects, buildOptions);
|
|
105242
105266
|
var exitStatus = buildOptions.clean ? builder.clean() : builder.build();
|
|
105243
|
-
reportSolutionBuilderTimes(sys, builder, buildHost);
|
|
105267
|
+
reportSolutionBuilderTimes(sys, buildOptions, builder, buildHost);
|
|
105244
105268
|
ts.dumpTracingLegend();
|
|
105245
105269
|
return sys.exit(exitStatus);
|
|
105246
105270
|
}
|
|
105247
105271
|
function enableSolutionPerformance(system, options) {
|
|
105248
|
-
if (system === ts.sys &&
|
|
105272
|
+
if (system === ts.sys && options.solutionDiagnostics)
|
|
105249
105273
|
ts.solutionPerformance.enable();
|
|
105250
105274
|
}
|
|
105251
|
-
function reportSolutionBuilderTimes(system, builder, buildHost) {
|
|
105252
|
-
if (system !== ts.sys)
|
|
105275
|
+
function reportSolutionBuilderTimes(system, buildOptions, builder, buildHost) {
|
|
105276
|
+
if (system !== ts.sys || !buildOptions.solutionDiagnostics)
|
|
105253
105277
|
return;
|
|
105254
105278
|
if (ts.solutionPerformance.isEnabled()) {
|
|
105255
105279
|
var solutionStatistics_1 = [];
|
|
105280
|
+
solutionStatistics_1.push({ name: "Projects", value: ts.getBuildOrderFromAnyBuildOrder(builder.getBuildOrder()).length, type: StatisticType.count });
|
|
105281
|
+
ts.solutionPerformance.forEachCount(function (name, count) { return solutionStatistics_1.push({ name: name, value: count, type: StatisticType.count }); });
|
|
105256
105282
|
ts.solutionPerformance.forEachMeasure(function (name, duration) { return solutionStatistics_1.push({ name: name + " time", value: duration, type: StatisticType.time }); });
|
|
105257
|
-
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 });
|
|
105258
105283
|
buildHost.statistics = ts.append(buildHost.statistics, solutionStatistics_1);
|
|
105259
105284
|
ts.solutionPerformance.disable();
|
|
105260
105285
|
ts.solutionPerformance.enable();
|
|
105261
105286
|
}
|
|
105287
|
+
else {
|
|
105288
|
+
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");
|
|
105289
|
+
}
|
|
105262
105290
|
if (!buildHost.statistics)
|
|
105263
105291
|
return;
|
|
105264
105292
|
var statistics = [];
|
|
@@ -105387,14 +105415,14 @@ var ts;
|
|
|
105387
105415
|
updateWatchCompilationHost(system, cb, watchCompilerHost);
|
|
105388
105416
|
return ts.createWatchProgram(watchCompilerHost);
|
|
105389
105417
|
}
|
|
105390
|
-
function
|
|
105391
|
-
return system === ts.sys && (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics);
|
|
105418
|
+
function canGenerateStatistics(system, compilerOptions) {
|
|
105419
|
+
return system === ts.sys && (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics);
|
|
105392
105420
|
}
|
|
105393
105421
|
function canTrace(system, compilerOptions) {
|
|
105394
105422
|
return system === ts.sys && compilerOptions.generateTrace;
|
|
105395
105423
|
}
|
|
105396
105424
|
function enableStatisticsAndTracing(system, compilerOptions, isBuildMode) {
|
|
105397
|
-
if (
|
|
105425
|
+
if (canGenerateStatistics(system, compilerOptions)) {
|
|
105398
105426
|
ts.performance.enable(system);
|
|
105399
105427
|
}
|
|
105400
105428
|
if (canTrace(system, compilerOptions)) {
|
|
@@ -105412,14 +105440,14 @@ var ts;
|
|
|
105412
105440
|
ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.stopTracing();
|
|
105413
105441
|
}
|
|
105414
105442
|
var statistics;
|
|
105415
|
-
if (
|
|
105443
|
+
if (canGenerateStatistics(sys, compilerOptions)) {
|
|
105416
105444
|
statistics = [];
|
|
105417
105445
|
var memoryUsed = sys.getMemoryUsage ? sys.getMemoryUsage() : -1;
|
|
105418
105446
|
if (program) {
|
|
105419
105447
|
reportCountStatistic("Files", program.getSourceFiles().length);
|
|
105420
105448
|
var lineCounts = countLines(program);
|
|
105421
105449
|
var nodeCounts = countNodes(program);
|
|
105422
|
-
if (compilerOptions.extendedDiagnostics) {
|
|
105450
|
+
if (compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics) {
|
|
105423
105451
|
for (var _i = 0, _a = ts.arrayFrom(lineCounts.keys()); _i < _a.length; _i++) {
|
|
105424
105452
|
var key = _a[_i];
|
|
105425
105453
|
reportCountStatistic("Lines of " + key, lineCounts.get(key));
|
|
@@ -105446,7 +105474,7 @@ var ts;
|
|
|
105446
105474
|
var bindTime = isPerformanceEnabled ? ts.performance.getDuration("Bind") : 0;
|
|
105447
105475
|
var checkTime = isPerformanceEnabled ? ts.performance.getDuration("Check") : 0;
|
|
105448
105476
|
var emitTime = isPerformanceEnabled ? ts.performance.getDuration("Emit") : 0;
|
|
105449
|
-
if (compilerOptions.extendedDiagnostics) {
|
|
105477
|
+
if (compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics) {
|
|
105450
105478
|
if (program) {
|
|
105451
105479
|
var caches = program.getRelationCacheSizes();
|
|
105452
105480
|
reportCountStatistic("Assignability cache size", caches.assignable);
|
|
@@ -105469,9 +105497,10 @@ var ts;
|
|
|
105469
105497
|
if (isPerformanceEnabled) {
|
|
105470
105498
|
reportTimeStatistic("Total time", programTime + bindTime + checkTime + emitTime);
|
|
105471
105499
|
}
|
|
105472
|
-
|
|
105500
|
+
if (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics)
|
|
105501
|
+
reportAllStatistics(sys, statistics);
|
|
105473
105502
|
if (!isPerformanceEnabled) {
|
|
105474
|
-
sys.write(ts.Diagnostics.
|
|
105503
|
+
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");
|
|
105475
105504
|
}
|
|
105476
105505
|
else {
|
|
105477
105506
|
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
|
*/
|
|
@@ -9362,7 +9373,7 @@ var ts;
|
|
|
9362
9373
|
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"),
|
|
9363
9374
|
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."),
|
|
9364
9375
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9365
|
-
|
|
9376
|
+
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."),
|
|
9366
9377
|
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),
|
|
9367
9378
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9368
9379
|
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."),
|
|
@@ -9498,6 +9509,7 @@ var ts;
|
|
|
9498
9509
|
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."),
|
|
9499
9510
|
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."),
|
|
9500
9511
|
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."),
|
|
9512
|
+
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."),
|
|
9501
9513
|
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'."),
|
|
9502
9514
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9503
9515
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40341,7 +40353,14 @@ var ts;
|
|
|
40341
40353
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40342
40354
|
type: "boolean",
|
|
40343
40355
|
defaultValueDescription: false,
|
|
40344
|
-
}
|
|
40356
|
+
},
|
|
40357
|
+
{
|
|
40358
|
+
name: "solutionDiagnostics",
|
|
40359
|
+
type: "boolean",
|
|
40360
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40361
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40362
|
+
defaultValueDescription: false,
|
|
40363
|
+
},
|
|
40345
40364
|
];
|
|
40346
40365
|
/* @internal */
|
|
40347
40366
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110467,7 +110486,7 @@ var ts;
|
|
|
110467
110486
|
sourceMap: compilerOptions.sourceMap,
|
|
110468
110487
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110469
110488
|
inlineSources: compilerOptions.inlineSources,
|
|
110470
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110489
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110471
110490
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110472
110491
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110473
110492
|
};
|
|
@@ -110519,7 +110538,7 @@ var ts;
|
|
|
110519
110538
|
target: compilerOptions.target,
|
|
110520
110539
|
sourceMap: compilerOptions.sourceMap,
|
|
110521
110540
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110522
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110541
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110523
110542
|
onlyPrintJsDocStyle: true,
|
|
110524
110543
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110525
110544
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110541,7 +110560,7 @@ var ts;
|
|
|
110541
110560
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110542
110561
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110543
110562
|
mapRoot: compilerOptions.mapRoot,
|
|
110544
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110563
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110545
110564
|
// Explicitly do not passthru either `inline` option
|
|
110546
110565
|
});
|
|
110547
110566
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -122909,6 +122928,7 @@ var ts;
|
|
|
122909
122928
|
if (system.clearScreen &&
|
|
122910
122929
|
!options.preserveWatchOutput &&
|
|
122911
122930
|
!options.extendedDiagnostics &&
|
|
122931
|
+
!options.solutionDiagnostics &&
|
|
122912
122932
|
!options.diagnostics &&
|
|
122913
122933
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
122914
122934
|
system.clearScreen();
|
|
@@ -124363,6 +124383,8 @@ var ts;
|
|
|
124363
124383
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124364
124384
|
result[option.name] = buildOptions[option.name];
|
|
124365
124385
|
});
|
|
124386
|
+
if (buildOptions.solutionDiagnostics)
|
|
124387
|
+
result.solutionDiagnostics = true;
|
|
124366
124388
|
return result;
|
|
124367
124389
|
}
|
|
124368
124390
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125744,6 +125766,13 @@ var ts;
|
|
|
125744
125766
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125745
125767
|
}
|
|
125746
125768
|
function clean(state, project, onlyReferences) {
|
|
125769
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125770
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125771
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125772
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125773
|
+
return result;
|
|
125774
|
+
}
|
|
125775
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125747
125776
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125748
125777
|
if (!buildOrder)
|
|
125749
125778
|
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
|
*/
|
|
@@ -9556,7 +9567,7 @@ var ts;
|
|
|
9556
9567
|
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"),
|
|
9557
9568
|
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."),
|
|
9558
9569
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9559
|
-
|
|
9570
|
+
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."),
|
|
9560
9571
|
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),
|
|
9561
9572
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9562
9573
|
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."),
|
|
@@ -9692,6 +9703,7 @@ var ts;
|
|
|
9692
9703
|
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."),
|
|
9693
9704
|
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."),
|
|
9694
9705
|
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."),
|
|
9706
|
+
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."),
|
|
9695
9707
|
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'."),
|
|
9696
9708
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9697
9709
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40535,7 +40547,14 @@ var ts;
|
|
|
40535
40547
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40536
40548
|
type: "boolean",
|
|
40537
40549
|
defaultValueDescription: false,
|
|
40538
|
-
}
|
|
40550
|
+
},
|
|
40551
|
+
{
|
|
40552
|
+
name: "solutionDiagnostics",
|
|
40553
|
+
type: "boolean",
|
|
40554
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40555
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40556
|
+
defaultValueDescription: false,
|
|
40557
|
+
},
|
|
40539
40558
|
];
|
|
40540
40559
|
/* @internal */
|
|
40541
40560
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110661,7 +110680,7 @@ var ts;
|
|
|
110661
110680
|
sourceMap: compilerOptions.sourceMap,
|
|
110662
110681
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110663
110682
|
inlineSources: compilerOptions.inlineSources,
|
|
110664
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110683
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110665
110684
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110666
110685
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110667
110686
|
};
|
|
@@ -110713,7 +110732,7 @@ var ts;
|
|
|
110713
110732
|
target: compilerOptions.target,
|
|
110714
110733
|
sourceMap: compilerOptions.sourceMap,
|
|
110715
110734
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110716
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110735
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110717
110736
|
onlyPrintJsDocStyle: true,
|
|
110718
110737
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110719
110738
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110735,7 +110754,7 @@ var ts;
|
|
|
110735
110754
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110736
110755
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110737
110756
|
mapRoot: compilerOptions.mapRoot,
|
|
110738
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110757
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110739
110758
|
// Explicitly do not passthru either `inline` option
|
|
110740
110759
|
});
|
|
110741
110760
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -123103,6 +123122,7 @@ var ts;
|
|
|
123103
123122
|
if (system.clearScreen &&
|
|
123104
123123
|
!options.preserveWatchOutput &&
|
|
123105
123124
|
!options.extendedDiagnostics &&
|
|
123125
|
+
!options.solutionDiagnostics &&
|
|
123106
123126
|
!options.diagnostics &&
|
|
123107
123127
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
123108
123128
|
system.clearScreen();
|
|
@@ -124557,6 +124577,8 @@ var ts;
|
|
|
124557
124577
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124558
124578
|
result[option.name] = buildOptions[option.name];
|
|
124559
124579
|
});
|
|
124580
|
+
if (buildOptions.solutionDiagnostics)
|
|
124581
|
+
result.solutionDiagnostics = true;
|
|
124560
124582
|
return result;
|
|
124561
124583
|
}
|
|
124562
124584
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125938,6 +125960,13 @@ var ts;
|
|
|
125938
125960
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125939
125961
|
}
|
|
125940
125962
|
function clean(state, project, onlyReferences) {
|
|
125963
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125964
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125965
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125966
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125967
|
+
return result;
|
|
125968
|
+
}
|
|
125969
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125941
125970
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125942
125971
|
if (!buildOrder)
|
|
125943
125972
|
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
|
*/
|
|
@@ -9556,7 +9567,7 @@ var ts;
|
|
|
9556
9567
|
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"),
|
|
9557
9568
|
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."),
|
|
9558
9569
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9559
|
-
|
|
9570
|
+
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."),
|
|
9560
9571
|
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),
|
|
9561
9572
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9562
9573
|
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."),
|
|
@@ -9692,6 +9703,7 @@ var ts;
|
|
|
9692
9703
|
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."),
|
|
9693
9704
|
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."),
|
|
9694
9705
|
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."),
|
|
9706
|
+
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."),
|
|
9695
9707
|
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'."),
|
|
9696
9708
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9697
9709
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40535,7 +40547,14 @@ var ts;
|
|
|
40535
40547
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40536
40548
|
type: "boolean",
|
|
40537
40549
|
defaultValueDescription: false,
|
|
40538
|
-
}
|
|
40550
|
+
},
|
|
40551
|
+
{
|
|
40552
|
+
name: "solutionDiagnostics",
|
|
40553
|
+
type: "boolean",
|
|
40554
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40555
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40556
|
+
defaultValueDescription: false,
|
|
40557
|
+
},
|
|
40539
40558
|
];
|
|
40540
40559
|
/* @internal */
|
|
40541
40560
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110661,7 +110680,7 @@ var ts;
|
|
|
110661
110680
|
sourceMap: compilerOptions.sourceMap,
|
|
110662
110681
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110663
110682
|
inlineSources: compilerOptions.inlineSources,
|
|
110664
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110683
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110665
110684
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110666
110685
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110667
110686
|
};
|
|
@@ -110713,7 +110732,7 @@ var ts;
|
|
|
110713
110732
|
target: compilerOptions.target,
|
|
110714
110733
|
sourceMap: compilerOptions.sourceMap,
|
|
110715
110734
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110716
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110735
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110717
110736
|
onlyPrintJsDocStyle: true,
|
|
110718
110737
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110719
110738
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110735,7 +110754,7 @@ var ts;
|
|
|
110735
110754
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110736
110755
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110737
110756
|
mapRoot: compilerOptions.mapRoot,
|
|
110738
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110757
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110739
110758
|
// Explicitly do not passthru either `inline` option
|
|
110740
110759
|
});
|
|
110741
110760
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -123103,6 +123122,7 @@ var ts;
|
|
|
123103
123122
|
if (system.clearScreen &&
|
|
123104
123123
|
!options.preserveWatchOutput &&
|
|
123105
123124
|
!options.extendedDiagnostics &&
|
|
123125
|
+
!options.solutionDiagnostics &&
|
|
123106
123126
|
!options.diagnostics &&
|
|
123107
123127
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
123108
123128
|
system.clearScreen();
|
|
@@ -124557,6 +124577,8 @@ var ts;
|
|
|
124557
124577
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124558
124578
|
result[option.name] = buildOptions[option.name];
|
|
124559
124579
|
});
|
|
124580
|
+
if (buildOptions.solutionDiagnostics)
|
|
124581
|
+
result.solutionDiagnostics = true;
|
|
124560
124582
|
return result;
|
|
124561
124583
|
}
|
|
124562
124584
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125938,6 +125960,13 @@ var ts;
|
|
|
125938
125960
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125939
125961
|
}
|
|
125940
125962
|
function clean(state, project, onlyReferences) {
|
|
125963
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125964
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125965
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125966
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125967
|
+
return result;
|
|
125968
|
+
}
|
|
125969
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125941
125970
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125942
125971
|
if (!buildOrder)
|
|
125943
125972
|
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
|
*/
|
|
@@ -9556,7 +9567,7 @@ var ts;
|
|
|
9556
9567
|
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"),
|
|
9557
9568
|
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."),
|
|
9558
9569
|
_0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, "_0_is_deprecated_6385", "'{0}' is deprecated.", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),
|
|
9559
|
-
|
|
9570
|
+
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."),
|
|
9560
9571
|
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),
|
|
9561
9572
|
Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, "Project_0_is_being_forcibly_rebuilt_6388", "Project '{0}' is being forcibly rebuilt"),
|
|
9562
9573
|
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."),
|
|
@@ -9692,6 +9703,7 @@ var ts;
|
|
|
9692
9703
|
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."),
|
|
9693
9704
|
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."),
|
|
9694
9705
|
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."),
|
|
9706
|
+
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."),
|
|
9695
9707
|
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'."),
|
|
9696
9708
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9697
9709
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40535,7 +40547,14 @@ var ts;
|
|
|
40535
40547
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40536
40548
|
type: "boolean",
|
|
40537
40549
|
defaultValueDescription: false,
|
|
40538
|
-
}
|
|
40550
|
+
},
|
|
40551
|
+
{
|
|
40552
|
+
name: "solutionDiagnostics",
|
|
40553
|
+
type: "boolean",
|
|
40554
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40555
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40556
|
+
defaultValueDescription: false,
|
|
40557
|
+
},
|
|
40539
40558
|
];
|
|
40540
40559
|
/* @internal */
|
|
40541
40560
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110661,7 +110680,7 @@ var ts;
|
|
|
110661
110680
|
sourceMap: compilerOptions.sourceMap,
|
|
110662
110681
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110663
110682
|
inlineSources: compilerOptions.inlineSources,
|
|
110664
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110683
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110665
110684
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110666
110685
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110667
110686
|
};
|
|
@@ -110713,7 +110732,7 @@ var ts;
|
|
|
110713
110732
|
target: compilerOptions.target,
|
|
110714
110733
|
sourceMap: compilerOptions.sourceMap,
|
|
110715
110734
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110716
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110735
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110717
110736
|
onlyPrintJsDocStyle: true,
|
|
110718
110737
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110719
110738
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110735,7 +110754,7 @@ var ts;
|
|
|
110735
110754
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110736
110755
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110737
110756
|
mapRoot: compilerOptions.mapRoot,
|
|
110738
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110757
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110739
110758
|
// Explicitly do not passthru either `inline` option
|
|
110740
110759
|
});
|
|
110741
110760
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -123103,6 +123122,7 @@ var ts;
|
|
|
123103
123122
|
if (system.clearScreen &&
|
|
123104
123123
|
!options.preserveWatchOutput &&
|
|
123105
123124
|
!options.extendedDiagnostics &&
|
|
123125
|
+
!options.solutionDiagnostics &&
|
|
123106
123126
|
!options.diagnostics &&
|
|
123107
123127
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
123108
123128
|
system.clearScreen();
|
|
@@ -124557,6 +124577,8 @@ var ts;
|
|
|
124557
124577
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124558
124578
|
result[option.name] = buildOptions[option.name];
|
|
124559
124579
|
});
|
|
124580
|
+
if (buildOptions.solutionDiagnostics)
|
|
124581
|
+
result.solutionDiagnostics = true;
|
|
124560
124582
|
return result;
|
|
124561
124583
|
}
|
|
124562
124584
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125938,6 +125960,13 @@ var ts;
|
|
|
125938
125960
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125939
125961
|
}
|
|
125940
125962
|
function clean(state, project, onlyReferences) {
|
|
125963
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125964
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125965
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125966
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125967
|
+
return result;
|
|
125968
|
+
}
|
|
125969
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125941
125970
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125942
125971
|
if (!buildOrder)
|
|
125943
125972
|
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
|
*/
|
|
@@ -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."),
|
|
@@ -9487,6 +9498,7 @@ var ts;
|
|
|
9487
9498
|
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."),
|
|
9488
9499
|
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."),
|
|
9489
9500
|
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."),
|
|
9501
|
+
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."),
|
|
9490
9502
|
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'."),
|
|
9491
9503
|
one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, "one_of_Colon_6900", "one of:"),
|
|
9492
9504
|
one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, "one_or_more_Colon_6901", "one or more:"),
|
|
@@ -40330,7 +40342,14 @@ var ts;
|
|
|
40330
40342
|
description: ts.Diagnostics.Delete_the_outputs_of_all_projects,
|
|
40331
40343
|
type: "boolean",
|
|
40332
40344
|
defaultValueDescription: false,
|
|
40333
|
-
}
|
|
40345
|
+
},
|
|
40346
|
+
{
|
|
40347
|
+
name: "solutionDiagnostics",
|
|
40348
|
+
type: "boolean",
|
|
40349
|
+
category: ts.Diagnostics.Compiler_Diagnostics,
|
|
40350
|
+
description: ts.Diagnostics.Output_more_detailed_solution_performance_information_after_building,
|
|
40351
|
+
defaultValueDescription: false,
|
|
40352
|
+
},
|
|
40334
40353
|
];
|
|
40335
40354
|
/* @internal */
|
|
40336
40355
|
ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);
|
|
@@ -110456,7 +110475,7 @@ var ts;
|
|
|
110456
110475
|
sourceMap: compilerOptions.sourceMap,
|
|
110457
110476
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110458
110477
|
inlineSources: compilerOptions.inlineSources,
|
|
110459
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110478
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110460
110479
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110461
110480
|
relativeToBuildInfo: relativeToBuildInfo
|
|
110462
110481
|
};
|
|
@@ -110508,7 +110527,7 @@ var ts;
|
|
|
110508
110527
|
target: compilerOptions.target,
|
|
110509
110528
|
sourceMap: compilerOptions.sourceMap,
|
|
110510
110529
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
110511
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110530
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110512
110531
|
onlyPrintJsDocStyle: true,
|
|
110513
110532
|
writeBundleFileInfo: !!bundleBuildInfo,
|
|
110514
110533
|
recordInternalSection: !!bundleBuildInfo,
|
|
@@ -110530,7 +110549,7 @@ var ts;
|
|
|
110530
110549
|
sourceMap: !forceDtsEmit && compilerOptions.declarationMap,
|
|
110531
110550
|
sourceRoot: compilerOptions.sourceRoot,
|
|
110532
110551
|
mapRoot: compilerOptions.mapRoot,
|
|
110533
|
-
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
110552
|
+
extendedDiagnostics: compilerOptions.extendedDiagnostics || compilerOptions.solutionDiagnostics,
|
|
110534
110553
|
// Explicitly do not passthru either `inline` option
|
|
110535
110554
|
});
|
|
110536
110555
|
if (forceDtsEmit && declarationTransform.transformed[0].kind === 305 /* SourceFile */) {
|
|
@@ -122898,6 +122917,7 @@ var ts;
|
|
|
122898
122917
|
if (system.clearScreen &&
|
|
122899
122918
|
!options.preserveWatchOutput &&
|
|
122900
122919
|
!options.extendedDiagnostics &&
|
|
122920
|
+
!options.solutionDiagnostics &&
|
|
122901
122921
|
!options.diagnostics &&
|
|
122902
122922
|
ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {
|
|
122903
122923
|
system.clearScreen();
|
|
@@ -124352,6 +124372,8 @@ var ts;
|
|
|
124352
124372
|
if (ts.hasProperty(buildOptions, option.name))
|
|
124353
124373
|
result[option.name] = buildOptions[option.name];
|
|
124354
124374
|
});
|
|
124375
|
+
if (buildOptions.solutionDiagnostics)
|
|
124376
|
+
result.solutionDiagnostics = true;
|
|
124355
124377
|
return result;
|
|
124356
124378
|
}
|
|
124357
124379
|
function createSolutionBuilder(host, rootNames, defaultOptions) {
|
|
@@ -125733,6 +125755,13 @@ var ts;
|
|
|
125733
125755
|
: ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;
|
|
125734
125756
|
}
|
|
125735
125757
|
function clean(state, project, onlyReferences) {
|
|
125758
|
+
ts.solutionPerformance.mark("beforeClean");
|
|
125759
|
+
var result = cleanWorker(state, project, onlyReferences);
|
|
125760
|
+
ts.solutionPerformance.mark("afterClean");
|
|
125761
|
+
ts.solutionPerformance.measure("Clean", "beforeClean", "afterClean");
|
|
125762
|
+
return result;
|
|
125763
|
+
}
|
|
125764
|
+
function cleanWorker(state, project, onlyReferences) {
|
|
125736
125765
|
var buildOrder = getBuildOrderFor(state, project, onlyReferences);
|
|
125737
125766
|
if (!buildOrder)
|
|
125738
125767
|
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-48784-
|
|
5
|
+
"version": "4.8.0-pr-48784-20",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|