Skip to content

Commit

Permalink
Do not run hooks if revert is in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoncho committed Jan 3, 2020
1 parent fcdedd4 commit 0fc9420
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -3428,13 +3428,12 @@ Added to `after-change-functions'."
`(:textDocument
,(lsp--versioned-text-document-identifier)
:contentChanges ,(vector (lsp--full-change-event))))))))))))
(lsp-workspaces))))

;; force cleanup overlays after each change
(lsp--remove-overlays 'lsp-highlight)
(lsp--on-change-debounce (current-buffer))
(setq lsp--last-signature-index nil)
(setq lsp--last-signature nil))
(lsp-workspaces))
;; force cleanup overlays after each change
(lsp--remove-overlays 'lsp-highlight)
(lsp--on-change-debounce (current-buffer))
(setq lsp--last-signature-index nil)
(setq lsp--last-signature nil))))



Expand Down

0 comments on commit 0fc9420

Please sign in to comment.