Point to available adapters if config references missing adapter

This commit is contained in:
Mathias Fussenegger 2024-06-01 11:11:42 +02:00 committed by Mathias Fußenegger
parent c18767707d
commit 5823403923

View file

@ -603,9 +603,9 @@ function M.run(config, opts)
)
elseif adapter == nil then
notify(string.format(
'The selected configuration references adapter `%s`, but dap.adapters.%s is undefined',
'Config references missing adapter `%s`. Available are: %s',
config.type,
config.type
table.concat(vim.tbl_keys(M.adapters), ", ")
), vim.log.levels.ERROR)
else
notify(string.format(