mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Fix playground Quick Fix
action (#7824)
## Summary This PR fixes the playground code action to start working again. It seems that the field name was changed from `edit` to `textEdit` in some version. Resources: - https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.IWorkspaceTextEdit.html - https://stackoverflow.com/a/71742764 ## Test Plan Tested it out running locally.
This commit is contained in:
parent
76fcf63052
commit
adb6580270
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ export default function SourceEditor({
|
|||
edits: check.fix.edits.map((edit) => ({
|
||||
resource: model.uri,
|
||||
versionId: model.getVersionId(),
|
||||
edit: {
|
||||
textEdit: {
|
||||
range: {
|
||||
startLineNumber: edit.location.row,
|
||||
startColumn: edit.location.column,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue