mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
+
This commit is contained in:
parent
858b6f6a91
commit
6a44d668db
1 changed files with 1 additions and 1 deletions
|
|
@ -162,6 +162,7 @@ const validateQueryStr = (queryStr: unknown) => {
|
|||
}
|
||||
|
||||
|
||||
// TODO!!!! check to make sure in workspace
|
||||
const validateURI = (uriStr: unknown) => {
|
||||
if (typeof uriStr !== 'string') throw new Error('Error calling tool: provided uri must be a string.')
|
||||
const uri = URI.file(uriStr)
|
||||
|
|
@ -225,7 +226,6 @@ export class ToolsService implements IToolsService {
|
|||
const uri = validateURI(uriStr)
|
||||
const pageNumber = validatePageNum(pageNumberUnknown)
|
||||
|
||||
// TODO!!!! check to make sure in workspace
|
||||
const [treeStr, hasNextPage] = await generateDirectoryTreeMd(fileService, uri, pageNumber)
|
||||
return [treeStr, hasNextPage]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue