Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0990c31
commit 58ddd9e
Showing
3 changed files
with
96 additions
and
0 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
38 changes: 38 additions & 0 deletions
38
tests/cases/fourslash/jsxTagNameDottedAttributeSnippetClosed.ts
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,38 @@ | ||
/// <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> | ||
////} | ||
////function fn3() { | ||
//// return <Foo> | ||
//// <Foo.Foo cla/*3*/ /> | ||
//// </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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/// <reference path="fourslash.ts" /> | ||
//@Filename: file.tsx | ||
////interface NestedInterface { | ||
//// Foo: NestedInterface; | ||
//// (props: {}): any; | ||
////} | ||
//// | ||
////declare const Foo: NestedInterface; | ||
//// | ||
////function fn1() { | ||
//// return <Foo> | ||
//// </*1*/ /> | ||
//// </Foo> | ||
////} | ||
////function fn2() { | ||
//// return <Foo> | ||
//// <Fo/*2*/ /> | ||
//// </Foo> | ||
////} | ||
////function fn3() { | ||
//// return <Foo> | ||
//// <Foo./*3*/ /> | ||
//// </Foo> | ||
////} | ||
////function fn4() { | ||
//// return <Foo> | ||
//// <Foo.F/*4*/ /> | ||
//// </Foo> | ||
////} | ||
////function fn5() { | ||
//// return <Foo> | ||
//// <Foo.Foo./*5*/ /> | ||
//// </Foo> | ||
////} | ||
////function fn6() { | ||
//// return <Foo> | ||
//// <Foo.Foo.F/*6*/ /> | ||
//// </Foo> | ||
////} | ||
|
||
verify.completions( | ||
{ | ||
marker: test.markers(), | ||
includes: [ | ||
{ name: "Foo", insertText: undefined, isSnippet: undefined } | ||
], | ||
preferences: { | ||
jsxAttributeCompletionStyle: "braces", | ||
includeCompletionsWithSnippetText: true, | ||
includeCompletionsWithInsertText: true, | ||
}, | ||
} | ||
) |