File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
from .core .constants import DOCUMENT_HIGHLIGHT_KIND_SCOPES
8
8
from .core .constants import HOVER_ENABLED_KEY
9
9
from .core .constants import RegionKey
10
+ from .core .constants import ST_VERSION
10
11
from .core .logging import debug
11
12
from .core .open import open_in_browser
12
13
from .core .panels import PanelName
@@ -618,8 +619,11 @@ def _on_query_completions_resolved_async(
618
619
flags : sublime .AutoCompleteFlags = sublime .AutoCompleteFlags .NONE
619
620
) -> None :
620
621
self ._completions_task = None
621
- # Resolve on the main thread to prevent any sort of data race for _set_target (see sublime_plugin.py).
622
- sublime .set_timeout (lambda : clist .set_completions (completions , flags ))
622
+ if ST_VERSION >= 4184 : # https://github.com/sublimehq/sublime_text/issues/6249#issuecomment-2502804237
623
+ clist .set_completions (completions , flags )
624
+ else :
625
+ # Resolve on the main thread to prevent any sort of data race for _set_target (see sublime_plugin.py).
626
+ sublime .set_timeout (lambda : clist .set_completions (completions , flags ))
623
627
624
628
# --- textDocument/signatureHelp -----------------------------------------------------------------------------------
625
629
You can’t perform that action at this time.
0 commit comments