progress
This commit is contained in:
@@ -20,7 +20,7 @@ import { Mode } from "../session/mode"
|
||||
import { callTui, TuiRoute } from "./tui"
|
||||
import { Permission } from "../permission"
|
||||
import { lazy } from "../util/lazy"
|
||||
import { Paths } from "../project/path"
|
||||
import { Instance } from "../project/instance"
|
||||
|
||||
const ERRORS = {
|
||||
400: {
|
||||
@@ -695,7 +695,7 @@ export namespace Server {
|
||||
async (c) => {
|
||||
const pattern = c.req.valid("query").pattern
|
||||
const result = await Ripgrep.search({
|
||||
cwd: Paths.directory,
|
||||
cwd: Instance.directory,
|
||||
pattern,
|
||||
limit: 10,
|
||||
})
|
||||
@@ -727,7 +727,7 @@ export namespace Server {
|
||||
async (c) => {
|
||||
const query = c.req.valid("query").query
|
||||
const result = await Ripgrep.files({
|
||||
cwd: Paths.directory,
|
||||
cwd: Instance.directory,
|
||||
query,
|
||||
limit: 10,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user