-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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 --lsp-port
as a command line argument
#81844
LSP: Add --lsp-port
as a command line argument
#81844
Conversation
02bc169
to
6c252d2
Compare
Just to add some context on the ramifications of this, I expect it be a significant quality-of-life improvement for everybody using VSCode and for many users of other external editors.
|
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.
Makes sense to me. Maybe it should simply be named --lsp-port
? It's implicit for any command line option that it takes precedence over what's the current default.
Do we think that instead of |
6c252d2
to
9961c88
Compare
--lsp-port-override
as a command line argument--lsp-port
as a command line argument
Yep, I like that better. I've changed it in the latest commit! |
9961c88
to
237917f
Compare
237917f
to
a5b7c4c
Compare
Other than potentially gathering more reviews, the PR is ready to go! |
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.
Seems fine!
Thanks! |
--lsp-port
as a command line argument--lsp-port
as a command line argument
I have encountered a complication with this feature. It seems to depend on the order of arguments. |
@van800 The difference seems to be that you use |
Thank you so much! |
Per discussion in godotengine/godot-vscode-plugin#488, and the suggestion by @Calinou in godotengine/godot-vscode-plugin#488 (comment).
Implements an
--lsp-port
command line argument for Godot. This argument overrides the user's editor setting fornetwork/language_server/remote_port
.The use case for this argument would be for the godot-vscode-plugin to be able to specify the port used for the language server instance spun up by the plugin.
This would potentially solve a few long standing issues with the godot-vscode-plugin, including:
If the change is accepted, it should be cherry picked to 3.x. I can help with that if need be.
Let me know what things I have to change. Since this is my first time working with main.cpp and further with #ifdef and #ifndef, please pay attention to my use of those and let me know if they are up to standard.
I also added the port to the language server editor print that says --- GDScript language server started ---, changing it to --- GDScript language server started on port "port"---.
If there are places I need to document this change at, let me know as well. :)