Skip to content

Commit d848691

Browse files
authored
feat(plugins): use release build of Argon LSP in plugins (#96)
* feat(plugins): use release build of Argon LSP in plugins * update lsp server
1 parent c75b016 commit d848691

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Begin by cloning and compiling the Argon source code:
4141
```bash
4242
git clone https://github.com/ucb-substrate/argon.git
4343
cd argon
44-
cargo b
44+
cargo b --release
4545
```
4646

4747
### Neovim

core/lsp-server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl Backend {
374374
tokio::spawn(async move {
375375
match Command::new(concat!(
376376
env!("CARGO_MANIFEST_DIR"),
377-
"/../../target/debug/gui"
377+
"/../../target/release/gui"
378378
))
379379
.arg(format!("{}", state.server_addr))
380380
.stdin(Stdio::null())

plugins/nvim/lua/argon_lsp/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ M.start = function(bufnr)
7272
end
7373
local lsp_start_config = {
7474
name = 'argon_lsp',
75-
cmd = { config.argon_repo_path ..'/target/debug/lsp-server' },
75+
cmd = { config.argon_repo_path ..'/target/release/lsp-server' },
7676
handlers = {
7777
['custom/forceSave'] = function(err, result, ctx)
7878
local bufnr = vim.fn.bufnr(result)

plugins/vscode/client/src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function findWorkspaceRoot(startPath: string): string | undefined {
3838

3939
export function activate(context: ExtensionContext) {
4040
// The server is implemented in node
41-
const serverModule = path.join(workspace.getConfiguration(undefined, undefined).argonLsp.argonRepoDir, 'target', 'debug', 'lsp-server')
41+
const serverModule = path.join(workspace.getConfiguration(undefined, undefined).argonLsp.argonRepoDir, 'target', 'release', 'lsp-server')
4242
console.log(serverModule);
4343

4444
// If the extension is launched in debug mode then the debug server options are used
@@ -143,4 +143,4 @@ export function deactivate(): Thenable<void> | undefined {
143143
return undefined;
144144
}
145145
return client.stop();
146-
}
146+
}

0 commit comments

Comments
 (0)