mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-29 03:44:06 +08:00
fix: annotate shared sandbox test hooks
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user