Fix #20
This commit is contained in:
Josh Johnson 2016-01-18 13:23:14 -05:00
commit 5d8c285b06
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export class XmlFormattingEditProvider implements vsc.DocumentFormattingEditProv
}; };
let formatter = new XmlFormatter(formatterOptions); let formatter = new XmlFormatter(formatterOptions);
let xml = formatter.format(document.getText()); let xml = formatter.format(document.getText(range));
return [ vsc.TextEdit.replace(range, xml) ]; return [ vsc.TextEdit.replace(range, xml) ];
} }