8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e9eb8f commit 832bafbCopy full SHA for 832bafb
src/serialmonitor/serialMonitor.ts
@@ -176,9 +176,10 @@ export class SerialMonitor implements vscode.Disposable {
176
private checkForUndefinedSerialMonitorApi(showError: boolean = false): void {
177
const errorString = "Serial Monitor API was not retrieved. You may not have the most recent version of the Serial Monitor extension installed.";
178
if (this.serialMonitorApi === undefined) {
179
- Logger.error(errorString)
180
if (showError) {
181
- vscode.window.showErrorMessage(errorString);
+ Logger.notifyUserError("UndefinedSerialMonitorApi", new Error(errorString));
+ } else {
182
+ Logger.traceError("UndefinedSerialMonitorApi", new Error(errorString));
183
}
184
185
0 commit comments