-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorHelp WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Description
π Search Terms
completion generic object properties separator newline
π Version & Regression Information
Same in TS 3.3
β― Playground Link
π» Code
type Foo<T extends { bar: string, baz: string }> = T
type Foo1 = Foo<{
bar: string
// start typing baz - no completion
}>
π Actual behavior
No completion is shown for the baz
property if the previous line (bar: string
) is not terminated with a comma or semicolon
π Expected behavior
Completion should work even when the object members are separated by newlines only, without requiring a comma or semicolon
Additional information about the issue
Prettier formats object types with newlines
Metadata
Metadata
Assignees
Labels
Domain: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorHelp WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases