 
   getSuggestions: (request) ->
     {prefix} = request
-    if @isAttributeValueStartWithNoPrefix(request)
+    if @isAttributeValueStart(request)
       @getAttributeValueCompletions(request)
-    else if @isAttributeValueStartWithPrefix(request)
-      @getAttributeValueCompletions(request, prefix)
     else if @isAttributeStartWithNoPrefix(request)
       @getAttributeNameCompletions(request)
     else if @isAttributeStartWithPrefix(request)

    description: description ? "Global #{attribute} attribute"
    descriptionMoreURL: if description then @getGlobalAttributeDocsURL(attribute) else null

  getAttributeValueCompletions: ({editor, bufferPosition}, prefix) ->
    completions = []
    tag = @getPreviousTag(editor, bufferPosition)
    attribute = @getPreviousAttribute(editor, bufferPosition)

    scopes.indexOf('punctuation.definition.tag.html') isnt -1 or
      scopes.indexOf('punctuation.definition.tag.end.html') isnt -1

  isAttributeValueStart: ({scopeDescriptor, bufferPosition, editor}) ->
    scopes = scopeDescriptor.getScopesArray()

    previousBufferPosition = [bufferPosition.row, Math.max(0, bufferPosition.column - 1)]
    previousScopes = editor.scopeDescriptorForBufferPosition(previousBufferPosition)
    previousScopesArray = previousScopes.getScopesArray()

    # autocomplete here: "|"
    # not here: |""
    # or here: ""|
    @hasStringScope(scopes) and @hasStringScope(previousScopesArray) and
      previousScopesArray.indexOf('punctuation.definition.string.end.html') is -1 and
      @hasTagScope(scopes)

  hasTagScope: (scopes) ->
