### 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.
String line_text = get_line(i);
			if (line_text.begins_with("\t")) {
				line_text = line_text.substr(1, line_text.length());
				set_line(i, line_text);
				removed_characters = 1;
				first_line_edited = (i == start_line) ? true : first_line_edited;
				last_line_edited = (i == end_line) ? true : last_line_edited;
				continue;
			}
			if (line_text.begins_with(" ")) {
				
				
				
				int spaces_to_remove = _calculate_spaces_till_next_left_indent(get_first_non_whitespace_column(i));
				line_text = line_text.substr(spaces_to_remove, line_text.length());
				set_line(i, line_text);
				removed_characters = spaces_to_remove;
				first_line_edited = (i == start_line) ? true : first_line_edited;
				last_line_edited = (i == end_line) ? true : last_line_edited;
			}
		}
		if (has_selection(c)) {
			
			if (first_line_edited) {
				select(get_selection_from_line(c), get_selection_from_column(c) - removed_characters, get_selection_to_line(c), initial_selection_end_column, c);
			}
			
			if (last_line_edited) {
				select(get_selection_from_line(c), get_selection_from_column(c), get_selection_to_line(c), initial_selection_end_column - removed_characters, c);
			}