diff --git a/lsp_proxy/java.py b/lsp_proxy/java.py index 5ea4733..fe7f3de 100644 --- a/lsp_proxy/java.py +++ b/lsp_proxy/java.py @@ -82,8 +82,11 @@ class Java(LspServer): else: data_directory = os.path.join(get_data_home(), "java", "data") + if "--enable-debugger" in arguments: + arguments.remove("--enable-debugger") + command.append("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044") + command = command + [ - "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044", "-Declipse.application=org.eclipse.jdt.ls.core.id1", "-Dosgi.bundles.defaultStartLevel=4", "-Declipse.product=org.eclipse.jdt.ls.core.product",