Skip to content

Commit a395216

Browse files
committed
feat(editor): support dragging files
1 parent f0761ba commit a395216

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

addons/editor/src/renderer/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ export default () => {
3535
openCodeEditorTab(file)
3636
})
3737

38+
commas.context.handle('global-renderer:add-file', (file) => {
39+
openCodeEditorTab(file)
40+
})
41+
3842
}

0 commit comments

Comments
 (0)