Skip to content

Commit 16a825a

Browse files
committed
[ty] Fix playground
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?
1 parent 5f6b0de commit 16a825a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playground/ty/src/Editor/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ class PlaygroundServer
207207

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

0 commit comments

Comments
 (0)