mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-19 07:44:55 +01:00
fix: correct dirs parameter type in file search
This commit is contained in:
@@ -326,9 +326,9 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const searchFiles = (query: string) =>
|
const searchFiles = (query: string) =>
|
||||||
sdk.client.find.files({ query: { query, dirs: false } }).then((x) => x.data!)
|
sdk.client.find.files({ query: { query, dirs: "false" } }).then((x) => x.data!)
|
||||||
const searchFilesAndDirectories = (query: string) =>
|
const searchFilesAndDirectories = (query: string) =>
|
||||||
sdk.client.find.files({ query: { query, dirs: true } }).then((x) => x.data!)
|
sdk.client.find.files({ query: { query, dirs: "true" } }).then((x) => x.data!)
|
||||||
|
|
||||||
sdk.event.listen((e) => {
|
sdk.event.listen((e) => {
|
||||||
const event = e.details
|
const event = e.details
|
||||||
|
|||||||
Reference in New Issue
Block a user