Skip to content

Commit 9ca7edb

Browse files
committed
build: download the latest LSP server on package
1 parent 9f22957 commit 9ca7edb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/build.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ async function build() {
2929
await buildExtAndWebview();
3030

3131
// Step 2: Download the Source LSP server
32-
const version = "0.0.6";
32+
// TODO: This is not ideal, LSP version is no longer locked. See issue#5
33+
// const version = "0.0.8";
3334
const lspFilename = "source-lsp.js";
34-
const url = `https://github.com/mug1wara26/source-lsp/releases/download/v${version}/${lspFilename}`;
35+
const url = `https://github.com/mug1wara26/source-lsp/releases/latest/download/${lspFilename}`;
3536
const outputPath = path.join(outputFolder, lspFilename); // Save in the same directory
3637
// Function below handles the 302 Found redirection from GitHub
3738
await downloadFile(url, outputPath);
38-
console.log("LSP server downloaded.");
39+
console.log(`LSP server downloaded from ${url}`);
3940
}
4041

4142
/**

0 commit comments

Comments
 (0)