Drop razor support. Fix #66242

This commit is contained in:
Pine Wu
2019-02-24 17:03:15 -08:00
parent 56ecc5b559
commit 393b48d4a5
4 changed files with 5 additions and 21 deletions

View File

@@ -175,7 +175,7 @@ connection.onDidChangeConfiguration((change) => {
const enableFormatter = globalSettings && globalSettings.html && globalSettings.html.format && globalSettings.html.format.enable;
if (enableFormatter) {
if (!formatterRegistration) {
const documentSelector: DocumentSelector = [{ language: 'html' }, { language: 'handlebars' }]; // don't register razor, the formatter does more harm than good
const documentSelector: DocumentSelector = [{ language: 'html' }, { language: 'handlebars' }];
formatterRegistration = connection.client.register(DocumentRangeFormattingRequest.type, { documentSelector });
}
} else if (formatterRegistration) {