mirror of
https://github.com/godotengine/godot.git
synced 2025-10-21 08:53:35 +00:00
Language Server: Improve hovered symbol resolution, fix renaming bugs, implement reference lookup
Co-Authored-By: Ryan Brue <56272643+ryanabx@users.noreply.github.com> Co-Authored-By: BooksBaum <15612932+booksbaum@users.noreply.github.com>
This commit is contained in:
parent
221884e6bc
commit
0202a36a7a
18 changed files with 1661 additions and 360 deletions
|
@ -278,6 +278,11 @@ void GDScriptLanguageProtocol::stop() {
|
|||
}
|
||||
|
||||
void GDScriptLanguageProtocol::notify_client(const String &p_method, const Variant &p_params, int p_client_id) {
|
||||
#ifdef TESTS_ENABLED
|
||||
if (clients.is_empty()) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (p_client_id == -1) {
|
||||
ERR_FAIL_COND_MSG(latest_client_id == -1,
|
||||
"GDScript LSP: Can't notify client as none was connected.");
|
||||
|
@ -294,6 +299,11 @@ void GDScriptLanguageProtocol::notify_client(const String &p_method, const Varia
|
|||
}
|
||||
|
||||
void GDScriptLanguageProtocol::request_client(const String &p_method, const Variant &p_params, int p_client_id) {
|
||||
#ifdef TESTS_ENABLED
|
||||
if (clients.is_empty()) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (p_client_id == -1) {
|
||||
ERR_FAIL_COND_MSG(latest_client_id == -1,
|
||||
"GDScript LSP: Can't notify client as none was connected.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue