Testing and CI/CD

This commit is contained in:
Mateusz Tymek
2026-01-08 11:16:41 +01:00
parent ee0e9069c5
commit f14cdf15a0
7 changed files with 293 additions and 4 deletions

View File

@@ -129,7 +129,7 @@ export class ProcessManager {
});
// Wait for server to be ready
const ready = await this.waitForServerOrExit(15000);
const ready = await this.waitForServerOrExit(this.settings.startupTimeout);
if (ready) {
this.setState("running");
return true;

View File

@@ -4,6 +4,7 @@ export interface OpenCodeSettings {
autoStart: boolean;
opencodePath: string;
projectDirectory: string;
startupTimeout: number;
}
export const DEFAULT_SETTINGS: OpenCodeSettings = {
@@ -12,6 +13,7 @@ export const DEFAULT_SETTINGS: OpenCodeSettings = {
autoStart: false,
opencodePath: "opencode",
projectDirectory: "",
startupTimeout: 15000,
};
export const OPENCODE_VIEW_TYPE = "opencode-view";