mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[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:
parent
5f6b0ded21
commit
efcb63fe3a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue