Skip to content

Commit

Permalink
✨ Enhance server process and status handling (#166)
Browse files Browse the repository at this point in the history
Resolves: #133
Resolves: #135

Use additional child_process eventing to keep track of the server
process itself. This lets the extension time the initialize call better,
and be able to "cleanly" shutdown the `kai-rpc-server`. If the
`kai-rpc-server` is killed or terminated externally, it will be noticed
and the extension will understand the server is stopped.

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 authored Dec 13, 2024
1 parent f9aa5b6 commit 622ba45
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 123 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions shared/src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ export interface ExtensionData {

export type ServerState =
| "initial"
| "configurationNeeded"
| "configurationReady"
| "starting"
| "readyToInitialize"
| "startFailed"
| "running"
| "stopping"
Expand Down
Loading

0 comments on commit 622ba45

Please sign in to comment.