Skip to content

Commit d8c748a

Browse files
committed
Improve project support
1 parent f5b0d81 commit d8c748a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
* Understand by default that dart codes inside `~/.pub-cache` are libraries and not projects, avoiding asking to import the project.
6+
* Avoid warnings about "No event handler for 'debug' during dap-debug tests".
7+
58
## 1.24.0
69

710
* Handle `flutter.appStarted` notification during debug.

lsp-dart-test-support.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ NOTIFICATION is the event notification.")
159159
"Handle error NOTIFICATION."
160160
(run-hook-with-args 'lsp-dart-test-error-notification-hook notification))
161161

162+
(cl-defmethod lsp-dart-test--handle-notification ((_event (eql debug)) _notification)
163+
"Ignore this event")
164+
162165
(defun lsp-dart-test--clean-process-buffer ()
163166
"Clean test process buffer."
164167
(when-let (process-buffer (get-buffer lsp-dart-test--process-buffer-name))

lsp-dart.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
:type '(repeat string)
5555
:group 'lsp-dart)
5656

57-
(defcustom lsp-dart-extra-library-directories '()
57+
(defcustom lsp-dart-extra-library-directories (list (expand-file-name "~/.pub-cache"))
5858
"List of directories which will be considered to be libraries."
5959
:risky t
6060
:type '(repeat string)

0 commit comments

Comments
 (0)