File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,13 @@ async function createNativeServer(
176
176
177
177
logger . info ( `Found Ruff ${ versionToString ( ruffVersion ) } at ${ ruffBinaryPath } ` ) ;
178
178
179
- const isRedKnot = ruffBinaryPath . endsWith ( "red_knot" ) || ruffBinaryPath . endsWith ( "red_knot.exe" ) ;
179
+ const isTy =
180
+ ruffBinaryPath . endsWith ( "ty" ) ||
181
+ ruffBinaryPath . endsWith ( "ty.exe" ) ||
182
+ ruffBinaryPath . endsWith ( "red_knot" ) ||
183
+ ruffBinaryPath . endsWith ( "red_knot.exe" ) ;
180
184
181
- if ( ! isRedKnot ) {
185
+ if ( ! isTy ) {
182
186
if ( ! supportsNativeServer ( ruffVersion ) ) {
183
187
const message =
184
188
`Native server requires Ruff ${ versionToString (
@@ -197,7 +201,7 @@ async function createNativeServer(
197
201
}
198
202
199
203
let ruffServerArgs : string [ ] ;
200
- if ( isRedKnot ) {
204
+ if ( isTy ) {
201
205
ruffServerArgs = [ RUFF_SERVER_SUBCOMMAND ] ;
202
206
} else if ( supportsStableNativeServer ( ruffVersion ) ) {
203
207
ruffServerArgs = [ RUFF_SERVER_SUBCOMMAND ] ;
You can’t perform that action at this time.
0 commit comments