branch: externals/dape
commit 5f65524007929c274b3f2d4045662bdc2cb9e49a
Author: Daniel Pettersson <[email protected]>
Commit: Daniel Pettersson <[email protected]>

    Fix REPL completions when process has never stopped #15
---
 dape.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dape.el b/dape.el
index 1f4647c44d..71e1913ff3 100644
--- a/dape.el
+++ b/dape.el
@@ -2460,13 +2460,13 @@ interactively or if SELECT-BUFFER is non nil."
      (cdr bounds)
      (completion-table-dynamic
       (lambda (_str)
-        (when-let ((process (dape--live-process t))
-                   (frame-id (plist-get (dape--current-stack-frame) :id)))
+        (when-let ((process (dape--live-process t)))
           (dape--with dape-request (process
                                     "completions"
                                     (append
                                      (when (dape--stopped-threads)
-                                       (list :frameId frame-id))
+                                       (list :frameId
+                                             (plist-get 
(dape--current-stack-frame) :id)))
                                      (list
                                       :text str
                                       :column column

Reply via email to