fix: refresh workspace list after creating one

This commit is contained in:
əlemi 2024-09-15 12:51:19 +02:00
parent d9f4446fc9
commit 0ac25f3ee5
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -133,7 +133,7 @@ M.add = function(state, path, extra)
vim.ui.input({ prompt = "new workspace name" }, function(input)
if input == nil or input == "" then return end
session.client:create_workspace(input):await()
manager.refresh("codemp")
vim.schedule(function () require('codemp.workspace').list() end)
end)
end
elseif selected.type == "workspace" then