From 19f9d07bf6ab951849bbdffa6900a8a84ce4ca99 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Thu, 22 Jan 2026 18:10:55 +1000 Subject: [PATCH] Add comment --- src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs index 32efa1c..adbbd2e 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.cs @@ -428,6 +428,7 @@ public partial class SharpIdeCodeEdit : CodeEdit TextChanged -= OnAction; Callable.From(() => RequestCodeCompletion(true)).CallDeferred(); } + // TODO: This is flawed - we currently retrieve completions after TextChanged fires, but OnTextChange returns before the workspace is actually updated, so we may ask for completions for stale text. TextChanged += OnAction; // We need to wait for the text to actually change before requesting completions } }