mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user