From 8e49a04a6c5b23290e4932d085ea4a19d67b0ccb Mon Sep 17 00:00:00 2001 From: Mike Smith <10135646+mikesmithgh@users.noreply.github.com> Date: Fri, 14 Jul 2023 15:30:19 -0400 Subject: [PATCH 1/2] fix(man): Use cat as man pager --- server/src/util/sh.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/util/sh.ts b/server/src/util/sh.ts index 93adf1c04..4d665635e 100644 --- a/server/src/util/sh.ts +++ b/server/src/util/sh.ts @@ -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, @@ -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) { From 55bdde7bd851b0c94bcf7ace60f64d6a97e6554e Mon Sep 17 00:00:00 2001 From: Kenneth Skovhus Date: Sat, 15 Jul 2023 21:03:51 +0200 Subject: [PATCH 2/2] Bump server version to 4.10.3 --- server/CHANGELOG.md | 9 +++++++++ server/package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/server/CHANGELOG.md b/server/CHANGELOG.md index 9b34a104a..4420001a7 100644 --- a/server/CHANGELOG.md +++ b/server/CHANGELOG.md @@ -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 diff --git a/server/package.json b/server/package.json index e8411e0bd..2920fa35b 100644 --- a/server/package.json +++ b/server/package.json @@ -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": {