Skip to content

Commit 1823929

Browse files
committed
fix(client): #1182 filter out empty extra arguments for fortls extraArgs
1 parent 81c5707 commit 1823929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lsp/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ export class FortlsClient {
223223
args.push(`--max_comment_line_length=${maxCommentLineLength}`);
224224
}
225225
if (fortlsExtraArgs.length > 0) {
226-
args.push(...fortlsExtraArgs);
226+
const filteredfortlsExtraArgs = fortlsExtraArgs.filter(item => item.trim().length > 0);
227+
args.push(...filteredfortlsExtraArgs);
227228
}
228229

229230
// Fortran source file parsing

0 commit comments

Comments
 (0)