[ty] Fix playground (#18986)

I renamed a field on a `Completion` struct in #18982, and it looks like
this caused the playground to fail to build:

4493173434

Maybe building that playground can be added to CI for pull requests?
This commit is contained in:
Andrew Gallant 2025-06-27 10:43:36 -04:00 committed by GitHub
parent 5f6b0ded21
commit efcb63fe3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,10 +207,10 @@ class PlaygroundServer
return {
suggestions: completions.map((completion, i) => ({
label: completion.label,
label: completion.name,
sortText: String(i).padStart(digitsLength, "0"),
kind: CompletionItemKind.Variable,
insertText: completion.label,
insertText: completion.name,
// TODO(micha): It's unclear why this field is required for monaco but not VS Code.
// and omitting it works just fine? The LSP doesn't expose this information right now
// which is why we go with undefined for now.