File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
extensions/fine_python_pyrefly/fine_python_pyrefly Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ class PyreflyLintHandlerConfig(code_action.ActionHandlerConfig):
18
18
class PyreflyLintHandler (
19
19
code_action .ActionHandler [lint_action .LintAction , PyreflyLintHandlerConfig ]
20
20
):
21
+ """
22
+ NOTE: pyrefly currently can check only saved files, not file content provided by
23
+ FineCode. In environments like IDE, messages from pyrefly will be updated only after
24
+ save of a file.
25
+ """
21
26
CACHE_KEY = "PyreflyLinter"
22
27
23
28
def __init__ (
@@ -90,10 +95,7 @@ async def run_pyrefly_lint_on_single_file(
90
95
91
96
cmd_str = " " .join (cmd )
92
97
pyrefly_process = await self .command_runner .run (cmd_str )
93
-
94
- pyrefly_process .write_to_stdin (file_content )
95
- pyrefly_process .close_stdin () # Signal EOF
96
-
98
+
97
99
await pyrefly_process .wait_for_end ()
98
100
99
101
output = pyrefly_process .get_output ()
You can’t perform that action at this time.
0 commit comments