File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ bin = @["nimvscode"]
11
11
12
12
# Deps
13
13
14
- requires " nim >= 2.0.0"
14
+ requires " nim >= 2.0.0 & <= 2.1 "
15
15
16
16
import std/ os
17
17
Original file line number Diff line number Diff line change @@ -393,7 +393,8 @@ proc newNotificationItem*(notification: Notification): LspItem =
393
393
item.command.title = " Show Notification" .cstring
394
394
item.command.arguments = @ [notification.message.toJs ()]
395
395
item.tooltip = notification.message
396
- item.iconPath = vscode.themeIcon (notification.kind, vscode.themeColor (" notificationsInfoIcon.foreground" ))
396
+ let color = fmt" notifications{ capitalizeAscii ($ notification.kind)} Icon.foreground " .cstring
397
+ item.iconPath = vscode.themeIcon (notification.kind, vscode.themeColor (color))
397
398
cast [LspItem ](item)
398
399
399
400
proc isNotificationItem (item: LspItem ): bool =
You can’t perform that action at this time.
0 commit comments