Skip to content

Commit

Permalink
Merge pull request #723 from asok/handle-blank-formatter
Browse files Browse the repository at this point in the history
Auto detect formatter when client did not specify it
  • Loading branch information
vinistock authored May 30, 2023
2 parents b611ccc + 3b0543b commit 9095d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def initialize_request(options)
encodings.first
end

formatter = options.dig(:initializationOptions, :formatter)
formatter = options.dig(:initializationOptions, :formatter) || "auto"
@store.formatter = if formatter == "auto"
detected_formatter
else
Expand Down

0 comments on commit 9095d4d

Please sign in to comment.