File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,12 @@ from the language server."
179
179
(->> lsp--cur-workspace
180
180
(lsp--workspace-buffers)
181
181
(mapc (lambda (buffer )
182
- (when (lsp-buffer-live-p buffer)
182
+ (when (and (lsp-buffer-live-p buffer)
183
+ (or
184
+ (not (bufferp buffer))
185
+ (and (get-buffer-window buffer)
186
+ (not (-contains? (buffer-local-value 'lsp-on-idle-hook buffer)
187
+ 'lsp-diagnostics--flycheck-buffer )))))
183
188
(lsp-with-current-buffer buffer
184
189
(add-hook 'lsp-on-idle-hook #'lsp-diagnostics--flycheck-buffer nil t )
185
190
(lsp--idle-reschedule (current-buffer )))))))))
Original file line number Diff line number Diff line change @@ -1974,8 +1974,7 @@ WORKSPACE is the workspace that contains the diagnostics."
1974
1974
(remhash file workspace-diagnostics)
1975
1975
(puthash file (append diagnostics nil) workspace-diagnostics))
1976
1976
1977
- (run-hooks 'lsp-diagnostics-updated-hook)
1978
- (lsp--idle-reschedule (current-buffer))))
1977
+ (run-hooks 'lsp-diagnostics-updated-hook)))
1979
1978
1980
1979
1981
1980
You can’t perform that action at this time.
0 commit comments