fix: annotate shared sandbox test hooks

This commit is contained in:
Marius
2026-06-23 21:20:57 +02:00
parent 513f26c2b0
commit d2dd905434
2 changed files with 10 additions and 5 deletions
+4 -2
View File
@@ -2,7 +2,7 @@ import { afterEach, describe, expect } from "bun:test"
import path from "path"
import fs from "fs/promises"
import { fileURLToPath, pathToFileURL } from "url"
import { Effect, Exit, Layer, Result, Schema } from "effect"
import { Effect, Exit, Layer, Result, Schema } from "effect" // kilocode_change
import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner"
import { ToolRegistry } from "@/tool/registry"
import { Tool } from "@/tool/tool"
@@ -108,9 +108,11 @@ const scout = testEffect(
const withBrokenPlugin = testEffect(
Layer.mergeAll(registryLayer({ plugin: brokenPluginLayer }), node, Agent.defaultLayer),
)
// kilocode_change start
const sandboxed = testEffect(
Layer.mergeAll(registryLayer({ flags: { experimentalLspTool: true } }), node, Agent.defaultLayer),
) // kilocode_change
)
// kilocode_change end
afterEach(async () => {
await disposeAllInstances()
+6 -3
View File
@@ -5,14 +5,17 @@ import type { ComponentProps, ParentProps } from "solid-js"
export interface SwitchProps extends ParentProps<ComponentProps<typeof Kobalte>> {
hideLabel?: boolean
description?: string
inputProps?: ComponentProps<typeof Kobalte.Input>
inputProps?: ComponentProps<typeof Kobalte.Input> // kilocode_change
}
export function Switch(props: SwitchProps) {
const [local, others] = splitProps(props, ["children", "class", "hideLabel", "description", "inputProps"])
const [local, others] = splitProps(
props,
["children", "class", "hideLabel", "description", "inputProps"], // kilocode_change
)
return (
<Kobalte {...others} class={local.class} data-component="switch">
<Kobalte.Input {...local.inputProps} data-slot="switch-input" />
<Kobalte.Input {...local.inputProps} data-slot="switch-input" /> {/* kilocode_change */}
<Show when={local.children}>
<Kobalte.Label data-slot="switch-label" classList={{ "sr-only": local.hideLabel }}>
{local.children}