-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
LSP: Add support for custom host setting #52330
LSP: Add support for custom host setting #52330
Conversation
@Calinou I'm unsure if the changes went through, do I need to make these changes in my personal fork branch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a small fix, otherwise looks good. Also needs to squash all the commits (see the documentation for info about this).
port = (int)_EDITOR_GET("network/language_server/remote_port"); | ||
use_thread = (bool)_EDITOR_GET("network/language_server/use_thread"); | ||
if (protocol.start(port, IPAddress("127.0.0.1")) == OK) { | ||
if (protocol.start(port, IP_Address(host)) == OK) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems you are using an outdated version, this was renamed to IPAddress
(without underscore) a while ago.
if (protocol.start(port, IP_Address(host)) == OK) { | |
if (protocol.start(port, IPAddress(host)) == OK) { |
You can now configure host in the `language_server` settings in the editor settings.
ec7a08a
to
be6da39
Compare
Force pushed a rebase to squash commits and fix the build issue. |
Thanks! |
Cherry-picked for 3.4. |
You can now set host in the language_server settings in the editor settings. I am also making a pull request to make changes to the VSCode godot-tools to be able to set the language_server host as well.
This allows you to connect to the godot language_server when using WSL2 and docker.
This is a link to the pull request in the vscode plugin
godotengine/godot-vscode-plugin#297