Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use syntaxtree handlers
  • Loading branch information
Petercopter committed Aug 10, 2022
commit 711f477acc0ef4821fbc2259f7b20b12805382a1
2 changes: 1 addition & 1 deletion lib/syntax_tree/language_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def format(source, file_extension)
character: 0
}
},
newText: file_extension == "haml" ? SyntaxTree::Haml.format(source, print_width) : SyntaxTree.format(source, print_width)
newText: SyntaxTree::HANDLERS[".#{file_extension}"].format(source, print_width)
}
end

Expand Down