Skip to content

Commit

Permalink
ruff fromEnvironment (vscode extension) not found under windows (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescElies authored Jan 3, 2023
1 parent fd80cfd commit d4b5c12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ruff_lsp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
import os
import pathlib
import platform
import re
import sys
import sysconfig
Expand Down Expand Up @@ -66,7 +67,7 @@
max_workers=MAX_WORKERS,
)

TOOL_MODULE = "ruff"
TOOL_MODULE = "ruff.exe" if platform.system() == "Windows" else "ruff"
TOOL_DISPLAY = "Ruff"
TOOL_ARGS = ["--no-cache", "--no-fix", "--quiet", "--format", "json", "-"]

Expand Down

0 comments on commit d4b5c12

Please sign in to comment.