Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 711f477

Browse files
committed
use syntaxtree handlers
1 parent 9063741 commit 711f477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/syntax_tree/language_server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def format(source, file_extension)
9898
character: 0
9999
}
100100
},
101-
newText: file_extension == "haml" ? SyntaxTree::Haml.format(source, print_width) : SyntaxTree.format(source, print_width)
101+
newText: SyntaxTree::HANDLERS[".#{file_extension}"].format(source, print_width)
102102
}
103103
end
104104

0 commit comments

Comments
 (0)