Fixed serverConfig.ts to pull voidVersion instead of version

This commit is contained in:
Joaquin Coromina 2025-03-30 18:40:41 -04:00 committed by GitHub
parent 885ebc8528
commit 499abdf26c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,12 +32,13 @@ export async function getVSCodeServerConfig(): Promise<IServerConfig> {
const customServerBinaryName = vscode.workspace.getConfiguration('remote.SSH.experimental').get<string>('serverBinaryName', '');
return {
version: vscode.version.replace('-insider', ''),
commit: productJson.commit,
quality: productJson.quality,
release: productJson.release,
serverApplicationName: customServerBinaryName || productJson.serverApplicationName,
serverDataFolderName: productJson.serverDataFolderName,
serverDownloadUrlTemplate: productJson.serverDownloadUrlTemplate
serverDownloadUrlTemplate: productJson.serverDownloadUrlTemplate,
// Edited for Void
version: productJson.voidVersion || vscode.version.replace('-insider', ''), // Try void version first, fallback to vscode version
};
}