 
       {id, name, body, bodyTree, description, descriptionMoreURL} = attributes
 
-      unless @snippetsCache.has(id)
+      unless @parsedSnippetsById.has(id)
         bodyTree ?= @getBodyParser().parse(body)
         snippet = new Snippet({id, name, prefix, bodyTree, description, descriptionMoreURL, bodyText: body})
-        @snippetsCache.set(id, snippet)
-
-      snippets[prefix] = @snippetsCache.get(id)
+        @parsedSnippetsById.set(id, snippet)
+
+      snippets[prefix] = @parsedSnippetsById.get(id)
     snippets
 
   priorityForSource: (source) ->

  activate: ->
    @userSnippetsPath = null
    @snippetIdCounter = 0
    @snippetsCache = new Map
    @scopedPropertyStore = new ScopedPropertyStore
    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.workspace.addOpener (uri) =>

  clearSnippetsForPath: (path) ->
    for scopeSelector of @scopedPropertyStore.propertiesForSource(path)
      for prefix, attributes of @scopedPropertyStore.propertiesForSourceAndSelector(path, scopeSelector)
        @parsedSnippetsById.delete(attributes.id)

      @scopedPropertyStore.removePropertiesForSourceAndSelector(path, scopeSelector)

