Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ class PHPCBF {
*/
switch (code) {
case 0:
// Nothing to fix; signal to VS Code that there are no edits.
reject();
break;
case 1:
case 2:
Expand All @@ -204,6 +206,8 @@ class PHPCBF {
break;
case 3:
phpcbfError = true;
// Reject so the promise does not hang indefinitely.
reject();
break;
default:
let msgs = {
Expand Down