                             return
 
                         is_public = group == 'public'
-
                         ext = misc.filename_extension_notilde(opts.path).toLowerCase()
 
                         if not is_public and (ext == "sws" or ext.slice(0,4) == "sws~")

                            open_files = open_files.setIn([opts.path, 'component'], info)
                            open_files = open_files.setIn([opts.path, 'is_chat_open'], opts.chat)
                            open_files = open_files.setIn([opts.path, 'chat_width'], opts.chat_width)
                            @setState
                                open_files       : open_files
                                open_files_order : open_files_order.push(opts.path)

                        if opts.foreground
                            @foreground_project()

                        open_files = store.open_files

                        # Only generate the editor component if we don't have it already
                        # Also regenerate if view type (public/not-public) changes
                        if not open_files.has(opts.path) or open_files.getIn([opts.path, 'component']).is_public != is_public
                            open_files_order = store.open_files_order

                            # Initialize the file's store and actions
