Skip to content

Commit 232ebdf

Browse files
worksofliamThePrez
authored andcommitted
Make the client use a fixed server version
1 parent bfcbb87 commit 232ebdf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/connection/serverComponent.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ import { OutputChannel, commands, window } from "vscode";
99

1010
import { writeFile } from "fs/promises";
1111
import os from "os";
12-
import { JobManagerView } from "../views/jobManager/jobManagerView";
1312

1413
const octokit = new Octokit();
1514

15+
// During development, you can set the SERVER_VERSION in .vscode/launch.json
16+
// Otherwise, fall back to the working version
17+
const SERVER_VERSION = process.env[`SERVER_VERSION`] || `v1.0.0-alpha-32`;
18+
1619
const ExecutablePathDir = `$HOME/.vscode/`;
1720

1821
export enum UpdateStatus {
@@ -94,7 +97,7 @@ export class ServerComponent {
9497
const repo = `CodeForIBMiServer`;
9598

9699
try {
97-
const result = await octokit.request('GET /repos/{owner}/{repo}/releases/latest', {
100+
const result = await octokit.request(`GET /repos/{owner}/{repo}/releases/tags/${SERVER_VERSION}`, {
98101
owner,
99102
repo,
100103
headers: {

0 commit comments

Comments
 (0)