Posts

Showing posts from February, 2018

Analyzing bugs for vscode on Github

Image
For the OSD600 lab3, I am trying to fix a bug for vscode. I found this bug in the issues tab,  Rename folder collapses it . The reporter illustrated clearly that when renaming the parent folder of a structure of folders, the folder tree collapsed. I analyzed the code and tried to fix it. I found that it actually deleting the folder structure first and then re-add them to the view with the new name. When rename the folder name: The folders get deleted one by one Then it will re-add it with new folder name  This is the code that has been doing the action. I don't know why it's done this way, but certainly there's reason for that. What I can do is to add code to expand the folders after they got added to the view.

Contributing for the open-souce projects to classmates

It is fun to help others' projects because I get the chance to learn different methodologies to implement the same logic. In the Release 0.1, I added supports for the Word document and Eslint to two classmates' Github projects. I improved my programming skills by reading many documentations when finding third party packages to fix the issues. It's a good way to learn.

Building the vscode

I forked the vscode repository from Microsoft's Github. It is a very popular editor nowadays and I want to make some contributions to it hopefully.  The building process was simple and straight forward. I followed the instruction on the official readme and install all the dependencies. Although there was some troubles such as the version issue of python on my Mac, I was still able to make it through. It's quite amazing to see the whole building process of vscode and finally the editor window pops up.