// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual jsxAttributeSnippetCompletionClosed" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" "github.com/microsoft/typescript-go/internal/ls" "github.com/microsoft/typescript-go/internal/lsp/lsproto" "github.com/microsoft/typescript-go/internal/testutil" ) func TestJsxAttributeSnippetCompletionClosed(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: false //@Filename: file.tsx interface NestedInterface { Foo: NestedInterface; (props: {className?: string, onClick?: () => void}): any; } declare const Foo: NestedInterface; function fn1() { return } function fn2() { return } function fn3() { return } function fn4() { return } function fn5() { return } function fn6() { return } function fn7() { return } function fn8() { return } function fn9() { return } function fn10() { return } function fn11() { return } function fn12() { return } function fn13() { return } function fn14() { return } function fn15() { return } function fn16() { return }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.VerifyCompletions(t, "1", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "2", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "3", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "4", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "5", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "6", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "7", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "8", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "9", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "10", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "11", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "12", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "13", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "14", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "className?", InsertText: new("className={$1}"), FilterText: new("className"), Detail: new("(property) className?: string"), InsertTextFormat: new(lsproto.InsertTextFormatSnippet), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "15", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "onClick?", InsertText: new("onClick"), FilterText: new("onClick"), Detail: new("(property) onClick?: () => void"), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) f.VerifyCompletions(t, "16", &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Includes: []fourslash.CompletionsExpectedItem{ &lsproto.CompletionItem{ Label: "onClick?", InsertText: new("onClick"), FilterText: new("onClick"), Detail: new("(property) onClick?: () => void"), SortText: new(string(ls.SortTextOptionalMember)), }, }, }, }) }