```coffeescript
StyleguideView = null
styleguideUri = 'atom://styleguide'

createStyleguideView = (state) ->
  StyleguideView ?= require './styleguide-view'
  new StyleguideView(state)

deserializer =
  name: 'StyleguideView'
  deserialize: (state) -> createStyleguideView(state)
atom.deserializers.add(deserializer)

module.exports =
  activate: ->
    atom.project.registerOpener (filePath) ->
      createStyleguideView(uri: styleguideUri) if filePath is styleguideUri

    atom.rootView.command 'styleguide:show', -> rootView.open(styleguideUri)
```

Add atom prefix to rootView reference
user
```coffeescript
StyleguideView = null
styleguideUri = 'atom://styleguide'

createStyleguideView = (state) ->
  StyleguideView ?= require './styleguide-view'
  new StyleguideView(state)

deserializer =
  name: 'StyleguideView'
  deserialize: (state) -> createStyleguideView(state)
atom.deserializers.add(deserializer)

module.exports =
  activate: ->
    atom.project.registerOpener (filePath) ->
      createStyleguideView(uri: styleguideUri) if filePath is styleguideUri

    atom.rootView.command 'styleguide:show', -> atom.rootView.open(styleguideUri)
```
assistant