We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 179a285 + 5164c63 commit ada88bbCopy full SHA for ada88bb
server/CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Bash Language Server
2
3
+## 5.4.3
4
+
5
+- Do not overwrite user-provided shellcheck `--shell` argument https://github.com/bash-lsp/bash-language-server/pull/1133
6
7
## 5.4.2
8
9
- Fix wrong pnpm engine version
server/package.json
@@ -3,7 +3,7 @@
"description": "A language server for Bash",
"author": "Mads Hartmann",
"license": "MIT",
- "version": "5.4.2",
+ "version": "5.4.3",
"main": "./out/server.js",
"typings": "./out/server.d.ts",
"bin": {
server/src/shellcheck/index.ts
@@ -120,13 +120,19 @@ export class Linter {
120
.map((folderName) => `--source-path=${folderName}`)
121
122
const args = [
123
- `--shell=${shellName}`,
124
'--format=json1',
125
'--external-sources',
126
...sourcePathsArgs,
127
...additionalArgs,
128
]
129
+ // only add `--shell` argument if non is provided by the user in their
130
+ // config. This allows to the user to override the shell. See #1064.
131
+ const userArgs = additionalArgs.join(' ')
132
+ if (!(userArgs.includes('--shell') || userArgs.includes('-s '))) {
133
+ args.unshift(`--shell=${shellName}`)
134
+ }
135
136
logger.debug(`ShellCheck: running "${this.executablePath} ${args.join(' ')}"`)
137
138
let out = ''
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments