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
fix(50224): Intellisense for strings within a type's Union doesn't wo…
…rk properly for JSX (#50231) * fix(50224): show string literal completions in JsxAttributeInitializer * add feedback changes
- Loading branch information
1 parent
6ee5db9
commit 44ce3cf
Showing
3 changed files
with
15 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
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
11 changes: 11 additions & 0 deletions
11
tests/cases/fourslash/stringLiteralCompletionsInJsxAttributeInitializer.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,11 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
// @jsx: preserve | ||
// @filename: /a.tsx | ||
////type Props = { a: number } | { b: "somethingelse" }; | ||
////declare function Foo(args: Props): any | ||
//// | ||
////const a1 = <Foo b={"/*1*/"} /> | ||
////const a2 = <Foo b="/*2*/" /> | ||
|
||
verify.completions({ marker: ["1", "2"], exact: ["somethingelse"] }); |