From 9fa423710732790de5052006b257afcac771d26e Mon Sep 17 00:00:00 2001 From: Mario Rial Date: Wed, 23 Sep 2026 09:44:15 -0400 Subject: [PATCH] Bump the bundled pyrefly to 1.2.0 (#2021) pyrefly 1.1.1 advertises workspace/willRenameFiles but answers it with null; 1.2.0 answers with the import edits (measured on the Python test repo). Needed by the file-rename support that follows. --- CHANGELOG.md | 3 +++ src/solidlsp/language_servers/pyrefly_server.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9280692c..ea9c7316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -126,6 +126,9 @@ Status of the `main` branch. Changes prior to the next official version change w version changed - Fix: A language server's cache directory was determined by the language_id rather than the language server identifier's key. The two identifiers coincided in most cases. + - Bump the bundled pyrefly to 1.2.0: 1.1.1 advertises `workspace/willRenameFiles` but answers it with `null`; + 1.2.0 answers with the import edits (measured on the Python test repo: the two absolute importers of a + renamed module; a relative import of it, `from .models import`, is not rewritten by either) - Fix: TypeScript and VTS now disable automatic type acquisition as intended, while VTS preserves explicit user settings across initialization and configuration requests (#1989) VTS initialization options now override defaults per top-level key rather than replacing the diff --git a/src/solidlsp/language_servers/pyrefly_server.py b/src/solidlsp/language_servers/pyrefly_server.py index c8b1c9b0..3bd942be 100644 --- a/src/solidlsp/language_servers/pyrefly_server.py +++ b/src/solidlsp/language_servers/pyrefly_server.py @@ -30,7 +30,7 @@ from solidlsp.settings import SolidLSPSettings log = logging.getLogger(__name__) -PYREFLY_VERSION = "1.1.1" +PYREFLY_VERSION = "1.2.0" PYREFLY_CONFIG_DOC_URL = "https://pyrefly.org/en/docs/configuration/" # Pyrefly cancels in-flight requests with these error codes whenever its workspace state mutates