-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Drop outdated launch.json entries on load_launchjs
#1065
Comments
This is because configurations can be added from other sources and therefore If you know that you're managing all configurations via launch.json files you could reset them beforehand manually, e.g.: local dap = require("dap")
dap.configurations = {}
require('dap.ext.vscode').load_launchjs() One other option that has been on my mind for a while now is to have But if I add that I'd also like a extension mechanism for it, to allow plugins to discover additional configurations too. I haven't made up my mind yet how that should look like and currently isn't a priority. |
For
Dunno the internals of this plugin so can't comment much. Maybe having different sources maintain their own static task lists, and merge them in |
With #1237 the launch.json is now loaded implicitly without merging into dap.configurations - that means you can drop the Given that dap.configurations is no longer modified, old entries should no longer show up. |
Problem Statement
load_launchjs
only adds entries todap.configurations
, but it does not drop outdated ones. For instance, if an entry named "foo" is added and renamed to "bar" later, both "foo" and "bar" will appear indap.continue()
, but we expect to have "bar" only.Possible Solutions
No response
Considered Alternatives
No response
The text was updated successfully, but these errors were encountered: