From 9953d5b66c2331000b7947154662dcf6e2a4dbfc Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Mon, 18 Jan 2016 13:19:46 -0500 Subject: [PATCH] Fix #20 --- src/providers/Formatting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/Formatting.ts b/src/providers/Formatting.ts index 494308a..b0756b5 100644 --- a/src/providers/Formatting.ts +++ b/src/providers/Formatting.ts @@ -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) ]; }