|
11 | 11 | ////function a0(s: string) {}
|
12 | 12 | ////
|
13 | 13 |
|
| 14 | +/////**@/*2*/ */ |
| 15 | +////const some = 0; |
| 16 | +//// |
| 17 | + |
14 | 18 | verify.completions({ marker: "", includes: { name: "@property", text: "@property", kind: "keyword" } });
|
15 | 19 |
|
16 | 20 |
|
17 | 21 | //
|
18 | 22 | // test for src/services/completions.ts#getCompletionData.insideComment.hasDocComment (#37546)
|
19 | 23 | //
|
| 24 | +goTo.marker("2"); |
| 25 | +// line 1: [/**@|c|] |
| 26 | +// before the fix, jsdoc tag names was listed (but no longer appears |
| 27 | +// jsdoc tag names are still listed after the fix. |
| 28 | +// however this behavior does not by getCompletionData.insideComment.hasDocComment clause |
| 29 | +verify.completions({ |
| 30 | + triggerCharacter: "@", |
| 31 | + includes: ["abstract", "access"] |
| 32 | +}); |
| 33 | +// line 1: [/**@|c|] -> [/**|c|] |
| 34 | +// before the fix, jsdoc tags was listed but no longer appears |
| 35 | +edit.backspace(1); |
| 36 | +verify.completions({ |
| 37 | + exact: [] |
| 38 | +}); |
| 39 | + |
| 40 | +goTo.marker("1"); |
20 | 41 | // line 2: [ +|c|]
|
21 | 42 | verify.completions({
|
22 |
| - marker: "1", |
| 43 | + // marker: "1", |
23 | 44 | exact: []
|
24 | 45 | });
|
25 | 46 | // line 2: [ +|c|] -> [ +@|c|]
|
26 | 47 | // before the fix, jsdoc tag names was listed but no longer appears
|
27 | 48 | edit.insert("@");
|
28 | 49 | verify.completions({
|
29 |
| - marker: "1", |
| 50 | + // marker: "1", // marker is invalid |
| 51 | + triggerCharacter: "@", |
| 52 | + exact: [] |
| 53 | +}); |
| 54 | + |
| 55 | +// line 2: [ +@|c|] -> [ * ### jsdoc @|c|] |
| 56 | +// before the fix, jsdoc tag names was listed but no longer appears |
| 57 | +edit.replaceLine(1, " * ### jsdoc @"); |
| 58 | +verify.completions({ |
| 59 | + triggerCharacter: "@", |
30 | 60 | exact: []
|
31 | 61 | });
|
| 62 | + |
32 | 63 | // line 2: [ +@|c|] -> [ *|c|]
|
33 | 64 | // before the fix, jsdoc tags was listed but no longer appears
|
34 | 65 | edit.replaceLine(1, " *");
|
35 | 66 | verify.completions({
|
36 | 67 | exact: []
|
37 | 68 | });
|
| 69 | + |
38 | 70 | // line 2: [ *|c|] -> [ *@|c|]
|
39 |
| -// this behavior does not by getCompletionData.insideComment.hasDocComment section |
| 71 | +// this behavior does not by getCompletionData.insideComment.hasDocComment clause |
40 | 72 | edit.insert("@");
|
41 | 73 | verify.completions({
|
42 | 74 | triggerCharacter: "@",
|
|
0 commit comments