mirror of
https://github.com/charmbracelet/crush.git
synced 2026-05-30 18:47:33 +00:00
* feat(lsp): start LSPs on demand, improve auto-start Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * refactor: simplify Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * chore: fmt Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * feat: handle new session/load session Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * refactor: manager holds client list reference Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: do io in cmd Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: better manager Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: nil Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: err Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: properly handle restart Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: add stopped state Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: root markers Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: load for read files as well Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * chore(go.mod): move indirect dependency to the right block --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com>
21 lines
423 B
SQL
21 lines
423 B
SQL
-- name: RecordFileRead :exec
|
|
INSERT INTO read_files (
|
|
session_id,
|
|
path,
|
|
read_at
|
|
) VALUES (
|
|
?,
|
|
?,
|
|
strftime('%s', 'now')
|
|
) ON CONFLICT(path, session_id) DO UPDATE SET
|
|
read_at = excluded.read_at;
|
|
|
|
-- name: GetFileRead :one
|
|
SELECT * FROM read_files
|
|
WHERE session_id = ? AND path = ? LIMIT 1;
|
|
|
|
-- name: ListSessionReadFiles :many
|
|
SELECT * FROM read_files
|
|
WHERE session_id = ?
|
|
ORDER BY read_at DESC;
|