Skip to content

Commit

Permalink
fix: improve issue status readavility, close #24 (#31)
Browse files Browse the repository at this point in the history
Add surrounding brackets to issue status to improve readability

<img width="1278" alt="Screenshot 2024-03-05 at 13 17 47"
src="https://github.com/github-language-server/github-lsp/assets/2630397/bae1ebf7-7e0b-40e9-9a27-7bd99e3680f3">

---------

Co-authored-by: krfl <[email protected]>
Co-authored-by: Alexander Brevig <[email protected]>
  • Loading branch information
3 people committed Mar 5, 2024
1 parent 22cf49d commit 1e40712
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/gh/issue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ impl GetLabel for IssueState {

impl GetLabel for Issue {
fn get_label(&self) -> String {
format!("#{} {} {}", self.number, self.state.get_label(), self.title)
format!(
"#{} [{}] {}",
self.number,
self.state.get_label(),
self.title
)
}
}
impl GetEdit for Issue {
Expand All @@ -33,7 +38,7 @@ impl GetDetail for Issue {
fn get_detail(&self) -> String {
let title = self.title.to_string();
format!(
"{} {} {}\n{}",
"# {} [{}] {}\n\n{}",
self.number,
self.state.get_label(),
title,
Expand Down

0 comments on commit 1e40712

Please sign in to comment.