diff --git a/lib/grammar-list-view.js b/lib/grammar-list-view.js index bf9a908..4723f2d 100644 --- a/lib/grammar-list-view.js +++ b/lib/grammar-list-view.js @@ -17,6 +17,17 @@ export default class GrammarListView { } element.textContent = grammarName element.dataset.grammar = grammarName + + const div = document.createElement('div') + div.classList.add('pull-right') + if (grammar.scopeName) { + const scopeName = document.createElement('scopeName') + scopeName.classList.add('key-binding') // It will be styled the same as the keybindings in the command palette + scopeName.textContent = grammar.scopeName + div.appendChild(scopeName) + element.appendChild(div) + } + return element }, didConfirmSelection: (grammar) => {