From 74ad38596a695a73e38419f916fc4ba79cf45ac3 Mon Sep 17 00:00:00 2001 From: Mostafa Eweda Date: Tue, 19 May 2015 17:38:06 -0700 Subject: [PATCH] Remove the normalization done by the default-directory-provider --- src/default-directory-provider.coffee | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/default-directory-provider.coffee b/src/default-directory-provider.coffee index 96740f15a..b29353ae2 100644 --- a/src/default-directory-provider.coffee +++ b/src/default-directory-provider.coffee @@ -15,16 +15,14 @@ class DefaultDirectoryProvider # * {Directory} if the given URI is compatible with this provider. # * `null` if the given URI is not compatibile with this provider. directoryForURISync: (uri) -> - projectPath = path.normalize(uri) - - directoryPath = if not fs.isDirectorySync(projectPath) and fs.isDirectorySync(path.dirname(projectPath)) - path.dirname(projectPath) + directoryPath = if not fs.isDirectorySync(uri) and fs.isDirectorySync(path.dirname(uri)) + path.normalize(path.dirname(uri)) else - projectPath + uri # TODO: Stop normalizing the path in pathwatcher's Directory. directory = new Directory(directoryPath) - if url.parse(directoryPath).protocol + if url.parse(directoryPath).protocol? directory.path = directoryPath if fs.isCaseInsensitive() directory.lowerCasePath = directoryPath.toLowerCase()