From 1823929abc55e531d45003d8ab9765818713d7ed Mon Sep 17 00:00:00 2001 From: Sergey Medv Date: Sat, 22 Nov 2025 22:04:15 +0100 Subject: [PATCH] fix(client): #1182 filter out empty extra arguments for fortls extraArgs --- src/lsp/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lsp/client.ts b/src/lsp/client.ts index 5789f2d8..3172e0c9 100644 --- a/src/lsp/client.ts +++ b/src/lsp/client.ts @@ -223,7 +223,8 @@ export class FortlsClient { args.push(`--max_comment_line_length=${maxCommentLineLength}`); } if (fortlsExtraArgs.length > 0) { - args.push(...fortlsExtraArgs); + const filteredfortlsExtraArgs = fortlsExtraArgs.filter(item => item.trim().length > 0); + args.push(...filteredfortlsExtraArgs); } // Fortran source file parsing