mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-12 16:15:33 +00:00
Fix Windows test: use .exe extension for fsautocomplete
This commit is contained in:
1 file changed
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user