Normalize file paths in Project::resolve

This ensures the drive case letter is consistent on Windows
when opening file paths from the command line.
This commit is contained in:
Kevin Sawicki
2014-08-26 10:22:20 -07:00
parent 32353a31eb
commit 5ba86b3dbc

View File

@@ -100,9 +100,9 @@ class Project extends Model
uri
else
if fs.isAbsolute(uri)
fs.absolute(uri)
path.normalize(fs.absolute(uri))
else if projectPath = @getPath()
fs.absolute(path.join(projectPath, uri))
path.normalize(fs.absolute(path.join(projectPath, uri)))
else
undefined