Autocomplete for string literal values fails when typing "/" #31304
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Fixed
A PR has been merged for this issue
Milestone
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: [email protected]
Search Terms: is:issue is:open slash in:title , autocomplete in:title , is:open label:"Domain: Completion Lists"
Code
Expected behavior:
The suggested options for
test()
should update as I type the string. It should not be interrupted when I type"/"
and it should not match all options when I type "one/" and press control space to trigger the auto completeActual behavior:
When I start typing "one" it will correctly list the three possible options
As soon as I type "one/" the autocomplete disappears
When I continue typing "one/two" all the options appear again, although only one of them should match
When I then select the
"one/two/three"
option, it adds the whole stringPlayground Link: playground
Related Issues: follow up to octokit/endpoint.js#23 (comment)
The text was updated successfully, but these errors were encountered: