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

Implement LSP didDeleteFiles & make parser aware of sub-nodes #47776

Merged
merged 1 commit into from
May 6, 2021

Conversation

Razoric480
Copy link
Contributor

@Razoric480 Razoric480 commented Apr 10, 2021

This is a forward port of #47553 and #47338 which were created only for 3.x due to a miscommunication. This prevents double-fixing issues later, as was pointed out by akien. Future changes will be submitted to both 4.0 and 3.x where fitting.

The PR makes the language server implement the didDeleteFiles notification, which LSP clients can implement as of specifications 3.16.0, to clear diagnostics, and fixes the issue where variables being hovered or go-to-definition'ed when they were inside of a sub-block (if statement, for loop, while loop, match statement, etc) were not recognized as local symbols.

This fixes #43133, fixes #43164 and fixes #41449 .

@akien-mga akien-mga merged commit ae2359f into godotengine:master May 6, 2021
@akien-mga
Copy link
Member

Thanks!

@Razoric480 Razoric480 deleted the foreport branch July 8, 2021 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants