Skip to content

Commit

Permalink
WIP: Fix cache cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlarumbe committed Aug 19, 2023
1 parent 0efd8d5 commit 48caa1e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions verilog-ext-workspace.el
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,27 @@ If optional TYPE arg is passed, only deserialize that TYPE."
If optional TYPE arg is passed, only clear that TYPE."
(interactive)
(pcase type
('typedefs (setq verilog-ext-workspace-cache-typedefs nil))
('tags-defs (setq verilog-ext-workspace-cache-tags-defs nil))
('tags-refs (setq verilog-ext-workspace-cache-tags-refs nil))
('tags-inst (setq verilog-ext-workspace-cache-tags-inst nil))
('typedefs (setq verilog-ext-workspace-cache-typedefs nil)
(setq verilog-ext-typedef-align-words-re nil)
(setq verilog-align-typedef-regexp nil))
('tags-defs (setq verilog-ext-workspace-cache-tags-defs nil)
(setq verilog-ext-workspace-tags-defs-table nil))
('tags-refs (setq verilog-ext-workspace-cache-tags-refs nil)
(setq verilog-ext-workspace-tags-refs-table nil))
('tags-inst (setq verilog-ext-workspace-cache-tags-inst nil)
(setq verilog-ext-workspace-tags-inst-table nil))
('hierarchy (setq verilog-ext-workspace-cache-hierarchy nil)
(setq verilog-ext-hierarchy-current-flat-hierarchy nil))
(_ (setq verilog-ext-workspace-cache-typedefs nil)
(setq verilog-ext-workspace-cache-tags-defs nil)
(setq verilog-ext-workspace-cache-tags-refs nil)
(setq verilog-ext-workspace-cache-tags-inst nil)
(setq verilog-ext-workspace-cache-hierarchy nil)
(setq verilog-ext-typedef-align-words-re nil)
(setq verilog-align-typedef-regexp nil)
(setq verilog-ext-workspace-tags-defs-table nil)
(setq verilog-ext-workspace-tags-refs-table nil)
(setq verilog-ext-workspace-tags-inst-table nil)
(setq verilog-ext-hierarchy-current-flat-hierarchy nil)))
(verilog-ext-workspace-serialize-cache type)
(message "Cleared cache!"))
Expand Down

0 comments on commit 48caa1e

Please sign in to comment.