@@ -60,6 +60,8 @@ Defaults to side following treemacs default."
6060
6161; ;; Internal
6262
63+ (lsp-interface (OutlineNotification (:uri :outline ) nil ))
64+
6365(defun lsp-dart-outline--set-metadata (workspace params key-prefix )
6466 " Save in WORKSPACE the PARAMS metadata with KEY-PREFIX.
6567The key is composed of the KEY-PREFIX with PARAMS uri path."
@@ -211,18 +213,30 @@ Focus on it if IGNORE-FOCUS? is nil."
211213 (select-window window)
212214 (set-window-dedicated-p window t ))))
213215
214- (defun lsp-dart-outline-handle-outline (workspace params )
216+ (lsp- defun lsp-dart-outline-handle-outline (workspace (notification &as &OutlineNotification :uri :outline ) )
215217 " Outline notification handling from WORKSPACE.
216218PARAMS outline notification data sent.
217219It updates the outline view if it already exists."
218- (lsp-dart-outline--set-metadata workspace params " current-outline" )
219- (-let (((&hash " uri" " outline" ) params))
220- (when lsp-dart-main-code-lens
221- (lsp-dart-code-lens-check-main uri outline))
222- (when lsp-dart-test-code-lens
223- (lsp-dart-code-lens-check-test uri outline))
224- (when (get-buffer-window " *Dart Outline*" )
225- (lsp-dart-outline--show-outline (lsp--buffer-for-file (lsp--uri-to-path uri)) t ))))
220+ (lsp-dart-outline--set-metadata workspace notification " current-outline" )
221+ (when lsp-dart-main-code-lens
222+ (lsp-dart-code-lens-check-main uri outline))
223+ (when lsp-dart-test-code-lens
224+ (lsp-dart-code-lens-check-test uri outline))
225+ (when (get-buffer-window " *Dart Outline*" )
226+ (lsp-dart-outline--show-outline (lsp--buffer-for-file (lsp--uri-to-path uri)) t )))
227+
228+ ; ; (defun lsp-dart-outline-handle-outline (workspace params)
229+ ; ; "Outline notification handling from WORKSPACE.
230+ ; ; PARAMS outline notification data sent.
231+ ; ; It updates the outline view if it already exists."
232+ ; ; (lsp-dart-outline--set-metadata workspace params "current-outline")
233+ ; ; (-let (((&hash "uri" "outline") params))
234+ ; ; (when lsp-dart-main-code-lens
235+ ; ; (lsp-dart-code-lens-check-main uri outline))
236+ ; ; (when lsp-dart-test-code-lens
237+ ; ; (lsp-dart-code-lens-check-test uri outline))
238+ ; ; (when (get-buffer-window "*Dart Outline*")
239+ ; ; (lsp-dart-outline--show-outline (lsp--buffer-for-file (lsp--uri-to-path uri)) t))))
226240
227241(defun lsp-dart-outline-handle-flutter-outline (workspace params )
228242 " Flutter outline notification handling from WORKSPACE.
0 commit comments