|
| 1 | +///<reference path="fourslash.ts" /> |
| 2 | + |
| 3 | +// @Filename: test0.ts |
| 4 | +//// type Test = 'test'; |
| 5 | +//// const test0: Test = `[|t/*0*/|]; // this comment should not be deleted |
| 6 | + |
| 7 | +// @Filename: test1.ts |
| 8 | +//// type Test = 'test'; |
| 9 | +//// const test1: Test = '[|t/*1*/|]; // this comment should not be deleted |
| 10 | + |
| 11 | +// @Filename: test2.ts |
| 12 | +//// type Test = 'test'; |
| 13 | +//// const test2: Test = "[|t/*2*/|] other stuff; // this comment should not be deleted |
| 14 | + |
| 15 | +// @Filename: test3.ts |
| 16 | +//// type Test = 'test'; |
| 17 | +//// const test3: Test = "[|t/*3*/|]es // this comment should not be deleted |
| 18 | + |
| 19 | +// @Filename: test4.ts |
| 20 | +//// type Test = 'test'; |
| 21 | +//// const test4: Test = "[|tes/*4*/|] // this comment should not be deleted |
| 22 | + |
| 23 | +// @Filename: file5.ts |
| 24 | +//// type Test = 'test'; |
| 25 | +//// const test5: {prop0: Test, prop1: number, prop2: number, } = { prop0: '[|t/*5*/|] ,prop1: 5, prop2: 2 }; |
| 26 | + |
| 27 | +// @Filename: file6.ts |
| 28 | +//// type Test = 'test'; |
| 29 | +//// const test6: {prop0: Test, prop1: number, prop2: number, } = { prop0: '[|t/*6*/|]es ,prop1: 5, prop2: 2 }; |
| 30 | + |
| 31 | +// @Filename: test7.ts |
| 32 | +//// type Test = 'test asdf'; |
| 33 | +//// const test7: Test = `[|test as/*7*/|]; // this comment should not be deleted |
| 34 | + |
| 35 | +// @Filename: test8.ts |
| 36 | +//// type Test = 'test asdf'; |
| 37 | +//// const test8: Test = `[|test/*8*/|] as; // this comment should not be deleted |
| 38 | + |
| 39 | +const markers = test.markers(); |
| 40 | +const ranges = test.ranges(); |
| 41 | + |
| 42 | +for (let i = 0; i < markers.length; i++) { |
| 43 | + verify.completions({ |
| 44 | + marker: markers[i], |
| 45 | + includes: [{ |
| 46 | + "name": "test", |
| 47 | + "kind": "string", |
| 48 | + "kindModifiers": "", |
| 49 | + "replacementSpan": ranges[i], |
| 50 | + }], |
| 51 | + }); |
| 52 | +} |
0 commit comments