This commit is contained in:
Josh Johnson 2016-01-18 13:19:46 -05:00
parent b7f98ba763
commit 9953d5b66c

View file

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