Use type param in getValue

This commit is contained in:
Daniel Imms
2026-02-13 10:19:53 -08:00
parent 2d4622e0ab
commit c6636b60fb

View File

@@ -28,7 +28,7 @@ class TerminalOscNotificationsContribution extends Disposable implements ITermin
) {
super();
this._handler = this._register(new TerminalNotificationHandler({
isEnabled: () => this._configurationService.getValue(TerminalOscNotificationsSettingId.EnableNotifications),
isEnabled: () => this._configurationService.getValue<boolean>(TerminalOscNotificationsSettingId.EnableNotifications) === true,
isWindowFocused: () => dom.getActiveWindow().document.hasFocus(),
isTerminalVisible: () => this._ctx.instance.isVisible,
focusTerminal: () => this._ctx.instance.focus(true),