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
|
resolve cPath
|
||||||
else
|
else
|
||||||
# Has custom config path
|
# Has custom config path
|
||||||
editor = atom.workspace.getActiveEditor()
|
editor = atom.workspace.getActiveTextEditor()
|
||||||
if editor?
|
if editor?
|
||||||
basePath = path.dirname(editor.getPath())
|
basePath = path.dirname(editor.getPath())
|
||||||
# console.log(basePath);
|
# console.log(basePath);
|
||||||
|
|
Loading…
Reference in New Issue