File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def invalid_models_to_diagnostics(
9595 )
9696 return result
9797
98- async def update_errors (self , document_path ) -> None :
98+ async def update_errors (self , document_path : Path ) -> None :
9999 await _publish_diagnostics (self .output_channel , document_path , [])
100100 pyre_connection = api_connection .PyreConnection (
101101 Path (self .pyre_arguments .global_root )
@@ -135,6 +135,14 @@ async def log_and_show_message_to_client(
135135 LOG .debug (message )
136136 await self .show_message_to_client (message , level )
137137
138+ async def show_model_errors_to_client (
139+ self , diagnostics : Dict [Path , List [lsp .Diagnostic ]]
140+ ) -> None :
141+ for path , diagnostic in diagnostics .items ():
142+ await _publish_diagnostics (self .output_channel , path , [])
143+ if diagnostic is not None :
144+ await _publish_diagnostics (self .output_channel , path , diagnostic )
145+
138146 async def wait_for_exit (self ) -> int :
139147 while True :
140148 async with _read_lsp_request (
You can’t perform that action at this time.
0 commit comments