Commit bdf21ac
authored
fix(quickopen): prevent crash by providing UndoManagerRegistration (#2124)
Fix crash in Open Quickly preview caused by missing
UndoManagerRegistration.
Root cause: OpenQuicklyPreviewView renders CodeFileView in a separate
view hierarchy without the environment object.
Fix: Provide UndoManagerRegistration for the preview (non-editable) path
so CodeFileView resolves it.
Reproduce: Open Quickly (CMD+SHIFT+O) -> select a text file ->
previously crashed.
Validation: No crash; normal editing unaffected.1 parent 05704cb commit bdf21ac
File tree
1 file changed
+3
-0
lines changed- CodeEdit/Features/OpenQuickly/Views
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
0 commit comments