Skip to content

Commit 5e45269

Browse files
pxoralehander92
authored andcommitted
fix: Regression with the extension build after the notifications fix
1 parent 0f48e59 commit 5e45269

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/frontend/event_helpers.nim

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@ import std / jsffi
22
import .. / common / ct_event
33
import types
44
import communication, dap
5-
import utils
5+
import lib
6+
7+
const HISTORY_JUMP_VALUE*: string = "history-jump"
8+
9+
proc makeNotification*(kind: NotificationKind, text: cstring, isOperationStatus: bool = false): Notification =
10+
Notification(
11+
kind: kind,
12+
text: text,
13+
time: Date.now(),
14+
active: true,
15+
isOperationStatus: isOperationStatus)
616

717
proc ctSourceLineJump*(dap: DapApi, line: int, path: cstring, behaviour: JumpBehaviour) {.exportc.} =
818
let target = SourceLineJumpTarget(

src/frontend/utils.nim

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ var kxiMap* = JsAssoc[cstring, KaraxInstance]{}
77
const VALUE_COMPONENT_NAME_WIDTH*: float = 40.0
88
const VALUE_COMPONENT_VALUE_WIDTH*: float = 55.0
99

10-
const HISTORY_JUMP_VALUE*: string = "history-jump"
11-
1210
proc asyncSend*[T](data: Data, id: string, arg: T, argId: string, U: type, noCache: bool = false): Future[U]
1311
proc removeEditorFromClosedTabs*(data: Data, path: cstring)
1412
proc removeEditorFromLoading*(data: Data, path: cstring)
@@ -842,14 +840,6 @@ proc removeEditorFromLoading*(data: Data, path: cstring) =
842840
if editorPathIndex != -1:
843841
editorService.loading.delete(editorPathIndex)
844842

845-
proc makeNotification*(kind: NotificationKind, text: cstring, isOperationStatus: bool = false): Notification =
846-
Notification(
847-
kind: kind,
848-
text: text,
849-
time: Date.now(),
850-
active: true,
851-
isOperationStatus: isOperationStatus)
852-
853843
proc openLayoutTab*(
854844
data: Data,
855845
content: Content,

0 commit comments

Comments
 (0)