Skip to content

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Sep 12, 2025

Description

Open the selected file for edit when vscode is applying diffs.

closes #5768

resolves CON-2026

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

before.mp4
after.mp4

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Ensures the selected file is opened and focused before applying vertical diff edits in VS Code, so changes always land in the correct editor. Closes #5768 and resolves CON-2026.

  • Bug Fixes
    • Focuses the target file before any vertical diff operation (apply, insert, delete).
    • Reuses a visible editor when available or opens the document if needed.
    • Prevents edits from applying to the wrong file when users switch tabs.

@uinstinct uinstinct requested a review from a team as a code owner September 12, 2025 12:25
@uinstinct uinstinct requested review from tomasz-stefaniak and removed request for a team September 12, 2025 12:25
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 12, 2025
@TyDunn TyDunn requested review from Patrick-Erichsen and removed request for tomasz-stefaniak September 16, 2025 19:05
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 16, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 16, 2025
@Patrick-Erichsen Patrick-Erichsen merged commit 5f61d18 into continuedev:main Sep 16, 2025
86 of 89 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Sep 16, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2025
@uinstinct uinstinct deleted the edit-tool-focus branch September 17, 2025 02:14
@sestinj
Copy link
Contributor

sestinj commented Sep 17, 2025

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor

sestinj commented Sep 17, 2025

🎉 This PR is included in version 1.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor

sestinj commented Sep 17, 2025

🎉 This PR is included in version 1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer released size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

The wrong file is edited if the active file is different from the Edit file directive
3 participants