File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,12 @@ function configurationMiddleware(params: ConfigurationParams): LSPAny[] | Respon
173173 if ( typeof value === "string" ) {
174174 // Make sure that `""` gets converted to `undefined` and resolve predefined values
175175 value = value ? zigUtil . handleConfigOption ( value , workspaceFolder ?? "guess" ) : undefined ;
176- } else if ( typeof value === "object" && value !== null && ! Array . isArray ( value ) ) {
176+ } else if ( Array . isArray ( value ) ) {
177+ value = value . map ( ( elem : unknown ) => {
178+ if ( typeof elem !== "string" ) return elem ;
179+ return zigUtil . handleConfigOption ( elem , workspaceFolder ?? "guess" ) ;
180+ } ) ;
181+ } else if ( typeof value === "object" && value !== null ) {
177182 // Recursively update the config options
178183 const newValue : Record < string , unknown > = { } ;
179184 for ( const [ fieldName , fieldValue ] of Object . entries ( value ) ) {
@@ -212,9 +217,11 @@ function configurationMiddleware(params: ConfigurationParams): LSPAny[] | Respon
212217
213218 switch ( configuration . get < "off" | "auto" | "extension" | "zls" > ( "buildOnSaveProvider" , "auto" ) ) {
214219 case "auto" :
220+ additionalOptions [ "buildOnSaveArgs" ] = configuration . get ( "buildOnSaveArgs" ) ;
215221 break ;
216222 case "zls" :
217223 additionalOptions [ "enableBuildOnSave" ] = true ;
224+ additionalOptions [ "buildOnSaveArgs" ] = configuration . get ( "buildOnSaveArgs" ) ;
218225 break ;
219226 case "off" :
220227 case "extension" :
You can’t perform that action at this time.
0 commit comments