File tree Expand file tree Collapse file tree 6 files changed +310
-41
lines changed Expand file tree Collapse file tree 6 files changed +310
-41
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ lsp-dart supports running Flutter and Dart commands as following:
184
184
| ` lsp-dart-flutter-outline-position-params ` | The Flutter outline tree position params | Left side |
185
185
| ` lsp-dart-flutter-fringe-colors ` | Enable the Flutter colors on fringe. | ` t ` |
186
186
| ` lsp-dart-flutter-widget-guides ` | Enable the Flutter widget guide lines from parent to child widgets | ` t ` |
187
+ | ` lsp-dart-test-pop-to-buffer-on-run ` | Whether to pop to tests buffer on run, only display or do nothing. | ` display-only ` |
187
188
| ` lsp-dart-main-code-lens ` | Enable the ` Run\|Debug ` code lens on main methods. | ` t ` |
188
189
| ` lsp-dart-test-code-lens ` | Enable the ` Run\|Debug ` code lens on tests. | ` t ` |
189
190
| ` lsp-dart-dap-extension-version ` | The debugger extension version. | 3.10.1 |
Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ RANGE is the overlay range to build."
141
141
(line-beginning-position )))
142
142
(spaces (make-string beg-position ?\s ))
143
143
(overlay (make-overlay beg-line end buffer))
144
- (test (make-lsp-dart-test :file-name (buffer-file-name buffer)
145
- :names names
146
- :position beg
147
- :kind kind))
144
+ (test (make-lsp-dart-test-len :file-name (buffer-file-name buffer)
145
+ :names names
146
+ :position beg
147
+ :kind kind))
148
148
(separator (propertize " " 'font-lock-face 'lsp-dart-code-lens-separator )))
149
149
(overlay-put overlay 'lsp-dart-test-code-lens t )
150
150
(overlay-put overlay 'lsp-dart-test test)
Original file line number Diff line number Diff line change 59
59
(make-comint-in-buffer lsp-dart-flutter-daemon-name buffer (lsp-dart-flutter-command) nil " daemon" )
60
60
(with-current-buffer buffer
61
61
(unless (derived-mode-p 'lsp-dart-flutter-daemon-mode )
62
- (lsp-dart-flutter-daemon-mode)))
63
- (remove-hook 'comint-output-filter-functions #'lsp-dart-flutter-daemon--handle-responses )
64
- (remove-hook 'dap-terminated-hook #'lsp-dart-flutter-daemon--reset-current-device )
65
- (add-hook 'comint-output-filter-functions #'lsp-dart-flutter-daemon--handle-responses )
66
- (add-hook 'dap-terminated-hook #'lsp-dart-flutter-daemon--reset-current-device )
62
+ (lsp-dart-flutter-daemon-mode))
63
+ (remove-hook 'dap-terminated-hook #'lsp-dart-flutter-daemon--reset-current-device t )
64
+ (add-hook 'dap-terminated-hook #'lsp-dart-flutter-daemon--reset-current-device nil t )
65
+ (setq-local comint-output-filter-functions #'lsp-dart-flutter-daemon--handle-responses ))
67
66
(lsp-dart-flutter-daemon--send " device.enable" ))))
68
67
69
68
(defun lsp-dart-flutter-daemon--build-command (id method &optional params )
Original file line number Diff line number Diff line change 53
53
(FlutterDaemonDevice (:id :name :platform :category :platformType :ephemeral :emulator ) (:isDevice ))
54
54
(FlutterDaemonEmulatorLaunch (:emulatorId )))
55
55
56
+ (lsp-interface
57
+ (Notification (:type :time ) nil )
58
+ (StartNotification (:type :time :protocolVersion ) (:runnerVersion ))
59
+ (AllSuitesNotification (:type :time :count ) nil )
60
+ (SuiteNotification (:type :time :suite ) nil )
61
+ (Suite (:id :platform :path ) nil )
62
+ (Test (:id :suiteID :groupIDs ) (:name :line :column :url :root_line :root_column :root_url ))
63
+ (TestNotification (:type :time :test ) nil )
64
+ (Group (:testCount ) (:parentID ))
65
+ (GroupNotification (:type :time :group ) nil )
66
+ (TestStartNotification (:type :time :test ) nil )
67
+ (TestDoneNotification (:type :time :testID :result :skipped :hidden ) nil )
68
+ (DoneNotification (:type :time :success ) nil )
69
+ (PrintNotification (:type :time :testID :messageType :message ) nil )
70
+ (ErrorNotification (:type :time :testID :error :stackTrace :isFailure ) nil ))
71
+
56
72
(provide 'lsp-dart-protocol )
57
73
; ;; lsp-dart-protocol.el ends here
You can’t perform that action at this time.
0 commit comments