aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/tasks/project_config.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/tasks/project_config.lua b/lua/tasks/project_config.lua
index b3891a3..f0ca017 100644
--- a/lua/tasks/project_config.lua
+++ b/lua/tasks/project_config.lua
@@ -23,7 +23,10 @@ end
23--- Writes all values as JSON to disk. 23--- Writes all values as JSON to disk.
24function ProjectConfig:write() 24function ProjectConfig:write()
25 local params_file = Path:new(config.params_file) 25 local params_file = Path:new(config.params_file)
26 local tmp_dap_open_command = self.dap_open_command
27 self.dap_open_command = nil
26 params_file:write(vim.json.encode(self), 'w') 28 params_file:write(vim.json.encode(self), 'w')
29 self.dap_open_command = tmp_dap_open_command
27end 30end
28 31
29return ProjectConfig 32return ProjectConfig