Preview Collapsed Section (fail) & Making An Open Source

After successful progress last time, we decided to try and expand our extension to support another feature that adds the option to display the contents of a collapsed text (another idea that resulted from the previous meeting with our workshop lecturer).

We thought that it could be very useful to have that option, especially when all you want is to quickly check something.

Since the hover receives Markdown string, we can display the content as text and not as a code display. So, we started looking for creating a new window or another view option.

We discovered that in visual studio code we can’t create new UI elements (learned this from this StackOverflow question).

Also, we saw that once you over the line of the collapsed text, by right-click >Peek > Peek Call Hierarchy, it shows the “Call Hierarchy”.

Example:

We thought about implementing the CallHierarchyProvider (a vscode interface), but we realized that it missed the goal and it would be easier to use the ‘peek’ option or just unfold the content.

So, due to visual studio code limitations, and for other people to try and expand our extension, we decided to open source our project (and maybe in the future those limitations will no longer be, so some of our ideas will be realizable).  

For start, we created a repository on GitHub and customize its settings and content (we used this guide).
Than, for our repository to be open source, we licensed it so that others are free to use:

We added a README file that describe our project in more details (features supported, extension settings and more)
And finally, our first open source project is ready for visitors. 

Our next step is try to support preview of css files. 
We know that the css files must be at the same root file of the Html, so we need to find out how to get  the selected css file path according to the current html file location. 
Furthermore, we need to figure out how can we display it (its not an html file so a `webview` display doesn't help here).

Comments

Popular posts from this blog

Turorial- How to add a new feature

Little Bug Fix

Publishing First Beta & Refactoring The Code