Skip to content

Commit f62839f

Browse files
committed
fixed missing typing for some arguments
1 parent 20ad506 commit f62839f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client/commands/v2/pysa_server.py

+9-1
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)