Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/resources/vscode/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class VscodeResource extends Resource<VscodeConfig> {
const vscodeDebPath = path.join(tmpDir, 'vscode.deb');

try {
await FileUtils.downloadFile(downloadLink, vscodeDebPath);
await $.spawn(`curl -fsSL --retry 5 --retry-delay 3 --retry-connrefused "${downloadLink}" -o "${vscodeDebPath}"`);
await $.spawn('apt-get update -y', { requiresRoot: true, env: { DEBIAN_FRONTEND: 'noninteractive' } });
await $.spawn('debconf-set-selections <<< "code code/add-microsoft-repo boolean true"', { requiresRoot: true });
await $.spawn('apt-get install ./vscode.deb -y --fix-missing', { cwd: tmpDir, requiresRoot: true, env: { DEBIAN_FRONTEND: 'noninteractive', NEEDRESTART_MODE: 'a' } });
Expand Down