From 02cd559fd98963ef87643fc287b979ddbd1645ad Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Mon, 6 Jan 2025 16:51:06 +0100 Subject: [PATCH] Debug: Add buildConfiguration change logs It could be useful to troubleshoot future errors linked to this event. --- client/src/ui/BitbakeConfigPicker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/ui/BitbakeConfigPicker.ts b/client/src/ui/BitbakeConfigPicker.ts index 2894f1f2..cfbbba46 100644 --- a/client/src/ui/BitbakeConfigPicker.ts +++ b/client/src/ui/BitbakeConfigPicker.ts @@ -6,6 +6,7 @@ import * as vscode from 'vscode' import { type BitbakeSettings } from '../lib/src/BitbakeSettings' import assert from 'assert' +import { logger } from '../lib/src/utils/OutputLogger' export class BitbakeConfigPicker { readonly statusBarItem: vscode.StatusBarItem @@ -22,6 +23,7 @@ export class BitbakeConfigPicker { this._activeBuildConfiguration = value this.onActiveConfigChanged.fire(value) void this.memento?.update('BitbakeConfigPicker.activeBuildConfiguration', value) + logger.info(`BitBake buildConfiguration changed to ${value}`) } constructor (bitbakeSettings: BitbakeSettings, context: vscode.ExtensionContext) {