leodevbro / vscode-blockman

VSCode extension to highlight nested code blocks
https://github.com/leodevbro/vscode-blockman
MIT License
345 stars 16 forks source link

Not working at all! #114

Closed TaylorJeromeHawkins closed 1 year ago

TaylorJeromeHawkins commented 1 year ago

Tried installing and reinstalling but no luck getting the extension to work. Tried a bunch of settings mentioned in the documentation but no luck. Would love to try this extension!

leodevbro commented 1 year ago

Hi, I noticed this problem several times, but it is very rare. And mostly restarting VS Code fixes it. And also please make sure that Blockman is not disabled by the F1 command: blockman toggle enable/disable.

Maybe you can also try restarting the computer entirely.

Also you can try installing it on VS Code Insiders.

TaylorJeromeHawkins commented 1 year ago

Thanks!

The restart worked, but it isn't working for my html files for some reason. Great extension from what I can see so far!

leodevbro commented 1 year ago

Each line should have less than 3000 characters, otherwise Blockman will not render anywthing.

If it's not the case, please provide the HTML file so I will be able to test it myself.

TaylorJeromeHawkins commented 1 year ago

I have a few paths > 3000. That must be the issue! Thank you!

leodevbro commented 1 year ago

I decided to set the 3000 limit because long lines are most likely minified code, and there is almost no point to render blocks of minified code. But if you think that this limit should be increased a little, please tell me. Maybe to 4000? How long is the longest path in your HTML files?

TaylorJeromeHawkins commented 1 year ago

My longest path is 5547 characters long. There are a few big SVG paths that are big but that's the biggest. I could eliminate that problem by keeping my SVG file separate and referencing the SVG with <img src=''">.

No need to change your limit for this one project, is there maybe a way I can push the limit locally on my end? Or maybe that could be a setting for future a release/update?

leodevbro commented 1 year ago

I updated Blockman. With the new version (1.7.4) you can change this setting: Blockman: N36 A01 Max Char Count In Any Line Default is 3000, you can set any number.

TaylorJeromeHawkins commented 1 year ago

Awesome, great work thank you!