Skip to content

Commit 27ce0fc

Browse files
authored
Fix diagnostics request for not visible views after refresh (#2743)
1 parent eb34695 commit 27ce0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def on_activated_async(self) -> None:
404404
sb.do_code_lenses_async(self.view)
405405
if sb.document_diagnostic_needs_refresh:
406406
sb.set_document_diagnostic_pending_refresh(needs_refresh=False)
407-
sb.do_document_diagnostic_async(self.view, self.view.change_count())
407+
sb.do_document_diagnostic_async(self.view, self.view.change_count(), forced_update=True)
408408
if sb.semantic_tokens.needs_refresh \
409409
and (session_view := sb.session.session_view_for_view_async(self.view)) \
410410
and session_view.get_request_flags() & RequestFlags.SEMANTIC_TOKENS:

0 commit comments

Comments
 (0)