Skip to content

Conversation

@tarikutk
Copy link
Collaborator

Summary:

  1. it opens previously opened files when dragging and dropping a file or a folder.
  2. it prevents VSCode from opening a folder as a file when moving a folder from one folder to another folder. it instead opens the file that was opened in that folder

Testing:
verified it opens previously opened files instead of opening a folder as a file.

@tarikutk tarikutk changed the title fix: opens closed file not the folder in drag/drop fix: reopens files that were opened when dragging and dropping files or folders Nov 19, 2025
…or folders

Signed-off-by: tariku <tarikutadese24@gmail.com>
@tarikutk tarikutk marked this pull request as ready for review November 20, 2025 04:03
Copilot finished reviewing on behalf of tarikutk November 20, 2025 14:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes file reopening behavior when dragging and dropping files or folders in the Content Navigator. It ensures that previously opened files are reopened at their new locations after a move operation, and prevents VSCode from incorrectly opening folders as files.

Key Changes:

  • Modified the moveTo handling logic to track closed files as an array instead of a boolean
  • Added a new calculateNewFileUri method to compute new URIs for files that were moved
  • Implemented logic to reopen all previously opened files after a successful move operation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@2TomLi 2TomLi requested a review from kpatl1 November 20, 2025 14:58
Signed-off-by: tariku <tarikutadese24@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant