Skip to content

Commit

Permalink
fix for codemirror
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ye committed Jun 18, 2024
1 parent ed8574a commit 8fa85f6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sweep_chat/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,13 @@ function App({
readOnly={true}
extensions={[
EditorView.editable.of(false),
EditorState.readOnly.of(true),
languageMapping[suggestion.filePath.split(".")[suggestion.filePath.split(".").length - 1]]
]}
/>
<Modified
value={suggestion.newCode}
readOnly={suggestion.state != "done"}
extensions={[
EditorState.readOnly.of(false),
languageMapping[suggestion.filePath.split(".")[suggestion.filePath.split(".").length - 1]]
]}
onChange={debounce((value: string) => {
Expand Down

0 comments on commit 8fa85f6

Please sign in to comment.