Skip to content

Commit 5680936

Browse files
committed
Add default args for debug sessions
1 parent 1a41c90 commit 5680936

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dap-java.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ If the port is taken, DAP will try the next port."
8787
(const 'externalTerminal)
8888
(const 'internalConsole)))
8989

90+
(defcustom dap-java-args []
91+
"Default java args."
92+
:group 'dap-java
93+
:type 'lsp-string-vector)
94+
9095
(defcustom dap-java-test-additional-args ()
9196
"Additional arguments for JUnit standalone runner."
9297
:group 'dap-java
@@ -164,7 +169,7 @@ Please check whether the server is configured propertly"))
164169

165170
(-let [(&plist :mainClass main-class :projectName project-name) conf]
166171
(-> conf
167-
(dap--put-if-absent :args "")
172+
(dap--put-if-absent :args dap-java-args)
168173
(dap--put-if-absent :cwd (lsp-java--get-root))
169174
(dap--put-if-absent :stopOnEntry :json-false)
170175
(dap--put-if-absent :host "localhost")

0 commit comments

Comments
 (0)