Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a config setting to explicitly specify project file/dir #652

Open
ogapo opened this issue Apr 25, 2024 · 0 comments
Open

Need a config setting to explicitly specify project file/dir #652

ogapo opened this issue Apr 25, 2024 · 0 comments

Comments

@ogapo
Copy link

ogapo commented Apr 25, 2024

Godot version

4.2.1

VS Code version

1.88.1

Godot Tools VS Code extension version

2.0.0

System information

MacOS Sonoma 14.1.1

Problem statement

Currently, if the workspace contains multiple project files GodotTools attempts to find one anywhere in the tree. If multiple project files are found it takes the one with the shortest absolute path

This is fine as a default behavior, but if you need it to pick a project that isn't the shortest path, there's no escape hatch.

Proposed solution

Add support for optional configuration string godotTools.project_path. If this is specified then get_project_dir in project_utils.ts should use this path only. If the explicitly specified project file doesn't exist, it should return undefined without searching the workspace.

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

No branches or pull requests

1 participant