From 5ba86b3dbc50f77dfe1eada3883cd6ba139d033a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 26 Aug 2014 10:22:20 -0700 Subject: [PATCH] Normalize file paths in Project::resolve This ensures the drive case letter is consistent on Windows when opening file paths from the command line. --- src/project.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project.coffee b/src/project.coffee index 5943e319a..45a2f3317 100644 --- a/src/project.coffee +++ b/src/project.coffee @@ -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