Skip to content

Eglot stopped returning completions for dart-mode #1405

Closed Answered by zikajk
Randy1Burrell asked this question in Q&A
Discussion options

You must be logged in to vote

@joaotavora I found the issue:
dart-lang/sdk#56311

Based on the:

Unfortunately I also don't have a good workaround, unless you're able to delay the inlayHints request to not be sent so quickly after initialization (VS Code seems to avoid this issue because it doesn't send these kinds of requests quite so quickly).

I was able to solve it by this quick change (I haven't experimented with different time values).

 (defun eglot--update-hints (from to)
   "Jit-lock function for Eglot inlay hints."
+  (sit-for 4)
   (cl-symbol-macrolet ((region eglot--outstanding-inlay-hints-region)
                        (last-region eglot--outstanding-inlay-hints-last-region)
                        (timer …

Replies: 2 comments 22 replies

Comment options

You must be logged in to vote
14 replies
@joaotavora
Comment options

@Randy1Burrell
Comment options

@joaotavora
Comment options

@Randy1Burrell
Comment options

@WillAyd
Comment options

Comment options

You must be logged in to vote
8 replies
@zikajk
Comment options

@joaotavora
Comment options

@zikajk
Comment options

@joaotavora
Comment options

@zikajk
Comment options

Answer selected by joaotavora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants