See #372. Fix deprecation, call ::getActiveTextEditor instead
Closes #366.
This commit is contained in:
parent
ecd1012458
commit
7ac05d1a66
|
@ -32,7 +32,7 @@ module.exports = class Uncrustify extends Beautifier
|
|||
resolve cPath
|
||||
else
|
||||
# Has custom config path
|
||||
editor = atom.workspace.getActiveEditor()
|
||||
editor = atom.workspace.getActiveTextEditor()
|
||||
if editor?
|
||||
basePath = path.dirname(editor.getPath())
|
||||
# console.log(basePath);
|
||||
|
|
Loading…
Reference in New Issue