Skip to content

Detect project version automatically#196

Open
charjr wants to merge 1 commit intogodotengine:masterfrom
charjr:get-godot-version
Open

Detect project version automatically#196
charjr wants to merge 1 commit intogodotengine:masterfrom
charjr:get-godot-version

Conversation

@charjr
Copy link
Copy Markdown
Contributor

@charjr charjr commented Apr 12, 2026

Add gdscript-util--get-godot-project-version

Returns a string version that the current project is running under.

I downloaded several versions to check config_version:

  • Godot 3.0 uses config_version=3
  • Godot 3.6.2 uses config_version=4
  • Godot 4.0 config_version=5
  • Godot 4.6 config_version=5

If version is 3 or 4, return "3", otherwise read config/features just like the vc-code extension.

Remove gdscript-eglot-version

No longer necessary, project version is detected automatically.

Removing it also saves the maintenance burden of having to update the default value on new releases.

Update README

Users don't need to concern themselves with manually setting it for 3.x so this section has been trimmed to what matters.

@charjr charjr force-pushed the get-godot-version branch 5 times, most recently from fa7071e to 6f5ca2b Compare April 12, 2026 18:06
This has three advantages:
- Saves maintainers updating the default value to latest each time.
- Saves users updating their value.
- Allows for different values per project.
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