We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 742d91b + 920997d commit 27cc051Copy full SHA for 27cc051
modules/gdscript/language_server/gdscript_extend_parser.cpp
@@ -208,11 +208,11 @@ void ExtendGDScriptParser::update_document_links(const String &p_code) {
208
const Variant &const_val = token.literal;
209
if (const_val.get_type() == Variant::STRING) {
210
String scr_path = const_val;
211
- bool exists = fs->file_exists(scr_path);
212
- if (!exists) {
213
- scr_path = get_path().get_base_dir() + "/" + scr_path;
214
- exists = fs->file_exists(scr_path);
+ if (scr_path.is_relative_path()) {
+ scr_path = get_path().get_base_dir().path_join(scr_path).simplify_path();
215
}
+ bool exists = fs->file_exists(scr_path);
+
216
if (exists) {
217
String value = const_val;
218
LSP::DocumentLink link;
0 commit comments