Skip to content

Commit 14c13bd

Browse files
author
Kapil Borle
committed
Check only start position for range editing
1 parent 90a6bab commit 14c13bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/DocumentFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider
308308
edit.endLineNumber - 1,
309309
edit.endColumnNumber - 1);
310310

311-
if (range === null || range.contains(editRange)) {
311+
if (range === null || range.contains(editRange.start)) {
312312

313313
// accumulate the changes in number of lines
314314
// get the difference between the number of lines in the replacement text and

0 commit comments

Comments
 (0)