Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor test, add new (failing) test for dotted with a desirable sni…
…ppet completion
- Loading branch information
1 parent
f158365
commit 0990c31
Showing
2 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/// <reference path="fourslash.ts" /> | ||
//@Filename: file.tsx | ||
////interface NestedInterface { | ||
//// Foo: NestedInterface; | ||
//// (props: {className?: string}): any; | ||
////} | ||
//// | ||
////declare const Foo: NestedInterface; | ||
//// | ||
////function fn1() { | ||
//// return <Foo> | ||
//// <Foo /*1*/ | ||
//// </Foo> | ||
////} | ||
////function fn2() { | ||
//// return <Foo> | ||
//// <Foo.Foo /*2*/ | ||
//// </Foo> | ||
////} | ||
|
||
verify.completions( | ||
{ | ||
marker: test.markers(), | ||
includes: [ | ||
{ name: "className", insertText: 'className={$1}', isSnippet: true, sortText: completion.SortText.OptionalMember } | ||
], | ||
preferences: { | ||
jsxAttributeCompletionStyle: "braces", | ||
includeCompletionsWithSnippetText: true, | ||
includeCompletionsWithInsertText: true, | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters