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

LSP: Fix file URI handling + warn about workspace project mismatch

This commit is contained in:
HolonProduction
2025-03-20 10:24:16 +01:00
parent 019ab8745f
commit d55883b4b1
7 changed files with 170 additions and 18 deletions

View File

@@ -50,6 +50,9 @@ protected:
bool initialized = false;
HashMap<StringName, LSP::DocumentSymbol> native_symbols;
// Absolute paths that are known to point to res://
HashSet<String> absolute_res_paths;
const LSP::DocumentSymbol *get_native_symbol(const String &p_class, const String &p_member = "") const;
const LSP::DocumentSymbol *get_script_symbol(const String &p_path) const;
const LSP::DocumentSymbol *get_parameter_symbol(const LSP::DocumentSymbol *p_parent, const String &symbol_identifier);
@@ -78,7 +81,7 @@ public:
Error parse_script(const String &p_path, const String &p_content);
Error parse_local_script(const String &p_path);
String get_file_path(const String &p_uri) const;
String get_file_path(const String &p_uri);
String get_file_uri(const String &p_path) const;
void publish_diagnostics(const String &p_path);