Commit d8fbdfd 1 parent 7e0d71a commit d8fbdfd Copy full SHA for d8fbdfd
File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
version of persistent.py.
10
10
"""
11
11
12
- from pathlib import Path
13
12
import asyncio
14
13
import logging
14
+ from pathlib import Path
15
+ from typing import List , Sequence , Dict
15
16
16
17
from ... import (
17
18
json_rpc ,
34
35
InitializationSuccess ,
35
36
InitializationFailure ,
36
37
)
37
- from api import query , connection as api_connection
38
- from api .connection import PyreQueryError
39
- from typing import List , Sequence , Dict
38
+ from ....api import query , connection as api_connection
39
+ from ....api .connection import PyreQueryError
40
40
41
41
LOG : logging .Logger = logging .getLogger (__name__ )
42
42
@@ -102,6 +102,7 @@ def invalid_models_to_diagnostics(
102
102
return result
103
103
104
104
async def update_errors (self , document_path : Path ) -> None :
105
+ # Publishing empty diagnostics to clear errors in VSCode
105
106
await _publish_diagnostics (self .output_channel , document_path , [])
106
107
pyre_connection = api_connection .PyreConnection (
107
108
Path (self .pyre_arguments .global_root )
You can’t perform that action at this time.
0 commit comments