mirror of https://github.com/astral-sh/ruff
[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:
parent
5f6b0ded21
commit
efcb63fe3a
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue