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

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

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

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

    @disposable = atom.commands.add 'atom-workspace', 'styleguide:show', ->
      atom.workspace.open(styleguideUri)

  deactivate: ->
    @disposable.dispose()
```

Remove workspace opener on deactivate
user
```coffeescript
{CompositeDisposable} = require 'atom'
StyleguideUri = 'atom://styleguide'

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

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

module.exports =
  activate: ->
    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.workspace.addOpener (filePath) ->
      createStyleguideView(uri: StyleguideUri) if filePath is StyleguideUri
    @subscriptions.add atom.commands.add 'atom-workspace', 'styleguide:show', ->
      atom.workspace.open(StyleguideUri)

  deactivate: ->
    @subscriptions.dispose()
```
assistant