mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-07 09:18:41 +00:00
make lsp better
This commit is contained in:
@@ -18,12 +18,12 @@ export const LspHoverTool = Tool.define({
|
||||
const file = path.isAbsolute(args.file)
|
||||
? args.file
|
||||
: path.join(app.path.cwd, args.file)
|
||||
await LSP.file(file)
|
||||
await LSP.touchFile(file, true)
|
||||
const result = await LSP.hover({
|
||||
...args,
|
||||
file,
|
||||
})
|
||||
console.log(result)
|
||||
|
||||
return {
|
||||
metadata: {
|
||||
result,
|
||||
|
||||
Reference in New Issue
Block a user