Fix #20
This commit is contained in:
parent
b7f98ba763
commit
9953d5b66c
1 changed files with 1 additions and 1 deletions
|
@ -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) ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue