Merge pull request #13405 from zhengbli/13137

Support import fix for missing namespace
This commit is contained in:
Zhengbo Li
2017-02-02 16:11:08 -08:00
committed by GitHub
3 changed files with 32 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ namespace ts.codefix {
registerCodeFix({
errorCodes: [
Diagnostics.Cannot_find_name_0.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
],
getCodeActions: (context: CodeFixContext) => {