Skip to content

Commit af87ec1

Browse files
committed
Display Ada extension errors in a popup
1 parent a153371 commit af87ec1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

integration/vscode/ada/src/extension.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
115115
mainLogChannel = vscode.window.createOutputChannel('Ada Extension');
116116
mainLogChannel.appendLine('Starting Ada extension');
117117

118-
assertSupportedEnvironments();
119-
120118
context.subscriptions.push(
121119
vscode.commands.registerCommand('ada.showExtensionOutput', () => mainLogChannel.show())
122120
);
123121

122+
assertSupportedEnvironments();
123+
124124
// Log the environment that the extension (and all VS Code) will be using
125125
const customEnv = getEvaluatedCustomEnv();
126126

@@ -411,6 +411,7 @@ function assertSupportedEnvironments() {
411411
}
412412

413413
function logErrorAndThrow(msg: string) {
414+
void vscode.window.showErrorMessage(msg);
414415
mainLogChannel.appendLine('[Error] ' + msg);
415416
throw new Error(msg);
416417
}

0 commit comments

Comments
 (0)