Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Allow for other python language packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoponceleao authored and joaoponceleao committed Oct 14, 2017
1 parent 3015bf4 commit 147b479
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/python-isort.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ module.exports =
class PythonIsort

checkForPythonContext: ->
editor = atom.workspace.getActiveTextEditor()
if not editor?
return false
return editor.getGrammar().scopeName == 'source.python'
grammar = atom.workspace.getActiveTextEditor()?.getGrammar?()
if grammar? and ~grammar.name.indexOf('Python')
return true

removeStatusbarItem: =>
@statusBarTile?.destroy()
Expand Down

0 comments on commit 147b479

Please sign in to comment.