1
+ /// <reference path='fourslash.ts' />
2
+
3
+ // @Filename : /a.ts
4
+ ////export class A { }
5
+
6
+ // @Filename : /b.ts
7
+ /////*---------------------------------------------------------------------------------------------
8
+ //// * Copyright (c) Microsoft Corporation. All rights reserved.
9
+ //// * Licensed under the MIT License. See License.txt in the project root for license information.
10
+ //// *--------------------------------------------------------------------------------------------*/
11
+ ////
12
+ ////export class B extends A { }
13
+
14
+ // @Filename : /c.ts
15
+ /////*---------------------------------------------------------------------------------------------
16
+ //// * Copyright (c) Microsoft Corporation. All rights reserved.
17
+ //// * Licensed under the MIT License. See License.txt in the project root for license information.
18
+ //// *--------------------------------------------------------------------------------------------*/
19
+ ////
20
+ //// /// <reference types="node" />
21
+ //// /// <reference path="./a.ts" />
22
+ //// /// <amd-dependency path="./b.ts" />
23
+ ////export class C extends A { }
24
+
25
+ // @Filename : /d.ts
26
+ /////*---------------------------------------------------------------------------------------------
27
+ //// * Copyright (c) Microsoft Corporation. All rights reserved.
28
+ //// * Licensed under the MIT License. See License.txt in the project root for license information.
29
+ //// *--------------------------------------------------------------------------------------------*/
30
+ ////
31
+ //// /// <reference types="node" />
32
+ //// /// <reference path="./a.ts" />
33
+ //// /// <amd-dependency path="./b.ts" />
34
+ //// /**
35
+ //// * This is a comment intended to be attached to this interface
36
+ //// */
37
+ ////export class D extends A { }
38
+
39
+ goTo . file ( "/b.ts" ) ;
40
+ verify . codeFix ( {
41
+ description : ignoreInterpolations ( ts . Diagnostics . Import_0_from_module_1 ) ,
42
+ newFileContent :
43
+ `/*---------------------------------------------------------------------------------------------
44
+ * Copyright (c) Microsoft Corporation. All rights reserved.
45
+ * Licensed under the MIT License. See License.txt in the project root for license information.
46
+ *--------------------------------------------------------------------------------------------*/
47
+
48
+ import { A } from "./a";
49
+
50
+ export class B extends A { }` ,
51
+ } ) ;
52
+
53
+ goTo . file ( "/c.ts" ) ;
54
+ verify . codeFix ( {
55
+ description : ignoreInterpolations ( ts . Diagnostics . Import_0_from_module_1 ) ,
56
+ newFileContent :
57
+ `/*---------------------------------------------------------------------------------------------
58
+ * Copyright (c) Microsoft Corporation. All rights reserved.
59
+ * Licensed under the MIT License. See License.txt in the project root for license information.
60
+ *--------------------------------------------------------------------------------------------*/
61
+
62
+ /// <reference types="node" />
63
+ /// <reference path="./a.ts" />
64
+ /// <amd-dependency path="./b.ts" />
65
+
66
+ import { A } from "./a";
67
+
68
+ export class C extends A { }` ,
69
+ } ) ;
70
+
71
+ goTo . file ( "/d.ts" ) ;
72
+ verify . codeFix ( {
73
+ description : ignoreInterpolations ( ts . Diagnostics . Import_0_from_module_1 ) ,
74
+ newFileContent :
75
+ `/*---------------------------------------------------------------------------------------------
76
+ * Copyright (c) Microsoft Corporation. All rights reserved.
77
+ * Licensed under the MIT License. See License.txt in the project root for license information.
78
+ *--------------------------------------------------------------------------------------------*/
79
+
80
+ /// <reference types="node" />
81
+ /// <reference path="./a.ts" />
82
+ /// <amd-dependency path="./b.ts" />
83
+
84
+ import { A } from "./a";
85
+
86
+ /**
87
+ * This is a comment intended to be attached to this interface
88
+ */
89
+ export class D extends A { }` ,
90
+ } ) ;
0 commit comments