Skip to content

Commit

Permalink
Drop BufWritePost for .vscode/launch.json files
Browse files Browse the repository at this point in the history
The files are now instead loaded on-demand if a session is spawned
  • Loading branch information
mfussenegger committed May 30, 2024
1 parent 36e72ed commit 30799ff
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugin/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ if api.nvim_create_autocmd then
api.nvim_buf_set_lines(args.buf, 0, -1, true, lines)
end
})
api.nvim_create_autocmd('BufWritePost', {
group = launchjson_group,
pattern = pattern,
callback = function(args)
require('dap.ext.vscode').load_launchjs(args.file)
end
})

api.nvim_create_autocmd("BufReadCmd", {
group = api.nvim_create_augroup("dap-readcmds", { clear = true }),
Expand Down

0 comments on commit 30799ff

Please sign in to comment.