Skip to content

Commit 13480c3

Browse files
committed
add function to update installed language server
1 parent 39e2bfe commit 13480c3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lsp-julia.el

+11
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,17 @@ body."
288288
(lsp-julia--symbol-server-store-path-to-jl) ");"
289289
" run(server);")))
290290

291+
(defun lsp-julia-update-languageserver ()
292+
"The command to update the Julia Language Server."
293+
(interactive)
294+
(apply 'start-process
295+
"lsp-julia-languageserver-updater"
296+
"*lsp-julia-languageserver-updater*"
297+
lsp-julia-command
298+
(append lsp-julia-flags
299+
'("-e import Pkg; println(Pkg.project().path); Pkg.update()"))
300+
))
301+
291302
(defconst lsp-julia--handlers
292303
'(("window/setStatusBusy" .
293304
(lambda (w _p)))

0 commit comments

Comments
 (0)