Addresses issue #26 where switching files with code folding extension enabled becomes slower

Specifically this commit first checks to see if the editor being switched to already has a code-folding-gutter element before restoring the line folds