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

LSP: Omit some values based on specification version 3.17 #96725

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

HolonProduction
Copy link
Member

@HolonProduction HolonProduction commented Sep 8, 2024

Fixes #93224 (as confirmed there)
Fixes #47930

As noticed in the issue Godot does pass some empty strings for properties. This was fine based on the LSP spec 3.16 which was worded as When falsy the label is used. as of version 3.17 this has been reworded to When omitted the label is used so we need to omit empty strings ourself, neovim won't do it for us, if it is based on version 3.17.

Also I don't know where the deprecated note on insertText came from, but it isn't in 3.17 nor in the upcoming 3.18.

@akien-mga
Copy link
Member

Also I don't know where the deprecated note on insertText came from, but it isn't in 3.17 nor in the upcoming 3.18.

Seems like it was added like that back in #29780.

@HolonProduction
Copy link
Member Author

Seems like it was added like that back in #29780.

Well given that it isn't deprecated in the spec, I think it is fine to remove the note.

We might want to look into moving over to textEdit at some point, but insertText isn't deprecated it just can behave quit inconsistent between clients, at least that's how I read the spec.

@akien-mga akien-mga merged commit 3b714de into godotengine:master Sep 16, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
@HolonProduction HolonProduction deleted the lsp-omit branch October 5, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants