Fix Windows test: use .exe extension for fsautocomplete

This commit is contained in:
Bracken Spencer committed 2025-12-07 22:25:01 +01:00
1 parent d4d9da37d9
commit 8631984ed6
1 file changed
+3 -1
+3 -1
View File
@@ -208,7 +208,9 @@ class TestFSharpLanguageServerSetup:
# Create a fake fsautocomplete executable
fsharp_dir = os.path.join(temp_dir, "fsharp-lsp")
os.makedirs(fsharp_dir, exist_ok=True)
fsautocomplete_path = os.path.join(fsharp_dir, "fsautocomplete")
# Use .exe extension on Windows, matching production code
exe_name = "fsautocomplete.exe" if os.name == "nt" else "fsautocomplete"
fsautocomplete_path = os.path.join(fsharp_dir, exe_name)
Path(fsautocomplete_path).touch()
result = FSharpLanguageServer._setup_runtime_dependencies(mock_config, mock_settings)