Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Bash Language Server

## 4.10.3

- Use cat as man pager https://github.com/bash-lsp/bash-language-server/pull/909

## 4.10.2

- Bump semver development dependency causing false positive distributions security warnings https://github.com/bash-lsp/bash-language-server/pull/905


## 4.10.1

- Handle tree-sitter-bash parse errors gracefully
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A language server for Bash",
"author": "Mads Hartmann",
"license": "MIT",
"version": "4.10.2",
"version": "4.10.3",
"main": "./out/server.js",
"typings": "./out/server.d.ts",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions server/src/util/sh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const WORDS_WITHOUT_DOCUMENTATION = new Set([
])

/**
* Get documentation for the given word by usingZZ help and man.
* Get documentation for the given word by using help and man.
*/
export async function getShellDocumentationWithoutCache({
word,
Expand All @@ -73,7 +73,7 @@ export async function getShellDocumentationWithoutCache({
// We have experimented with setting MANWIDTH to different values for reformatting.
// The default line width of the terminal works fine for hover, but could be better
// for completions.
{ type: 'man', command: `man ${word} | col -bx` },
{ type: 'man', command: `man -P cat ${word} | col -bx` },
]

for (const { type, command } of DOCUMENTATION_COMMANDS) {
Expand Down