Chakroun-Anas / turbo-console-log

588 stars 140 forks source link

If a line with a console.log() statement has a comment on the same line, the comment's double slashed will be deleted #240

Open ChazWinterYT opened 3 weeks ago

ChazWinterYT commented 3 weeks ago

Start with a generated console.log() statement and add a comment on the same line console.log("finalGuestList:", finalGuestList); // This is a comment

Use the Comment console log statements shortcut // console.log("finalGuestList:", finalGuestList); // This is a comment

Now use the Uncomment console log statements shortcut console.log("finalGuestList:", finalGuestList); This is a comment

Notice that the double slashes were also removed from the comment, which is not the intended behavior. Only the double slash in front of the console.log statement should have been deleted.