diff options
| author | Dax Raad <[email protected]> | 2025-05-27 02:17:35 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-27 02:17:35 -0400 |
| commit | c040baae118787cd0573e5b674a2a225f36d898c (patch) | |
| tree | 04c4ff3d08f1243e170397fed9f5a31b0ea082cc /js/src/session/session.ts | |
| parent | 754cc667411cc1d652acd0a811c530dcc35f5927 (diff) | |
| download | opencode-c040baae118787cd0573e5b674a2a225f36d898c.tar.gz opencode-c040baae118787cd0573e5b674a2a225f36d898c.zip | |
Refactor LSP tools and add hover functionality
- Split diagnostics tool into separate lsp-diagnostics.ts file
- Add new lsp-hover.ts tool for LSP hover information
- Update tool exports and session integration
- Remove old diagnostics.ts file
🤖 Generated with opencode
Co-Authored-By: opencode <[email protected]>
Diffstat (limited to 'js/src/session/session.ts')
| -rw-r--r-- | js/src/session/session.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/session/session.ts b/js/src/session/session.ts index cbe6cd89c..8b3f7fba1 100644 --- a/js/src/session/session.ts +++ b/js/src/session/session.ts @@ -42,6 +42,7 @@ export namespace Session { export type Message = UIMessage<{ time: { created: number; + completed?: number; }; sessionID: string; tool: Record<string, Tool.Metadata>; @@ -305,6 +306,8 @@ export namespace Session { } await write(next); } + next.metadata!.time.completed = Date.now(); + await write(next); return next; } } |
