Support import fix even when the error is that a type is used as a value (#23655)

This commit is contained in:
Andy
2018-04-24 08:54:14 -07:00
committed by GitHub
parent b1baca565b
commit eca17ac243
2 changed files with 16 additions and 1 deletions

View File

@@ -7,7 +7,8 @@ namespace ts.codefix {
Diagnostics.Cannot_find_name_0.code,
Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,
Diagnostics.Cannot_find_namespace_0.code,
Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code
Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,
Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,
],
getCodeActions: getImportCodeActions,
// TODO: GH#20315