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

@@ -16,7 +16,7 @@ export const LspDiagnosticTool = Tool.define({
const normalized = path.isAbsolute(args.path)
? args.path
: path.join(app.path.cwd, args.path)
await LSP.file(normalized)
await LSP.touchFile(normalized, true)
const diagnostics = await LSP.diagnostics()
const file = diagnostics[normalized]
return {