File tree 1 file changed +9
-1
lines changed
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(
95
95
)
96
96
return result
97
97
98
- async def update_errors (self , document_path ) -> None :
98
+ async def update_errors (self , document_path : Path ) -> None :
99
99
await _publish_diagnostics (self .output_channel , document_path , [])
100
100
pyre_connection = api_connection .PyreConnection (
101
101
Path (self .pyre_arguments .global_root )
@@ -135,6 +135,14 @@ async def log_and_show_message_to_client(
135
135
LOG .debug (message )
136
136
await self .show_message_to_client (message , level )
137
137
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
+
138
146
async def wait_for_exit (self ) -> int :
139
147
while True :
140
148
async with _read_lsp_request (
You can’t perform that action at this time.
0 commit comments