kufii / CodeSnap

📸 Take beautiful screenshots of your code in VS Code!
https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap
538 stars 68 forks source link

BUG Fix `<` bug (i.e. unable to display/save properly) #126

Open ldexterldesign opened 1 year ago

ldexterldesign commented 1 year ago

👋

Thanks for software

There seems to be a bug when the extension encounters <?

The following code won't display properly and then won't save either:

cost (<£1 (1), £1-9.99 (2), £10-99 (3), £100-999 (4), >£1000 (5))
importance (little (1), fair (2), lot (3))
lifespan (<day (1), days (2), weeks (3), months (4), years (5))
urgency (little (1), fair (2), lot (3))
use (<day (1), days (2), weeks (3), months (4), years (5))
Screenshot 2023-01-18 at 23 21 24

I have observed if I change the file language to not plain text then things work as expected

Perhaps other random characters trigger this too..?

If you need any further info then feel free to ask

Hope this helps

Sincerely

macOS, 13.1 vscode, 1.74.3