Skip to content

Conversation

@akerimsenol
Copy link
Contributor

@akerimsenol akerimsenol commented Dec 15, 2025

Note

Adjusts base directory removal to consult the workspace model URL index, only removing roots whose URLs are no longer referenced.

  • Project directories update logic (BaseProjectDirectoriesImpl.kt):
    • In updateTreeAndFireChanges, remove old roots from virtualFilesTree only if storageAfter.getVirtualFileUrlIndex().findEntitiesByUrl(it.toVirtualFileUrl(project.workspaceModel.getVirtualFileUrlManager())) returns empty.
    • Ensures base directory URLs are retained when still referenced in workspace storage.

Written by Cursor Bugbot for commit e7df492. This will update automatically on new commits. Configure here.

@ikorennoy
Copy link
Contributor

@akerimsenol, Hello, thank you for the PR. Could you please add a test to BaseProjectDirectoriesTest?

@nskvortsov
Copy link
Contributor

Please add test for this fix.

@nskvortsov nskvortsov assigned nskvortsov and unassigned ikorennoy Dec 16, 2025
@nskvortsov nskvortsov added the Waiting for Reply The author needs to provide additional details requested by IntelliJ IDEA developers label Dec 16, 2025
Change-Id: I31cf690cac4b2aaf302ad351cbac1e2e97a13f55
@akerimsenol akerimsenol force-pushed the fixBaseProjectDirectories branch from e7df492 to a9d7690 Compare December 18, 2025 08:12
@akerimsenol
Copy link
Contributor Author

Added a test case in BaseProjectDirectoriesTest, please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Waiting for Reply The author needs to provide additional details requested by IntelliJ IDEA developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants