Skip to content

Commit 9711b5d

Browse files
committed
Fix code actions on outline for recent dart sdk versions
1 parent 10b898e commit 9711b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-dart-outline.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ RANGE is the range for currently build item."
138138
(goto-char (-> range lsp--range-to-region car))
139139
(->> (lsp-code-actions-at-point)
140140
(-filter (-lambda ((&CodeAction :kind?))
141-
(and kind? (equal "refactor" kind?))))
141+
(and kind? (string-match "^refactor" kind?))))
142142
(-map (-lambda ((action &as &CodeAction :title))
143143
`[,title (lsp-execute-code-action ,action)]))))))
144144

0 commit comments

Comments
 (0)