From adb6580270da96876381e34d89736212f61a6d1d Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Thu, 5 Oct 2023 11:41:18 +0530 Subject: [PATCH] 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. --- playground/src/Editor/SourceEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/src/Editor/SourceEditor.tsx b/playground/src/Editor/SourceEditor.tsx index fc80574ad9..d22d1ce080 100644 --- a/playground/src/Editor/SourceEditor.tsx +++ b/playground/src/Editor/SourceEditor.tsx @@ -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,