Skip to content

Commit a8d0443

Browse files
committed
Leave trace in the logs and mention Do Not Disturb mode, since it is very common issue
1 parent 7b90790 commit a8d0443

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/extension.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ export function activate(context: vscode.ExtensionContext) {
5757

5858
const binFolder = vscode.Uri.joinPath(context.globalStorageUri, 'bin');
5959

60-
installRzkIfNotExists({ binFolder });
60+
installRzkIfNotExists({ binFolder }).catch((e) => {
61+
output.appendLine(
62+
'installRzkIfNotExists failed: ' +
63+
(e instanceof Error ? e.stack ?? e.message : String(e))
64+
);
65+
});
6166

6267
context.environmentVariableCollection.append(
6368
'PATH',

src/installRzk.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ export async function installRzkIfNotExists({
8484
return;
8585
}
8686

87+
output.appendLine(
88+
"Prompting to install rzk — if you don't see a prompt, VS Code's Do Not Disturb mode is likely suppressing it."
89+
);
8790
// Ignore the returned promise to not block the rest of the code waiting for user input
8891
void vscode.window
8992
.showWarningMessage(
@@ -256,7 +259,9 @@ export async function checkForUpdates(binPath: string, binFolder?: vscode.Uri) {
256259
output.appendLine('Local rzk version is already the latest available 👍');
257260
return;
258261
}
259-
output.appendLine('An update is available. Prompting the user');
262+
output.appendLine(
263+
"An update is available. Prompting the user — if you don't see a prompt, VS Code's Do Not Disturb mode is likely suppressing it."
264+
);
260265
if (binFolder) {
261266
vscode.window
262267
.showWarningMessage(

0 commit comments

Comments
 (0)