Skip to content

Commit eadbf5b

Browse files
feat: syntax highlighting for fs_write (#656)
* feat: syntax highlighting for fs_write * remove default features for syntect * Add yaml-rust to deny toml allow list
1 parent 9338032 commit eadbf5b

File tree

8 files changed

+350
-37
lines changed

8 files changed

+350
-37
lines changed

Cargo.lock

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/q_cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ walkdir.workspace = true
8383
which.workspace = true
8484
whoami.workspace = true
8585
winnow.workspace = true
86+
syntect = { version = "5.2.0", features = [ "default-syntaxes", "default-themes" ]}
8687

8788
[target.'cfg(unix)'.dependencies]
8889
nix.workspace = true

crates/q_cli/src/cli/chat/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ Hi, I'm <g>Amazon Q</g>. I can answer questions about your workspace and tooling
515515
queue!(self.output, style::Print(format!(" {} ", tool.display_name())))?;
516516
queue!(self.output, cursor::MoveToNextLine(1))?;
517517
queue!(self.output, style::SetAttribute(Attribute::NormalIntensity))?;
518-
tool.queue_description(self.output)?;
518+
tool.queue_description(&self.ctx, self.output)?;
519519
queue!(self.output, style::Print("\n"))?;
520520
queue!(self.output, cursor::MoveToNextLine(1))?;
521521
}

0 commit comments

Comments
 (0)