make lsp better

This commit is contained in:
Dax Raad
2025-06-06 17:20:01 -04:00
parent b32cb2b932
commit d6afebf22a
9 changed files with 38 additions and 21 deletions

View File

@@ -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,