Format on Paste uses the registered DocumentRangeFormattingEditProvider for formatting. Instead of providing the range for the entire document, it provides the range for the pasted text. This causes semi-colons and commas to be inserted because pretter-eslint only supports formatting the entire document.
How
Create range using document line count instead of using provided range
Closes #139
What
Format on Paste
uses the registeredDocumentRangeFormattingEditProvider
for formatting. Instead of providing the range for the entire document, it provides the range for the pasted text. This causes semi-colons and commas to be inserted becausepretter-eslint
only supports formatting the entire document.How
Create range using document line count instead of using provided range