We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e12796 commit aa706d7Copy full SHA for aa706d7
src/services/codefixes/importFixes.ts
@@ -114,6 +114,7 @@ namespace ts.codefix {
114
registerCodeFix({
115
errorCodes: [
116
Diagnostics.Cannot_find_name_0.code,
117
+ Diagnostics.Cannot_find_namespace_0.code,
118
Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code
119
],
120
getCodeActions: (context: CodeFixContext) => {
tests/cases/fourslash/importNameCodeFixNewImportFile3.ts
@@ -0,0 +1,15 @@
1
+/// <reference path="fourslash.ts" />
2
+
3
+//// [|let t: XXX/*0*/.I;|]
4
5
+// @Filename: ./module.ts
6
+//// export module XXX {
7
+//// export interface I {
8
+//// }
9
10
11
+verify.importFixAtPosition([
12
+`import { XXX } from "./module";
13
14
+let t: XXX.I;`
15
+]);
0 commit comments