Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 6610659

Browse files
committed
[node plugin] Add a displayName property to string completions
Issue angelozerr#430
1 parent be9fb47 commit 6610659

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/node.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
var string = JSON.stringify(typeof rec == "string" ? rec : rec.name);
199199
if (quote == "'") string = quote + string.slice(1, string.length -1).replace(/'/g, "\\'") + quote;
200200
if (typeof rec == "string") return string;
201+
rec.displayName = name;
201202
rec.name = string;
202203
return rec;
203204
})

0 commit comments

Comments
 (0)