### 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.
GDScriptParser::DataType type;
	String enumeration;
	Variant value;
	const GDScriptParser::ExpressionNode *assigned_expression = nullptr;
};
static int _get_property_location(StringName p_class, StringName p_property) {
	if (!ClassDB::has_property(p_class, p_property)) {
		return ScriptLanguage::LOCATION_OTHER;
	}
	int depth = 0;
	StringName class_test = p_class;
	while (class_test && !ClassDB::has_property(class_test, p_property, true)) {
		class_test = ClassDB::get_parent_class(class_test);
		depth++;
	}
	return depth | ScriptLanguage::LOCATION_PARENT_MASK;
}
static int _get_constant_location(StringName p_class, StringName p_constant) {
	if (!ClassDB::has_integer_constant(p_class, p_constant)) {
		return ScriptLanguage::LOCATION_OTHER;
	}
	int depth = 0;
	StringName class_test = p_class;
	while (class_test && !ClassDB::has_integer_constant(class_test, p_constant, true)) {
		class_test = ClassDB::get_parent_class(class_test);
		depth++;
	}
	return depth | ScriptLanguage::LOCATION_PARENT_MASK;
}
static int _get_signal_location(StringName p_class, StringName p_signal) {