feat(tokens): add token count display to sidebar (#956)

* feat (tokens) add token count display to sidebar

* refactor: calculate the real tokens and reuse input hints to avoid occlusion

---------

Co-authored-by: yetone <yetoneful@gmail.com>
This commit is contained in:
Michael Gendy
2024-12-17 14:43:25 +02:00
committed by GitHub
parent e612ad7566
commit e98fa46bec
6 changed files with 133 additions and 93 deletions

View File

@@ -18,7 +18,7 @@ impl<'a> State<'a> {
#[derive(Debug, Serialize, Deserialize)]
struct SelectedFile {
path: String,
content: String,
content: Option<String>,
file_type: String,
}