forked from external/vscode-xml
commit
5d8c285b06
@ -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…
Reference in New Issue
Block a user