Skip to content

Commit cdc9e26

Browse files
committed
fix autocommand event
1 parent a2d8ba7 commit cdc9e26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/neotest-vstest/mtp/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function M.create_client(dll_path, on_update, on_log, mtp_env)
100100
local server_future, mtp_process = start_server(dll_path, mtp_env)
101101

102102
nio.scheduler()
103-
local cleanup_autocmd_id = vim.api.nvim_create_autocmd("QuitPre", {
103+
local cleanup_autocmd_id = vim.api.nvim_create_autocmd("VimLeavePre", {
104104
group = vim.api.nvim_create_augroup("neotest_vstest_mtp_shutdown", { clear = false }),
105105
desc = "Shutdown dotnet MTP client process on Neovim exit",
106106
callback = function()

lua/neotest-vstest/vstest/cli_wrapper.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function M.create_test_runner(project)
109109
end)
110110

111111
nio.scheduler()
112-
local cleanup_autocmd_id = vim.api.nvim_create_autocmd("QuitPre", {
112+
local cleanup_autocmd_id = vim.api.nvim_create_autocmd("VimLeavePre", {
113113
group = vim.api.nvim_create_augroup("neotest_vstest_server_shutdown", { clear = false }),
114114
desc = "Shutdown dotnet VSTest client process on Neovim exit",
115115
callback = function()

0 commit comments

Comments
 (0)