Uh oh!
There was an error while loading. Please reload this page.
Fix completions of optional properties in generic positions - #33937
Conversation
Tim Suchanek (timsuchanek)
commented
Oct 14, 2019
Awesome! Would be great to see this merged! |
Nathan Shively-Sanders (sandersn)
left a comment
There was a problem hiding this comment.
One test idea plus some nits.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Avi Vahl (AviVahl)
commented
Oct 16, 2019
Andrew Branch (@andrewbranch) this also fixes #28470 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Andrew Branch (andrewbranch)
commented
Oct 16, 2019
Ugh, committing PR review suggestions from GitHub UI doesn’t work in checker.ts 😑 |
🎉 |
Tim Suchanek (timsuchanek)
commented
Oct 18, 2019
Very excited to see this merged 🙏 This example should now work in VSCode and show interfaceMyOptions{hello?: booleanworld?: boolean}declarefunctionbar<TextendsMyOptions>(options?: Partial<T>): voidbar({hello: true,/* cursor */})Andrew Branch (@andrewbranch) can you confirm that this example is now working for you? |
I added a small PR to add exactly that test case, as it's important for us at Prisma that this one works. |
Andrew Branch (andrewbranch)
commented
Oct 18, 2019
Tim Suchanek (@timsuchanek) yep, that example works in VS Code for me:
If you’re building the source from master, you want to set the path to |
Tim Suchanek (timsuchanek)
commented
Oct 18, 2019
Awesome. I didn't know about the |

Builds on #32100
Fixes#30507
Fixes#28470
Notable changes from #32100:
you get completions for both
xanda. Thanks to Daniel Rosenwasser (@DanielRosenwasser) for that suggestion.