From 3a00dc2ce1943aca6236ddf50ca2172ae878ecf1 Mon Sep 17 00:00:00 2001 From: Matteo Gamboz Date: Tue, 18 Jul 2023 09:38:37 +0200 Subject: [PATCH] Correct the :type of pytest at point debug template The `:type` of the debug template "Python :: Run pytest (at point)" should match the "LANGUAGE-ID" argument of the function (dap-register-debug-provider), otherwise the "PROVIDE-CONFIGURATION-FN" is not called. --- dap-python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap-python.el b/dap-python.el index 4eb6b590..dab5f646 100644 --- a/dap-python.el +++ b/dap-python.el @@ -288,7 +288,7 @@ strings, for the sake of launch.json feature parity." (dap-register-debug-provider "python-test-at-point" 'dap-python--populate-test-at-point) (dap-register-debug-template "Python :: Run pytest (at point)" - (list :type "python" + (list :type "python-test-at-point" :args "" :program nil :module "pytest"