22//@Filename : file.tsx
33////interface NestedInterface {
44//// Foo: NestedInterface;
5- //// (props: {className?: string}): any;
5+ //// (props: {className?: string, onClick?: () => void }): any;
66//// }
77////
88////declare const Foo: NestedInterface;
5252////function fn11() {
5353//// return <Foo something cla/*11*/ />
5454//// }
55+ ////function fn12() {
56+ //// return <Foo something={false} cla/*12*/ />
57+ //// }
58+ ////function fn13() {
59+ //// return <Foo something={false} /*13*/ foo />
60+ //// }
61+ ////function fn14() {
62+ //// return <Foo something={false} cla/*14*/ foo />
63+ //// }
64+ ////function fn15() {
65+ //// return <Foo onC/*15*/="" />
66+ //// }
67+ ////function fn16() {
68+ //// return <Foo something={false} onC/*16*/="" foo />
69+ //// }
5570
5671var preferences : FourSlashInterface . UserPreferences = {
5772 jsxAttributeCompletionStyle : "braces" ,
5873 includeCompletionsWithSnippetText : true ,
5974 includeCompletionsWithInsertText : true ,
60- } ;
75+ } ;
6176
6277verify . completions (
6378 { marker : "1" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
@@ -71,4 +86,9 @@ verify.completions(
7186 { marker : "9" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
7287 { marker : "10" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
7388 { marker : "11" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
89+ { marker : "12" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
90+ { marker : "13" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
91+ { marker : "14" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
92+ { marker : "15" , preferences, includes : { name : "onClick" , insertText : undefined , text : "(property) onClick?: () => void" , isSnippet : undefined , sortText : completion . SortText . OptionalMember } } ,
93+ { marker : "16" , preferences, includes : { name : "onClick" , insertText : undefined , text : "(property) onClick?: () => void" , isSnippet : undefined , sortText : completion . SortText . OptionalMember } } ,
7494)
0 commit comments