Skip to content

Changed get_project_dir to be more consistent / intuitive#922

Open
bmingles wants to merge 1 commit intogodotengine:masterfrom
bmingles:921-get-project-dir-more-deterministic
Open

Changed get_project_dir to be more consistent / intuitive#922
bmingles wants to merge 1 commit intogodotengine:masterfrom
bmingles:921-get-project-dir-more-deterministic

Conversation

@bmingles
Copy link

@bmingles bmingles commented Sep 14, 2025

I updated the logic in get_project_dir to be more predictable.

  • Projects now search in workspace folder order to ensure multi-root workspaces select first project instead of shortest path
  • File tree depth is now considered as part of checking "top-most" / "best" file within a particular workspace. This ensures that project files at same depth use the first project and not one with shortest parent folder path

resolves #921

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.

The "first" godot.project file that gets picked by the extension is not always intuitive

1 participant