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

Allow for other python language packages. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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