Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ class EditorActivity : BaseComposeActivity() {
}

private fun initCommands() {
//CommandPaletteManager.instance.clear()
// Reset so Compose-registered commands (e.g. Open File with ActivityResultLauncher)
// from a previous activity instance cannot run after their launchers are unregistered.
CommandPaletteManager.instance.clear()
CommandPaletteManager.instance.addCommand(
newCommand("Paste", "Ctrl+V") {
if (currentEditor !is CodeEditorView) return@newCommand
Expand Down
Loading