### 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.
CodeEdit *te = code_editor->get_text_editor();
	String text = te->get_text();
	List<String> fnc;
	if (script->get_language()->validate(text, script->get_path(), &fnc)) {
		
		functions.clear();
		for (const String &E : fnc) {
			functions.push_back(E);
		}
	}
	return functions;
}
void ScriptTextEditor::apply_code() {
	if (script.is_null()) {
		return;
	}
	script->set_source_code(code_editor->get_text_editor()->get_text());
	script->update_exports();
	code_editor->get_text_editor()->get_syntax_highlighter()->update_cache();
}
Ref<Resource> ScriptTextEditor::get_edited_resource() const {