sync
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { App } from "../app/app"
|
|
||||||
import { Log } from "../util/log"
|
import { Log } from "../util/log"
|
||||||
import { LSPClient } from "./client"
|
import { LSPClient } from "./client"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
@@ -69,9 +68,9 @@ export namespace LSP {
|
|||||||
}
|
}
|
||||||
servers[name] = {
|
servers[name] = {
|
||||||
...existing,
|
...existing,
|
||||||
root: existing?.root ?? (async (_file, app) => app.path.root),
|
root: existing?.root ?? (async () => Paths.directory),
|
||||||
extensions: item.extensions ?? existing.extensions,
|
extensions: item.extensions ?? existing.extensions,
|
||||||
spawn: async (_app, root) => {
|
spawn: async (root) => {
|
||||||
return {
|
return {
|
||||||
process: spawn(item.command[0], item.command.slice(1), {
|
process: spawn(item.command[0], item.command.slice(1), {
|
||||||
cwd: root,
|
cwd: root,
|
||||||
|
|||||||
Reference in New Issue
Block a user