@@ -133,7 +133,7 @@ OUTLINES are the outline items."
133133 " Build the action options for the Flutter outline tree view.
134134URI is the source of the outline.
135135RANGE is the range for currently build item."
136- (-when-let (buffer (lsp-- buffer-for-file (lsp--uri-to-path uri)))
136+ (-when-let (buffer (find- buffer-visiting (lsp--uri-to-path uri)))
137137 (with-current-buffer buffer
138138 (goto-char (-> range lsp--range-to-region car ))
139139 (->> (lsp-code-actions-at-point)
@@ -218,7 +218,7 @@ It updates the outline view if it already exists."
218218 (when lsp-dart-test-code-lens
219219 (lsp-dart-code-lens-check-test uri outline))
220220 (when (get-buffer-window " *Dart Outline*" )
221- (lsp-dart-outline--show-outline (lsp-- buffer-for-file (lsp--uri-to-path uri)) t )))
221+ (lsp-dart-outline--show-outline (find- buffer-visiting (lsp--uri-to-path uri)) t )))
222222
223223(lsp-defun lsp-dart-outline-handle-flutter-outline (workspace (notification &as &FlutterOutlineNotification :uri ))
224224 " Flutter outline notification handling from WORKSPACE.
@@ -228,7 +228,7 @@ It updates the Flutter outline view if it already exists."
228228 (when lsp-dart-flutter-widget-guides
229229 (lsp-dart-flutter-widget-guide-check notification))
230230 (when (get-buffer-window " *Flutter Outline*" )
231- (lsp-dart-outline--show-flutter-outline (lsp-- buffer-for-file (lsp--uri-to-path uri)) t )))
231+ (lsp-dart-outline--show-flutter-outline (find- buffer-visiting (lsp--uri-to-path uri)) t )))
232232
233233
234234; ;; Public interface
0 commit comments