       showScopeHighlights: true,
       es6Support: true
     }
+
+    #when es6 config option changes, invalidate cache
+    atom.workspaceView.subscribe atom.config.observe 'atom-symbol-navigation.es6Support', =>
+      @parser.invalidateScopesCache()
 
     #attach commands
     atom.workspaceView.command "atom-symbol-navigation:jump-to-next-id", =>

  parser: require('./parser')

  activate: (state) ->
    #attach statusbar view
    atom.packages.once 'activated', @createStatusBarView

    #set default config options


    atom.workspaceView.command "atom-symbol-navigation:select-all-id", =>
      @selectAllIdentifiers()

    #when active panel changes, erase status text
    atom.workspace.onDidChangeActivePaneItem =>
