### 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.
TextEdit::_update_theme_item_cache();
	
	theme_cache.code_folding_color = get_theme_color(SNAME("code_folding_color"));
	theme_cache.can_fold_icon = get_theme_icon(SNAME("can_fold"));
	theme_cache.folded_icon = get_theme_icon(SNAME("folded"));
	theme_cache.folded_eol_icon = get_theme_icon(SNAME("folded_eol_icon"));
	theme_cache.breakpoint_color = get_theme_color(SNAME("breakpoint_color"));
	theme_cache.breakpoint_icon = get_theme_icon(SNAME("breakpoint"));
	theme_cache.bookmark_color = get_theme_color(SNAME("bookmark_color"));
	theme_cache.bookmark_icon = get_theme_icon(SNAME("bookmark"));
	theme_cache.executing_line_color = get_theme_color(SNAME("executing_line_color"));
	theme_cache.executing_line_icon = get_theme_icon(SNAME("executing_line"));
	theme_cache.line_number_color = get_theme_color(SNAME("line_number_color"));
	
	theme_cache.code_completion_style = get_theme_stylebox(SNAME("completion"));
	theme_cache.code_completion_icon_separation = get_theme_constant(SNAME("h_separation"), SNAME("ItemList"));
	theme_cache.code_completion_max_width = get_theme_constant(SNAME("completion_max_width"));
	theme_cache.code_completion_max_lines = get_theme_constant(SNAME("completion_lines"));
	theme_cache.code_completion_scroll_width = get_theme_constant(SNAME("completion_scroll_width"));
	theme_cache.code_completion_scroll_color = get_theme_color(SNAME("completion_scroll_color"));