Little Bug Fix

After the big refactoring and redesigning we made, there are a few more things we have left to do:
1. Currently, once the cursor is on a certain URL, the hover panel will change accordingly. So, if we hover over URLs that the cursor is not on them we will still be presented with the last hover panel that was created. That is a bug and we need to fix it.
2. We need to make a unit testing (we dont know how to do that, so we need to learn a bit more)
3. Try and use other VSCODE extensions to support previewing PDFs and HTML (the web page, not the HTML file).

To fix (1) we added a new condition to the "push" call (in the activate finction, in extension.ts).
We check if the line the cursor is on is the same as the line we hover over.
If so, call the "updateHoverPanel" function (which makes a markdown string for the hover panel according to the current URL format). If not, update the hover panel content (the markdown string) to an empty string.



We published this new update tothe VSCODE marketplace (HERE) and to github as well (HERE). 
We also udated the readme file.

Comments

Popular posts from this blog

Turorial- How to add a new feature

Publishing First Beta & Refactoring The Code