Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

Commit 6cb632f

Browse files
committed
refactor: use vendored credo-language-server
1 parent d212f1a commit 6cb632f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88

99
let credoClient: LanguageClient;
1010

11-
export async function activate(_context: vscode.ExtensionContext) {
11+
export async function activate(context: vscode.ExtensionContext) {
1212
let files = await vscode.workspace.findFiles("mix.exs");
1313

1414
let config = vscode.workspace.getConfiguration("elixir-tools.credo");
@@ -19,8 +19,8 @@ export async function activate(_context: vscode.ExtensionContext) {
1919
if (text.toString().includes("{:credo")) {
2020
if (config.get("enable")) {
2121
const serverOptions: Executable = {
22-
command: "mix",
23-
args: ["credo.lsp", "--stdio"],
22+
command: context.asAbsolutePath("./bin/credo-language-server"),
23+
args: ["--stdio"],
2424
};
2525
const clientOptions: LanguageClientOptions = {
2626
documentSelector: [{ scheme: "file", language: "elixir" }],

0 commit comments

Comments
 (0)