Commit ecb8e7ea authored by Ole Christian Eidheim's avatar Ole Christian Eidheim

Language protocol: do not overwrite format_style when Prettier can be used on...

Language protocol: do not overwrite format_style when Prettier can be used on javascript/typescript files
parent be71a14a
Pipeline #105459686 passed with stages
in 16 minutes and 2 seconds
......@@ -483,7 +483,7 @@ bool Source::LanguageProtocolView::save() {
}
void Source::LanguageProtocolView::setup_navigation_and_refactoring() {
if(capabilities.document_formatting) {
if(capabilities.document_formatting && !(format_style && language && language->get_id() == "js" /* Use Prettier instead */)) {
format_style = [this](bool continue_without_style_file) {
if(!continue_without_style_file) {
bool has_style_file = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment