Skip to content

Commit b59a485

Browse files
committed
feat: handle dart language-server
The dart-sdk that comes with flutter doesn't include the snapshots by default. This is also the recommended approach according to the docs.
1 parent 0f16375 commit b59a485

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lsp-dart.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ If unspecified, diagnostics will not be generated."
114114
"Generate LSP startup command."
115115
(or lsp-dart-server-command
116116
(list (lsp-dart-dart-command)
117-
(expand-file-name (f-join (lsp-dart-get-sdk-dir) "bin/snapshots/analysis_server.dart.snapshot"))
118-
"--lsp"
117+
"language-server"
119118
"--client-id emacs.lsp-dart"
120119
(format "--client-version %s" lsp-dart-version-string))))
121120

0 commit comments

Comments
 (0)