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
`Environment variable configuration is being deprecated, please use workspace configuration. The following environment variables were used: ${environmentVariablesUsed.join(
142
-
', ',
143
-
)}`,
144
-
)
137
+
if(environmentConfig){
138
+
this.updateConfiguration(environmentConfig)
139
+
140
+
if(environmentVariablesUsed.length>0){
141
+
connection.console.warn(
142
+
`Environment variable configuration is being deprecated, please use workspace configuration. The following environment variables were used: ${environmentVariablesUsed.join(
143
+
', ',
144
+
)}`,
145
+
)
146
+
}
145
147
}
146
148
147
149
if(hasConfigurationCapability){
@@ -158,16 +160,6 @@ export default class BashServer {
158
160
this.connection.console.log('Configuration loaded from client')
159
161
}
160
162
161
-
const{ shellcheckPath }=this.config
162
-
if(!shellcheckPath){
163
-
connection.console.info('ShellCheck linting is disabled.')
164
-
}else{
165
-
this.linter=newLinter({
166
-
console: connection.console,
167
-
executablePath: shellcheckPath,
168
-
})
169
-
}
170
-
171
163
initialized=true
172
164
if(currentDocument){
173
165
// If we already have a document, analyze it now that we're initialized
@@ -212,6 +204,20 @@ export default class BashServer {
212
204
213
205
if(!isDeepStrictEqual(this.config,newConfig)){
214
206
this.config=newConfig
207
+
208
+
const{ shellcheckPath }=this.config
209
+
if(!shellcheckPath){
210
+
this.connection.console.log(
211
+
'ShellCheck linting is disabled as "shellcheckPath" was not set',
0 commit comments