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

Commit

Permalink
Merge pull request #28 from lexicalunit/force_noskip
Browse files Browse the repository at this point in the history
Force noskip
  • Loading branch information
bh authored Oct 2, 2016
2 parents 83c7582 + baeeeb0 commit 7c477c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python-isort.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PythonIsort
editor = atom.workspace.getActiveTextEditor()
if not editor?
return false
return editor.getGrammar().name == 'Python'
return editor.getGrammar().scopeName == 'source.python'

removeStatusbarItem: =>
@statusBarTile?.destroy()
Expand Down Expand Up @@ -44,7 +44,7 @@ class PythonIsort
if not @checkForPythonContext()
return

params = [@getFilePath(), "-c", "-vb"]
params = ["-ns", @getFilePath(), @getFilePath(), "-c", "-vb"]
isortpath = atom.config.get "python-isort.isortPath"

which = process.spawnSync('which', ['isort']).status
Expand All @@ -65,7 +65,7 @@ class PythonIsort
if not @checkForPythonContext()
return

params = [@getFilePath(), "-vb"]
params = ["-ns", @getFilePath(), @getFilePath(), "-vb"]
isortpath = atom.config.get "python-isort.isortPath"

which = process.spawnSync('which', ['isort']).status
Expand Down

0 comments on commit 7c477c6

Please sign in to comment.