### Godot version

v4.0.rc1.official [8843d9ad3]

### System information

Windows 11 Pro 64Bit

### Issue description

Hi,

Found a rather annoying bug in 4.0 RC1 official on Windows 11:
When right clicking on a function in code and selecting "Lookup Symbol" - it does not always work?
Sometimes it works, sometimes it does not work?

Any ideas?

Jesse

### Steps to reproduce

Right click on a function in code and select "Lookup Symbol".
(it does not work always?)

### Minimal reproduction project

N.A.
if (line >= 0) {
					continue;
				}
				
				bool found_inherited_function = false;
				Ref<Script> inherited_script = script->get_base_script();
				while (!inherited_script.is_null()) {
					if (inherited_script->has_method(method)) {
						found_inherited_function = true;
						break;
					}
					inherited_script = inherited_script->get_base_script();
				}
				if (!found_inherited_function) {
					missing_connections.push_back(connection);
				}
			}
		}
	}
	
	methods_found.clear();
	for (int i = 0; i < functions.size(); i++) {
		StringName name = StringName(functions[i].get_slice(":", 0));
		if (methods_found.has(name)) {
			continue;
		}
		String found_base_class;
		StringName base_class = script->get_instance_base_type();
		Ref<Script> inherited_script = script->get_base_script();
		while (!inherited_script.is_null()) {