Skip to content

Commit d664403

Browse files
authored
Merge pull request #1052 from SuperCuber/main
Add --help documentation source
2 parents 4d7ff81 + 84b6ae9 commit d664403

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

server/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Bash Language Server
22

3+
## 5.1.1
4+
5+
- Add --help fallback for documentation https://github.com/bash-lsp/bash-language-server/pull/1052
6+
37
## 5.1.0
48

59
- Support for renaming symbol! https://github.com/bash-lsp/bash-language-server/pull/915

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A language server for Bash",
44
"author": "Mads Hartmann",
55
"license": "MIT",
6-
"version": "5.1.0",
6+
"version": "5.1.1",
77
"main": "./out/server.js",
88
"typings": "./out/server.d.ts",
99
"bin": {

server/src/util/sh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export async function getShellDocumentationWithoutCache({
7474
// The default line width of the terminal works fine for hover, but could be better
7575
// for completions.
7676
{ type: 'man', command: `man -P cat ${word} | col -bx` },
77+
{ type: 'help flag', command: `${word} --help | col -bx` },
7778
]
7879

7980
for (const { type, command } of DOCUMENTATION_COMMANDS) {

0 commit comments

Comments
 (0)