From 6c208ac0a98671f789b8deb50aa9cc8c2d96f514 Mon Sep 17 00:00:00 2001 From: Will Ehrendreich Date: Thu, 26 Oct 2023 20:21:56 -0500 Subject: [PATCH] feat(projects):added function to clear out neovim's project table. --- lua/ionide/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/ionide/init.lua b/lua/ionide/init.lua index cea0dec..097cfb6 100644 --- a/lua/ionide/init.lua +++ b/lua/ionide/init.lua @@ -575,6 +575,12 @@ local function parse_string(input_string) return input_string, "", M.DocumentationForSymbolRequest("NoProperSigGiven", "NoProperAssemblyGiven"), "" end +---Resets the project folders and Projects tables to empty +function M.ClearLocalIonideProjectsCollection() + M.Projects = {} + M.projectFolders ={} +end + function M.ParseAndReformatShowDocumentationFromHoverResponseContentLines(input, contents) -- -- value = string.gsub(value, "\r\n?", "\n") -- local thisIonide = vim.lsp.get_active_clients({ name = "ionide" })[1]