Skip to content
Snippets Groups Projects
Commit b8c4ea12 authored by Angelo's avatar Angelo Committed by Marijn Haverbeke
Browse files

[tern addon] Use displayName if it exists for completion display text

Tern completion for required module returns name (module wuith quote)
and displayName (module without quote). This PR gives the capability
to display completion for required module without quote.
parent 9a532d3c
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@
var completion = data.completions[i], className = typeToIcon(completion.type);
if (data.guess) className += " " + cls + "guess";
completions.push({text: completion.name + after,
displayText: completion.name,
displayText: completion.displayName || completion.name,
className: className,
data: completion});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment