Skip to content

Commit

Permalink
Debug: Add buildConfiguration change logs
Browse files Browse the repository at this point in the history
It could be useful to troubleshoot future errors linked to this event.
  • Loading branch information
deribaucourt committed Jan 10, 2025
1 parent 664947b commit 5f630b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/ui/BitbakeConfigPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 5f630b7

Please sign in to comment.