       params  = [1..arity].map (i) -> "${#{i}:arg#{i}}"
       displayText = "#{func}/#{arity}"
 
-    snippet_params = params
-    snippet_params = snippet_params[1...] if snippet_params.length > 0 && pipeBefore
+    snippetParams = params
+    snippetParams = snippetParams[1...] if snippetParams.length > 0 && pipeBefore
 
     if captureBefore
       snippet = "#{func}/#{arity}"
-    else if snippet_params.length > 0
-      snippet = "#{func}(#{snippet_params.join(', ')})"
+    else if snippetParams.length > 0
+      snippet = "#{func}(#{snippetParams.join(', ')})"
 
     snippet = snippet.replace(/^:/, '') + "$0"
 

    [moduleParts..., _postfix] = prefix.split('.')

    if prefix.match(/^:/)
      [module, func_name] = moduleAndFuncName(moduleParts, func)
      "http://www.erlang.org/doc/man/#{module.replace(/^:/, '')}.html\##{func_name}-#{arity}"
    else
      module = if moduleParts.length > 0 then moduleParts.join('.') else 'Kernel'
      "http://elixir-lang.org/docs/v#{ELIXIR_VERSION}/elixir/#{module}.html\##{func}/#{arity}"


        [hint, _type] = suggestions[0].split(';')
        suggestions = suggestions[1...]
        modulesToAdd = []
        isPrefixFunctionCall = !!(prefix.match(/\.[^A-Z][^\.]*$/) || prefix.match(/^[^A-Z:][^\.]*$/))

        if prefix != '' && !isPrefixFunctionCall
          prefixModules = prefix.split('.')[...-1]
          hintModules   = hint.split('.')[...-1]

          if prefix[-1...][0] != '.' || ("#{prefixModules}" != "#{hintModules}")
            modulesToAdd = (m for m,i in hintModules when m != prefixModules[i])
            lastModuleHint = hintModules[hintModules.length-1]

        suggestions = suggestions.map (serverSuggestion) ->
          fields = serverSuggestion.replace(/;/g, '\u000B').replace(/\\\u000B/g, ';').split('\u000B')
          name = fields[0]
          if lastModuleHint && (lastModuleHint not in [name, ":#{name}"]) && modulesToAdd.length > 0
            fields[0] = modulesToAdd.join('.') + '.' + name
          createSuggestion(serverSuggestion, fields, prefix, pipeBefore, captureBefore)

        suggestions = sortSuggestions(suggestions)
