From e966adfb2486cb7ae66f2bb1d674783e02d82a9f Mon Sep 17 00:00:00 2001 From: yaegassy Date: Fri, 14 Jun 2024 20:26:05 +0900 Subject: [PATCH] chore: update docs --- README.md | 2 +- src/index.ts | 1 - src/tool.ts | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 25e87ec..011984b 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ If you do not need this feature, set `ruff.useDetectRuffCommand` to `false`. } ``` -## [EXPERIMENTAL] Enabling the Rust-based language server +### [EXPERIMENTAL] Enabling the Rust-based language server To use the new Rust-based language server (ruff server), you'll need to enable the `ruff.nativeServer` setting in the coc-settings.json: diff --git a/src/index.ts b/src/index.ts index 5aa5317..50781f0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,6 @@ import { ExtensionContext, LanguageClient, services, window, workspace } from 'coc.nvim'; import fs from 'fs'; -import which from 'which'; import { createLanguageClient, createNativeServerClient } from './client'; import * as builtinInstallServerCommandFeature from './commands/builtinInstallServer'; diff --git a/src/tool.ts b/src/tool.ts index cf37e25..0c60f7b 100644 --- a/src/tool.ts +++ b/src/tool.ts @@ -85,6 +85,7 @@ export async function getRuffBinaryPath() { return rufrBinaryPath; } +// eslint-disable-next-line @typescript-eslint/no-unused-vars async function getToolVersion(command: string): Promise { const versionCmd = `${command} --version`; @@ -96,6 +97,7 @@ async function getToolVersion(command: string): Promise { } } +// eslint-disable-next-line @typescript-eslint/no-unused-vars function isRuffNativeServerSupported(versionStr: string): boolean { const parsedSemver = semver.parse(versionStr); if (parsedSemver) {