Skip to content

Commit fb7decd

Browse files
Copilotntotten
andcommitted
Update warning message to reflect that 0 edits is valid
Co-authored-by: ntotten <282782+ntotten@users.noreply.github.com>
1 parent d6e35c7 commit fb7decd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PrettierEditService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export default class PrettierEditService implements Disposable {
205205
return;
206206
}
207207
if (edits.length > 1) {
208-
this.loggingService.logWarning(`Expected 1 edit, got ${edits.length}`);
208+
this.loggingService.logWarning(`Unexpected multiple edits (${edits.length}), expected 0 or 1`);
209209
return;
210210
}
211211

0 commit comments

Comments
 (0)