Skip to content

Commit acf4d3e

Browse files
committed
Avoid outdated test tree after tests run.
1 parent d8c748a commit acf4d3e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Understand by default that dart codes inside `~/.pub-cache` are libraries and not projects, avoiding asking to import the project.
66
* Avoid warnings about "No event handler for 'debug' during dap-debug tests".
7+
* Avoid outdated test tree after tests run.
78

89
## 1.24.0
910

lsp-dart-test-tree.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ POSITION is the test start position."
332332
"Handle test done notification."
333333
(lsp-dart-test-tree-mark-as-done test-id (- time test-start-time) result skipped))
334334

335+
(defun lsp-dart-test-tree--handle-all-done (_params)
336+
"Handle test done notification."
337+
(lsp-dart-test-tree--render))
338+
335339

336340
;;; Public
337341

@@ -408,6 +412,7 @@ POSITION is the test start position."
408412
(add-hook 'lsp-dart-test-group-notification-hook #'lsp-dart-test-tree--handle-group)
409413
(add-hook 'lsp-dart-test-start-notification-hook #'lsp-dart-test-tree--handle-start)
410414
(add-hook 'lsp-dart-test-done-notification-hook #'lsp-dart-test-tree--handle-done)
415+
(add-hook 'lsp-dart-test-all-done-notification-hook #'lsp-dart-test-tree--handle-all-done)
411416

412417
(provide 'lsp-dart-test-tree)
413418
;;; lsp-dart-test-tree.el ends here

0 commit comments

Comments
 (0)