Merge pull request #1011 from mweberaw/master
fixed order of home-dir expansion and project resolution
This commit is contained in:
commit
c217a63ea1
|
@ -37,6 +37,8 @@ module.exports = class Uncrustify extends Beautifier
|
|||
editor = atom.workspace.getActiveTextEditor()
|
||||
if editor?
|
||||
basePath = path.dirname(editor.getPath())
|
||||
# Expand Home Directory in Config Path
|
||||
configPath = expandHomeDir(configPath)
|
||||
# console.log(basePath);
|
||||
configPath = path.resolve(basePath, configPath)
|
||||
resolve configPath
|
||||
|
@ -45,9 +47,6 @@ module.exports = class Uncrustify extends Beautifier
|
|||
)
|
||||
.then((configPath) =>
|
||||
|
||||
# Expand Home Directory in Config Path
|
||||
configPath = expandHomeDir(configPath)
|
||||
|
||||
# Select Uncrustify language
|
||||
lang = "C" # Default is C
|
||||
switch language
|
||||
|
|
Loading…
Reference in New Issue