From a5644715efed006a46a143a2e4a0eaab85a6474d Mon Sep 17 00:00:00 2001 From: Sacha Korban Date: Wed, 8 Jan 2025 02:52:47 +1100 Subject: [PATCH] release: version 0.1.0 --- Cargo.toml | 2 +- README.md | 2 ++ extension.toml | 2 +- src/lib.rs | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f3096a1..69ef1ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ serde = { version = "1.0", features = ["derive"] } members = ["activitywatch-ls"] [workspace.package] -version = "0.0.5" +version = "0.1.0" [profile.release] lto = "thin" diff --git a/README.md b/README.md index 1e760f1..bed9900 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,6 @@ This extension allows [ActivityWatch](https://activitywatch.net/), the free and Uses the [activitywatch-ls](https://github.com/sachk/aw-watcher-zed/tree/main/activitywatch-ls) to receive edit events from Zed and send hearbeats to an ActivityWatch server using the [aw-client-rust](https://github.com/ActivityWatch/aw-server-rust/tree/master/aw-client-rust) library. +This is a not very nice hacky approach with a few issues, such as langauges not hardcoded into the extension in extension.toml not working and time looking at a file before changes not being counted without a complex workaround. + This plugin is heavily based on [the WakaTime plugin](https://github.com/wakatime/zed-wakatime) for Zed, thanks to them for making this a lot easier to figure out. diff --git a/extension.toml b/extension.toml index d15b1c6..3032ea3 100644 --- a/extension.toml +++ b/extension.toml @@ -1,7 +1,7 @@ id = "aw-watcher" name = "aw-watcher" description = "ActitityWatch watcher support" -version = "0.0.5" +version = "0.1.0" schema_version = 1 authors = ["Sacha Korban sk@sachk.com"] repository = "https://github.com/sachk/aw-watcher-zed" diff --git a/src/lib.rs b/src/lib.rs index b986f1d..a9095ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,6 +70,7 @@ impl ActivityWatchExtension { .map_err(|err| format!("failed to download file: {err}"))?; // Delete old versions + // TODO: investigate why this seems to not be working locally let entries = fs::read_dir(".") .map_err(|err| format!("failed to list working directory {err}"))?; for entry in entries {