### Godot version

4.0 dev_build

### System information

Ubuntu 22.04.1

### Issue description

The "Lookup Symbol" button don't appears for custorm class names.
Related issues: #68475,  #73167.
I tried apply #68311, #69473 and #73196. It don't helps.
The `Ctrl+LMB` works right for all cases.

### Steps to reproduce

Right click to the `CustomClassA` symbol in the `custom_class_b.gd` anywhere. The `Lookup Symbol` button don't appears in the context menu.

### Minimal reproduction project

Example from  #68475.
ScriptLanguage::CodeCompletionOption option(E->get(), ScriptLanguage::CODE_COMPLETION_KIND_FUNCTION);
		option.insert_text += "(";
		r_result.insert(option.display, option);
	}
	for (const KeyValue<StringName, ProjectSettings::AutoloadInfo> &E : ProjectSettings::get_singleton()->get_autoload_list()) {
		if (!E.value.is_singleton) {
			continue;
		}
		ScriptLanguage::CodeCompletionOption option(E.key, ScriptLanguage::CODE_COMPLETION_KIND_CONSTANT);
		r_result.insert(option.display, option);
	}
	
	for (const KeyValue<StringName, int> &E : GDScriptLanguage::get_singleton()->get_global_map()) {
		ScriptLanguage::CodeCompletionOption option;
		if (ClassDB::class_exists(E.key) || Engine::get_singleton()->has_singleton(E.key)) {
			option = ScriptLanguage::CodeCompletionOption(E.key.operator String(), ScriptLanguage::CODE_COMPLETION_KIND_CLASS);
		} else {
			option = ScriptLanguage::CodeCompletionOption(E.key.operator String(), ScriptLanguage::CODE_COMPLETION_KIND_CONSTANT);
		}
		r_result.insert(option.display, option);
	}
	
	List<StringName> global_classes;
	ScriptServer::get_global_class_list(&global_classes);
	for (const StringName &E : global_classes) {
		ScriptLanguage::CodeCompletionOption option(E, ScriptLanguage::CODE_COMPLETION_KIND_CLASS, ScriptLanguage::LOCATION_OTHER_USER_CODE);
		r_result.insert(option.display, option);
	}
}
static GDScriptCompletionIdentifier _type_from_variant(const Variant &p_value) {