1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +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

@@ -1934,9 +1934,16 @@ bool EditorFileSystem::_find_file(const String &p_file, EditorFileSystemDirector
int cpos = -1;
for (int i = 0; i < fs->files.size(); i++) {
if (fs->files[i]->file == file) {
cpos = i;
break;
if (fs_case_sensitive) {
if (fs->files[i]->file == file) {
cpos = i;
break;
}
} else {
if (fs->files[i]->file.to_lower() == file.to_lower()) {
cpos = i;
break;
}
}
}