Skip to content

fix: suppress "View not found" alert and update pane index on group removal#139

Merged
j4rviscmd merged 1 commit into
mainfrom
fix/terminal-kill-alert-fix
May 22, 2026
Merged

fix: suppress "View not found" alert and update pane index on group removal#139
j4rviscmd merged 1 commit into
mainfrom
fix/terminal-kill-alert-fix

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Guard removeGroup call with getGroup existence check in doCloseActiveEditor to prevent double-removal race condition when TerminalKillFocusRestoreController and VSCode's built-in closeEmptyGroups both try to remove the same group
  • Add onDidAddGroup/onDidRemoveGroup events to IEditorGroupsView interface so MultiEditorTabsControl can update the [N] pane index badge when groups are added or removed
  • Add Event.None stubs to TestEditorGroupAccessor for new interface events

Closes #22

Test plan

  • Open terminal in editor area, kill with ctrl+d — no "View not found" alert appears
  • With 3+ panes, kill middle terminal — remaining pane [N] badges update correctly
  • coderm.terminal.closeEmptyPaneOnKill: true + closeEditorsInGroup command — no error alert
  • Compile passes with 0 errors

🤖 Generated with Claude Code

…emoval

- Guard removeGroup call with existence check to prevent double-removal
  race condition when TerminalKillFocusRestoreController and VSCode's
  built-in closeEmptyGroups both try to remove the same group
- Add onDidAddGroup/onDidRemoveGroup events to IEditorGroupsView interface
  so MultiEditorTabsControl can update the [N] pane index badge when
  groups are added or removed
- Add Event.None stubs to TestEditorGroupAccessor for new interface events

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the bug Something isn't working label May 22, 2026
@j4rviscmd j4rviscmd merged commit 07227f7 into main May 22, 2026
3 checks passed
@j4rviscmd j4rviscmd deleted the fix/terminal-kill-alert-fix branch May 22, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ctrl+dでterminal in editorをkillしたら、フォーカスを残存paneに戻す

1 participant