add action for enabling experimentalDescorators option in user config… (#30484)

* add action for enabling experimentalDescorators option in user config file, change error message for this case #29035

* add missing changes in tests

* Add "experimental decorators" tests for jsconfig file
This commit is contained in:
amaksimovich2 authored and Ryan Cavanaugh committed 2019-04-25 14:55:04 -07:00
1 parent b8e3c41ee1
commit 5b79b942e8
14 files changed
+96 -14

No files matched your search

+1 -1
View File
@@ -1816,7 +1816,7 @@ namespace ts {
function walkArray(nodes: NodeArray<Node>) {
if (parent.decorators === nodes && !options.experimentalDecorators) {
diagnostics.push(createDiagnosticForNode(parent, Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning));
diagnostics.push(createDiagnosticForNode(parent, Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning));
}
switch (parent.kind) {