[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:

https://github.com/astral-sh/ruff/actions/runs/15928550050/job/44931734349

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
1 changed files with 2 additions and 2 deletions

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.