See https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#formattingOptions
Since LSP specifies that this field will be included in the formatted request, you should use the LSP field first.
You should only use the settings in .editorconfig
if formatting is not requested via LSP.