Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to update config before dap.continue #1087

Open
s1n7ax opened this issue Nov 11, 2023 · 0 comments
Open

Way to update config before dap.continue #1087

s1n7ax opened this issue Nov 11, 2023 · 0 comments

Comments

@s1n7ax
Copy link

s1n7ax commented Nov 11, 2023

Problem Statement

Running a java applications requires set dap.configurations.java to be set. However this has to be resolved by communicating with the JDTLS.

resolve main classes -> resolve class paths for main classes -> create dap config

Configuration can be done LspAttach event but when updated the change will not reflect. So good option would be to configure it just before running.

Possible Solutions

Similar to dap.adapters, accept functions for dap.configurations

dap.configurations.java = function(on_config)
    -- generate the configuration
    on_config(java_dap_config)
end

Considered Alternatives

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant