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

Commit

Permalink
Added scopeNames to the grammar modal
Browse files Browse the repository at this point in the history
  • Loading branch information
DamnedScholar committed Jan 16, 2017
1 parent 5fda74f commit 2675448
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 @@ -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) => {
Expand Down

0 comments on commit 2675448

Please sign in to comment.