-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Fix gdscript language server auto completion compatibility with external text editors. #49391
Conversation
The gdscript language server changes the content of insertText during resolve. But, by the lsp specs, that should not happen. Because of this, bugs in external text editors regarding autocompletion happen. By not following the lsp specs, this commit ensures better compatibility with external editors. Fix for #48436
Does this happen to fix #48116, or is that a different issue? |
I'm not sure, but I think that is a different issue. |
CC @Razoric480 |
I disagree with the statement that this feature should be moved into the language client. Also @igordreher said that "The gdscript language server changes the content of The problem is not that we're "changing the content of |
I believe I found a better solution. See #59482 Note that neither this nor my own pull request would fix #48436 and godotengine/godot-vscode-plugin#142 |
Good point. As @kurtlachmann pointed out #49391 (comment), |
The gdscript language server changes the content of
insertText
during resolve.But, by the lsp specs, that should not happen, as pointed out godotengine/godot-vscode-plugin#142 (comment) (his emphasis):
Because of this, bugs in external text editors regarding auto completion happen.
By removing the changes to
insertText
in the language server, this commit ensures better compatibility with external editors.This commit removes the parenthesis addition to functions in auto complete. This feature should exist in the text editor and not in the language server.
Bugsquad edit: