Skip to content

Commit 86fc65d

Browse files
authored
Change Python debug template ids/names (emacs-lsp#280)
1 parent 8f69dc2 commit 86fc65d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dap-python.el

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ as the pyenv version then also return nil. This works around https://github.com/
174174

175175
(defun dap-python--debug-test-at-point ()
176176
(interactive)
177-
(dap-debug (dap-python--template "Python Debug Test At Point")))
177+
(dap-debug (dap-python--template "Python :: Run pytest (at point)")))
178178

179179
(defun dap-python--populate-start-file-args (conf)
180180
"Populate CONF with the required arguments."
@@ -230,31 +230,31 @@ as the pyenv version then also return nil. This works around https://github.com/
230230
conf))
231231

232232
(dap-register-debug-provider "python" 'dap-python--populate-start-file-args)
233-
(dap-register-debug-template "Python :: Run Configuration"
233+
(dap-register-debug-template "Python :: Run file (buffer)"
234234
(list :type "python"
235235
:args ""
236236
:cwd nil
237237
:module nil
238238
:program nil
239239
:request "launch"
240-
:name "Python :: Run Configuration"))
240+
:name "Python :: Run file (buffer)"))
241241

242-
(dap-register-debug-template "Python :: pytest"
242+
(dap-register-debug-template "Python :: Run pytest (buffer)"
243243
(list :type "python"
244244
:args ""
245245
:cwd nil
246246
:program nil
247247
:module "pytest"
248248
:request "launch"
249-
:name "Python :: Run Configuration"))
249+
:name "Python :: Run pytest (buffer)"))
250250

251251
(dap-register-debug-provider "python-test-at-point" 'dap-python--populate-test-at-point)
252-
(dap-register-debug-template "Python Debug Test At Point"
252+
(dap-register-debug-template "Python :: Run pytest (at point)"
253253
(list :type "python-test-at-point"
254254
:args ""
255255
:module "pytest"
256256
:request "launch"
257-
:name "Python Debug Test At Point"))
257+
:name "Python :: Run pytest (at point)"))
258258

259259
(provide 'dap-python)
260260
;;; dap-python.el ends here

0 commit comments

Comments
 (0)