 
   getTagNameCompletions: (prefix) ->
     completions = []
-    for tag of @completions.tags when not prefix or firstCharsEqual(tag, prefix)
-      completions.push(@buildTagCompletion(tag, @completions.tags[tag]))
-    console.log  @completions
+    for tag, attributes of @completions.tags when not prefix or firstCharsEqual(tag, prefix)
+      completions.push(@buildTagCompletion(tag))
     completions
 
-  buildTagCompletion: (tag, tagObj) ->
-    console.log tagObj
-    snippet: "#{tag}$1>$2</#{tag}>$0"
-    displayText: tag
+  buildTagCompletion: (tag) ->
+    text: tag
     type: 'tag'
-    description: tagObj.apiName #"HTML <#{tag}> tag"
+    description: "HTML <#{tag}> tag"
     descriptionMoreURL: @getTagDocsURL(tag)
 
   getAttributeNameCompletions: ({editor, bufferPosition}, prefix) ->


  isTagStartWithNoPrefix: ({prefix, scopeDescriptor}) ->
    scopes = scopeDescriptor.getScopesArray()
    console.log prefix
    if prefix is '<' and scopes.length is 1
      scopes[0] is 'text.xml'
    else if prefix is '<' and scopes.length is 2
      scopes[0] is 'text.xml' and scopes[1] is 'meta.scope.outside-tag.html'
    else
      false

  isTagStartTagWithPrefix: ({prefix, scopeDescriptor}) ->
    console.log 0
    return false unless prefix
    console.log 1
    return false if trailingWhitespace.test(prefix)
    console.log 2
    @hasTagScope(scopeDescriptor.getScopesArray())

  isAttributeStartWithNoPrefix: ({prefix, scopeDescriptor}) ->

    for attribute, options of @completions.attributes when not prefix or firstCharsEqual(attribute, prefix)
      completions.push(@buildAttributeCompletion(attribute)) if options.global

    completions

  buildAttributeCompletion: (attribute, tag) ->
