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

Default language server port doesn't match with Godot 4 (#473) fix + Godot 3 back-compatibility #492

Closed
wants to merge 4 commits into from

Conversation

runny-yolk
Copy link

@runny-yolk runny-yolk commented Sep 16, 2023

I figured it would be good to update the default for Godot 4 as people seem to get caught up on it fairly frequently (#473), however there's still a lot of v3 users, so as a compromise I've added a fallback port, which it will use when it's used up half of the max connection attempts. I also doubled the number of connection attempts, so both ports get the 10 they were getting before.

By default, the main serverPort is the Godot 4 default, and the fallback is the Godot 3 default.

I tested this code of course, but I haven't developed much for VScode or Godot before, so please scrutinise my code as much as you like.

As an aside, I noticed that the warning message at the top of the README isn't on the VSCode marketplace? Seems like the version published there might be out of date.

@DaelonSuzuka
Copy link
Collaborator

Thanks for taking the time to submit this PR. Unfortunately, we won't be able to use it due a large rewrite of the LSP client code that was recently merged.

Additionally, PR #511 implements a solution for the Godot3/4 port issue that I think is more robust.

@runny-yolk runny-yolk deleted the issue-473-fix branch October 18, 2023 20:53
@runny-yolk
Copy link
Author

@DaelonSuzuka Ah, no worries, I'm just happy to see the issue fixed.

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.

2 participants