|
|
@@ -2043,4 +2043,22 @@ export namespace LSPServer {
|
|
|
}
|
|
|
},
|
|
|
}
|
|
|
+
|
|
|
+ export const JuliaLS: Info = {
|
|
|
+ id: "julials",
|
|
|
+ extensions: [".jl"],
|
|
|
+ root: NearestRoot(["Project.toml", "Manifest.toml", "*.jl"]),
|
|
|
+ async spawn(root) {
|
|
|
+ const julia = Bun.which("julia")
|
|
|
+ if (!julia) {
|
|
|
+ log.info("julia not found, please install julia first (https://julialang.org/downloads/)")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ process: spawn(julia, ["--startup-file=no", "--history-file=no", "-e", "using LanguageServer; runserver()"], {
|
|
|
+ cwd: root,
|
|
|
+ }),
|
|
|
+ }
|
|
|
+ },
|
|
|
+ }
|
|
|
}
|