Skip to content

Commit 1786d5e

Browse files
committed
Add more tests of text before and after
1 parent 191aa68 commit 1786d5e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: tests/cases/fourslash/jsxAttributeAsTagNameNoSnippet.ts

+33
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
//// <butto/*1*/
1212
//// </>;
1313
////}
14+
////function fn2() {
15+
//// return <>
16+
//// preceding junk <butto/*2*/
17+
//// </>;
18+
////}
19+
////function fn3() {
20+
//// return <>
21+
//// <butto/*3*/ style=""
22+
//// </>;
23+
////}
24+
1425

1526

1627
verify.completions(
@@ -25,4 +36,26 @@ verify.completions(
2536
includeCompletionsWithInsertText: true,
2637
}
2738
},
39+
{
40+
marker: "2",
41+
includes: [
42+
{ name: "button", insertText: undefined, isSnippet: undefined }
43+
],
44+
preferences: {
45+
jsxAttributeCompletionStyle: "braces",
46+
includeCompletionsWithSnippetText: true,
47+
includeCompletionsWithInsertText: true,
48+
}
49+
},
50+
{
51+
marker: "3",
52+
includes: [
53+
{ name: "button", insertText: undefined, isSnippet: undefined }
54+
],
55+
preferences: {
56+
jsxAttributeCompletionStyle: "braces",
57+
includeCompletionsWithSnippetText: true,
58+
includeCompletionsWithInsertText: true,
59+
}
60+
},
2861
);

0 commit comments

Comments
 (0)