-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Component commits: 191aa68 Disable JSX attribute snippet if attribute is acutally the HTML tag 1786d5e Add more tests of text before and after 7ac5e59 Big comment Co-authored-by: Jake Bailey <[email protected]>
- Loading branch information
1 parent
002c79b
commit 1d4ec40
Showing
2 changed files
with
79 additions
and
1 deletion.
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
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,61 @@ | ||
/// <reference path="fourslash.ts" /> | ||
//@Filename: file.tsx | ||
////declare namespace JSX { | ||
//// interface IntrinsicElements { | ||
//// button: any; | ||
//// div: any; | ||
//// } | ||
////} | ||
////function fn() { | ||
//// return <> | ||
//// <butto/*1*/ | ||
//// </>; | ||
////} | ||
////function fn2() { | ||
//// return <> | ||
//// preceding junk <butto/*2*/ | ||
//// </>; | ||
////} | ||
////function fn3() { | ||
//// return <> | ||
//// <butto/*3*/ style="" | ||
//// </>; | ||
////} | ||
|
||
|
||
|
||
verify.completions( | ||
{ | ||
marker: "1", | ||
includes: [ | ||
{ name: "button", insertText: undefined, isSnippet: undefined } | ||
], | ||
preferences: { | ||
jsxAttributeCompletionStyle: "braces", | ||
includeCompletionsWithSnippetText: true, | ||
includeCompletionsWithInsertText: true, | ||
} | ||
}, | ||
{ | ||
marker: "2", | ||
includes: [ | ||
{ name: "button", insertText: undefined, isSnippet: undefined } | ||
], | ||
preferences: { | ||
jsxAttributeCompletionStyle: "braces", | ||
includeCompletionsWithSnippetText: true, | ||
includeCompletionsWithInsertText: true, | ||
} | ||
}, | ||
{ | ||
marker: "3", | ||
includes: [ | ||
{ name: "button", insertText: undefined, isSnippet: undefined } | ||
], | ||
preferences: { | ||
jsxAttributeCompletionStyle: "braces", | ||
includeCompletionsWithSnippetText: true, | ||
includeCompletionsWithInsertText: true, | ||
} | ||
}, | ||
); |