add pub run on git clone and open folder

@ussuri

Address part of #1894, to run pub automatically on open folder and git clone