Skip to content

Commit

Permalink
[#381] support all line breaks in clangd options list (#387)
Browse files Browse the repository at this point in the history
This change supports `\n` as well as `\r\n` independent of the OS.

fixes 381
  • Loading branch information
ghentschke authored Dec 16, 2024
1 parent fbb0945 commit cb358b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public List<String> additionalOptions() {
if (options.isBlank()) {
return new ArrayList<>();
}
return Arrays.asList(options.split(System.lineSeparator()));
return Arrays.asList(options.split("\\R")); //$NON-NLS-1$
}

private String stringValue(PreferenceMetadata<?> meta) {
Expand Down

0 comments on commit cb358b8

Please sign in to comment.