Skip to content

Commit 6ea8343

Browse files
committed
add scopes display to token tooltip in kitchen-sink demo
1 parent 9506b57 commit 6ea8343

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

demo/kitchen-sink/token_tooltip.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ class TokenTooltip extends Tooltip {
6161
var tokenText = token.type;
6262
if (token.state)
6363
tokenText += "|" + token.state;
64+
if (token.scope && token.scope.getAllScopeNames) {
65+
tokenText += "\n\nscopes:";
66+
tokenText += "\n " + token.scope.getAllScopeNames().join("\n ");
67+
}
6468
if (token.merge)
6569
tokenText += "\n merge";
6670
if (token.stateTransitions)

0 commit comments

Comments
 (0)