mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix(types): add node-mac-notifier ambient module and update import for macOS notifications
This commit is contained in:
parent
6deee8538e
commit
e636815d28
1 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ import { execa } from "execa"
|
|||
import { platform } from "os"
|
||||
import * as vscode from "vscode"
|
||||
import * as path from "path"
|
||||
import { Notification } from "node-mac-notifier"
|
||||
import Notification from "node-mac-notifier"
|
||||
|
||||
interface NotificationOptions {
|
||||
title?: string
|
||||
|
|
@ -23,8 +23,7 @@ async function showMacOSNotification(options: NotificationOptions): Promise<void
|
|||
icon: path.join(__dirname, "..", "..", "assets", "icons", "icon.png"),
|
||||
})
|
||||
|
||||
// Show the notification immediately
|
||||
notification.show()
|
||||
// Instantiating Notification displays it immediately on macOS (node-mac-notifier)
|
||||
} catch (error) {
|
||||
console.error("Failed to show macOS notification:", error)
|
||||
throw new Error(`Failed to show macOS notification: ${error}`)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue