[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape cbfebf84e3 101/123: Improve REPL usage, enable REP
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape cbfebf84e3 101/123: Improve REPL usage, enable REPL without any stopped threads #15 |
Date: |
Tue, 5 Dec 2023 03:58:05 -0500 (EST) |
branch: externals/dape
commit cbfebf84e3fcce984c451bc6636ee49b93a7013e
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Improve REPL usage, enable REPL without any stopped threads #15
---
dape.el | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
diff --git a/dape.el b/dape.el
index 3ac2906aca..1f4647c44d 100644
--- a/dape.el
+++ b/dape.el
@@ -959,9 +959,10 @@ CONTEXT which the result is going to be displayed in.
See `dape--callback' for expected CB signature."
(dape-request process
"evaluate"
- (list :frameId frame-id
- :expression expression
- :context context)
+ (append (when (dape--stopped-threads)
+ (list :frameId frame-id))
+ (list :expression expression
+ :context context))
cb))
(defun dape--scopes (process stack-frame cb)
@@ -2416,7 +2417,7 @@ interactively or if SELECT-BUFFER is non nil."
(call-interactively cmd)
(setq dape--repl-insert-text-guard nil))
;; Evaluate expression
- ((dape--stopped-threads)
+ (t
;; FIXME `dape--repl-insert-text-guard' is used here to not mess up
ordering
;; when running commands that will itself trigger output request
(setq dape--repl-insert-text-guard t)
@@ -2432,13 +2433,7 @@ interactively or if SELECT-BUFFER is non nil."
msg)
"\n\n"
dape--repl-prompt))
- (setq dape--repl-insert-text-guard nil))))
- (t
- (comint-output-filter
- dummy-process
- (format "* Unable to send \"%s\" no stopped threads *\n%s"
- input
- dape--repl-prompt))))))
+ (setq dape--repl-insert-text-guard nil)))))))
(defun dape--repl-completion-at-point ()
"Completion at point function for *dape-repl* buffer."
@@ -2469,10 +2464,13 @@ interactively or if SELECT-BUFFER is non nil."
(frame-id (plist-get (dape--current-stack-frame) :id)))
(dape--with dape-request (process
"completions"
- (list :frameId frame-id
- :text str
- :column column
- :line 1))
+ (append
+ (when (dape--stopped-threads)
+ (list :frameId frame-id))
+ (list
+ :text str
+ :column column
+ :line 1)))
(setq collection
(append
collection
- [elpa] externals/dape 3ab98f24f6 065/123: Fix typo in readme cppdbg adapter section #3, (continued)
- [elpa] externals/dape 3ab98f24f6 065/123: Fix typo in readme cppdbg adapter section #3, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 77fa220765 069/123: Fix interactive commands in REPL #11, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 4452bc68a4 085/123: Respect :expensive vars in update fetch, ELPA Syncer, 2023/12/05
- [elpa] externals/dape bec3e487f2 095/123: Send request response for runInTerminal and startDebugging, ELPA Syncer, 2023/12/05
- [elpa] externals/dape fad3c663e7 111/123: Update mode line face, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 68799e29a1 113/123: Fix screenshots in readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape af5dd1eee8 115/123: Fixup of set variables, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 204012b31e 086/123: Rework parsing, ELPA Syncer, 2023/12/05
- [elpa] externals/dape a9f68bf701 091/123: Remove pretty printing of dape--debug io prints, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 7f9700d2b6 092/123: Use prin1 formatting of objects in dape-debug, ELPA Syncer, 2023/12/05
- [elpa] externals/dape cbfebf84e3 101/123: Improve REPL usage, enable REPL without any stopped threads #15,
ELPA Syncer <=
- [elpa] externals/dape 44544b3caf 108/123: Improve ensure fn for js-debug, ELPA Syncer, 2023/12/05
- [elpa] externals/dape cc2188da0d 109/123: Improve relative file name in `dape-info' buffer, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 34e79aec3d 120/123: Update readme with new breakpoint, ELPA Syncer, 2023/12/05
- [elpa] externals/dape a55f8d7196 076/123: Rework `dape--read-config', ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3149577a9e 083/123: Use dape--repl-prompt var, ELPA Syncer, 2023/12/05
- [elpa] externals/dape e34a87dd67 097/123: Handle capabilities event, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ca555bcba3 112/123: UI rewrite, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 20105f5b47 121/123: Harden dape-kill action as per specification, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 94b99c3a5b 066/123: Fix wrong error for step-like functions when no stopped threads, ELPA Syncer, 2023/12/05
- [elpa] externals/dape b501759e89 072/123: Change default for `dape-repl-use-shorthand', ELPA Syncer, 2023/12/05