Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yaegassy committed Jun 14, 2024
1 parent 5b20446 commit e966adf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 2 additions & 0 deletions src/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | undefined> {
const versionCmd = `${command} --version`;

Expand All @@ -96,6 +97,7 @@ async function getToolVersion(command: string): Promise<string | undefined> {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function isRuffNativeServerSupported(versionStr: string): boolean {
const parsedSemver = semver.parse(versionStr);
if (parsedSemver) {
Expand Down

0 comments on commit e966adf

Please sign in to comment.