Skip to content

Commit

Permalink
[#166] Allow empty Completion and Drivers field
Browse files Browse the repository at this point in the history
fixes #166
  • Loading branch information
ghentschke committed Aug 7, 2023
1 parent c475caf commit 2818958
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,15 @@ public List<String> commands(Object context) {
if (options.useBackgroundIndex()) {
list.add("--background-index"); //$NON-NLS-1$
}
list.add(NLS.bind("--completion-style={0}", options.completionStyle())); //$NON-NLS-1$
if (!options.completionStyle().isBlank()) {
list.add(NLS.bind("--completion-style={0}", options.completionStyle())); //$NON-NLS-1$
}
if (options.prettyPrint()) {
list.add("--pretty"); //$NON-NLS-1$
}
list.add(NLS.bind("--query-driver={0}", options.queryDriver())); //$NON-NLS-1$
if (!options.queryDriver().isBlank()) {
list.add(NLS.bind("--query-driver={0}", options.queryDriver())); //$NON-NLS-1$
}

list.addAll(options.additionalOptions());
return list;
Expand Down

0 comments on commit 2818958

Please sign in to comment.