mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
fix: lsp extension undefined handle (#2739)
This commit is contained in:
@@ -72,7 +72,7 @@ export namespace LSP {
|
|||||||
...existing,
|
...existing,
|
||||||
id: name,
|
id: name,
|
||||||
root: existing?.root ?? (async () => Instance.directory),
|
root: existing?.root ?? (async () => Instance.directory),
|
||||||
extensions: item.extensions ?? existing.extensions,
|
extensions: item.extensions ?? existing?.extensions ?? [],
|
||||||
spawn: async (root) => {
|
spawn: async (root) => {
|
||||||
return {
|
return {
|
||||||
process: spawn(item.command[0], item.command.slice(1), {
|
process: spawn(item.command[0], item.command.slice(1), {
|
||||||
|
|||||||
Reference in New Issue
Block a user