Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #38 from DamnedScholar/master
Browse files Browse the repository at this point in the history
Added scopeNames to the grammar modal
  • Loading branch information
Max Brunsfeld authored Oct 17, 2018
2 parents 4b7d6c3 + 2675448 commit a660b7d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/grammar-list-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ 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) => {
Expand Down

0 comments on commit a660b7d

Please sign in to comment.