Commit 80d02d2
committed
feat(server): share process across multiple instances
Add a lock file mechanism to coordinate a single server process among
multiple Neovim clients. Track ownership and active clients in
opencode-server.lock to ensure the process persists until the last
instance closes. Additionally, implement URI encoding for API queries.1 parent dab6ef9 commit 80d02d2
File tree
5 files changed
+605
-28
lines changed- lua/opencode
- tests/unit
5 files changed
+605
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
| 71 | + | |
69 | 72 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
394 | 396 | | |
395 | 397 | | |
396 | 398 | | |
397 | | - | |
| 399 | + | |
398 | 400 | | |
399 | 401 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 402 | + | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
0 commit comments