Skip to content

Commit 814c5b2

Browse files
authored
fix: make editor not re-initialize when switching tabs (#698)
1 parent 1d4f6da commit 814c5b2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/workbench/editor/group.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ export function EditorGroup(props: IEditorGroupProps & IEditorController) {
120120
)
121121
) : (
122122
<MonacoEditor
123-
key={tab?.id}
124123
options={{
125124
...editorOptions,
126125
value: tab?.data?.value,

0 commit comments

Comments
 (0)