Closed OrangeWatermelon closed 1 month ago
Sorry but all the format changes make this rather hard to review and I'm not going to merge changes that have unrelated changes all over the place.
It also appears as if this would be a breaking change for the provider interface.
This way, debugging can be started from any location, rather than having to start debugging in the current buffer.
This is already the case if you're using either .vscode/launch.json
files or a custom provider. See :help dap-providers
.
I want to write a plugin similar to Idea, which can create configuration files for debugging. This way, debugging can be started from any location, rather than having to start debugging in the current buffer. While writing the script, I found that dap.continue can take opts as an argument, which led me to the select_config_and_run function. In this function, the filetype is obtained from the current buffer. However, further down, I noticed the line opts.filetype = opts.filetype or filetype, which seems to indicate that opts can pass in the filetype, but this filetype does not affect the configuration retrieval. Therefore, I modified the code so that the filetype is obtained from the buffer only when the filetype option is not passed in.