mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Improved go-to definition (Ctrl + Click)
Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
(cherry picked from commit be7a353c70)
This commit is contained in:
parent
aa57bb0473
commit
d16abbdee4
6 changed files with 53 additions and 2 deletions
|
|
@ -8551,7 +8551,13 @@ Error GDScriptParser::_parse(const String &p_base_path) {
|
|||
_set_error("Parse error: " + tokenizer->get_token_error());
|
||||
}
|
||||
|
||||
if (error_set && !for_completion) {
|
||||
bool for_completion_error_set = false;
|
||||
if (error_set && for_completion) {
|
||||
for_completion_error_set = true;
|
||||
error_set = false;
|
||||
}
|
||||
|
||||
if (error_set) {
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
|
||||
|
|
@ -8581,6 +8587,10 @@ Error GDScriptParser::_parse(const String &p_base_path) {
|
|||
// Resolve the function blocks
|
||||
_check_class_blocks_types(main_class);
|
||||
|
||||
if (for_completion_error_set) {
|
||||
error_set = true;
|
||||
}
|
||||
|
||||
if (error_set) {
|
||||
return ERR_PARSE_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue