1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Improve LSP completion using scene owner

Fixes: #36473

(cherry picked from commit 06bce137e3)
This commit is contained in:
Rafael Delboni
2020-02-24 21:01:27 -03:00
committed by Rémi Verschelde
parent 41500249e3
commit ecfe9c24a2
2 changed files with 53 additions and 1 deletions

View File

@@ -33,12 +33,17 @@
#include "../gdscript_parser.h"
#include "core/variant.h"
#include "editor/editor_file_system.h"
#include "gdscript_extend_parser.h"
#include "lsp.hpp"
class GDScriptWorkspace : public Reference {
GDCLASS(GDScriptWorkspace, Reference);
private:
void _get_owners(EditorFileSystemDirectory *efsd, String p_path, List<String> &owners);
Node *_get_owner_node(String p_path);
protected:
static void _bind_methods();
void remove_cache_parser(const String &p_path);