Validated completions available for string props are not available for shallow strings #53997
Labels
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Bug Report
I encountered this bug while adding autocomplete support for ArkType. The goal is for completions to behave the same way whether they are parsed at an object key like
type({a: "string|"})
or via a shallow string definition liketype("string|")
.However, autocompletions for expressions like these unexpectedly fail for the shallow case despite succeeding when defined in an object.
🔎 Search Terms
completions, autocomplete, strings, expressions, parsing, arktype
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
The text was updated successfully, but these errors were encountered: