### 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 (i > 0) {
				text_to_drop += ", ";
			}
			if (preload) {
				text_to_drop += "preload(" + _quote_drop_data(String(files[i])) + ")";
			} else {
				text_to_drop += _quote_drop_data(String(files[i]));
			}
		}
		te->set_caret_line(row);
		te->set_caret_column(col);
		te->insert_text_at_caret(text_to_drop);
		te->grab_focus();
	}
	if (d.has("type") && String(d["type"]) == "nodes") {
		te->remove_secondary_carets();
		Node *scene_root = get_tree()->get_edited_scene_root();
		if (!scene_root) {
			EditorNode::get_singleton()->show_warning(TTR("Can't drop nodes without an open scene."));
			return;
		}
		Node *sn = _find_script_node(scene_root, scene_root, script);
		if (!sn) {
			EditorNode::get_singleton()->show_warning(vformat(TTR("Can't drop nodes because script '%s' is not used in this scene."), get_name()));
			return;
		}
		Array nodes = d["nodes"];
		String text_to_drop;
		if (Input::get_singleton()->is_key_pressed(Key::CTRL)) {
			bool use_type = EDITOR_GET("text_editor/completion/add_type_hints");