Add "editor: copy highlight json" command

Nate needs this to feed to Figma for highlighted code in designs.
This commit is contained in:
Nathan Sobo 2023-03-24 16:37:57 -06:00
parent c74f8eb9e3
commit 195215f1e0
2 changed files with 39 additions and 3 deletions

View file

@ -59,7 +59,6 @@ impl HighlightId {
theme.highlights.get(self.0 as usize).map(|entry| entry.1)
}
#[cfg(any(test, feature = "test-support"))]
pub fn name<'a>(&self, theme: &'a SyntaxTheme) -> Option<&'a str> {
theme.highlights.get(self.0 as usize).map(|e| e.0.as_str())
}