Skip to content

Commit f915926

Browse files
fix: title for issues (#38)
[#1: Example open issue](#1) [#2: Example closed issue](#2) and not [#1](#1) [#2](#2)
1 parent 3715108 commit f915926

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ This is a tool for getting link suggestions while writing READMEs and GitHub Wik
1212

1313
Use this LSP in conjunction with some other Markdown LSP if you want gotoDefinition et.al. This LSP only focuses on adding autocomplete to
1414

15-
* [x] `#` Issues and PRs
16-
* [x] `[` Public Wiki Pages
17-
* [x] `:` Organizations / Owners
18-
* [x] `/` Repositories (yours and the orgs you are part of, no global search yet)
19-
* [x] `@` Organization Members
15+
- [x] `#` Issues and PRs
16+
- [x] `[` Public Wiki Pages
17+
- [x] `:` Organizations / Owners
18+
- [x] `/` Repositories (yours and the orgs you are part of, no global search yet)
19+
- [x] `@` Organization Members
2020

2121
[Issues](https://github.com/github-language-server/github-lsp/issues) and [PRs](https://github.com/github-language-server/github-lsp/pulls) are very welcome!
2222

@@ -47,8 +47,8 @@ You can now configure your editor to use this LSP on `stdio`.
4747

4848
### `#` trigger
4949

50-
[#1](https://github.com/github-language-server/github-lsp/issues/1)
51-
[#2](https://github.com/github-language-server/github-lsp/issues/2)
50+
[#1: Example open issue](https://github.com/github-language-server/github-lsp/issues/1)
51+
[#2: Example closed issue](https://github.com/github-language-server/github-lsp/issues/2)
5252

5353
### `@` trigger
5454

src/gh/issue.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ impl GetLabel for Issue {
2525
impl GetEdit for Issue {
2626
fn get_edit(&self) -> String {
2727
let id = self.number;
28+
let title = &self.title;
2829
let url = self
2930
.url
3031
.to_string()
3132
.replace("api.", "")
3233
.replace("repos/", "");
3334
//TODO: cleanup & consider just printing the full URL and let GitHub format it
34-
format!("[#{id}]({url})")
35+
format!("[#{id}: {title}]({url})")
3536
}
3637
}
3738
impl GetDetail for Issue {

0 commit comments

Comments
 (0)