You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Bash Language Server
2
2
3
-
## 4.0.0
3
+
## 4.0.1
4
4
5
5
-**Breaking**: Drop support for Node 12, which reached its official end of life on April 30th 2022. Doing so enables new features. https://github.com/bash-lsp/bash-language-server/pull/584
6
6
- ShellCheck: support code actions, remove duplicated error codes, add URLs and tags, support parsing dialects (sh, bash, dash, ksh) but still fallback to bash, enable configuring ShellCheck arguments using the `shellcheckArguments` configuration parameter (legacy environment variable: `SHELLCHECK_ARGUMENTS`)
`Environment variable configuration is being deprecated, please use workspace configuration. The following environment variables were used: ${environmentVariablesUsed.join(
135
143
', ',
@@ -151,17 +159,12 @@ export default class BashServer {
151
159
this.connection.console.log('Configuration loaded from client')
152
160
}
153
161
154
-
const{ shellcheckPath }=this.config
155
-
if(!shellcheckPath){
156
-
connection.console.info('ShellCheck linting is disabled.')
157
-
}else{
158
-
this.linter=newLinter({
159
-
console: connection.console,
160
-
executablePath: shellcheckPath,
161
-
})
162
-
}
163
-
164
162
initialized=true
163
+
if(currentDocument){
164
+
// If we already have a document, analyze it now that we're initialized
165
+
// and the linter is ready.
166
+
this.analyzeAndLintDocument(currentDocument)
167
+
}
165
168
166
169
// NOTE: we do not block the server initialization on this background analysis.
0 commit comments