File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,14 +285,10 @@ private string NormalizeDriveLetter(string path)
285285 if ( ! normalizedHostWorkspace . EndsWith ( "\\ " ) )
286286 normalizedHostWorkspace += "\\ " ;
287287
288- if ( ! normalizedClientPath . EndsWith ( "\\ " ) )
289- normalizedClientPath += "\\ " ;
290-
291288 if ( normalizedClientPath . StartsWith ( normalizedHostWorkspace , StringComparison . OrdinalIgnoreCase ) )
292289 {
293290
294291 string relativePath = normalizedClientPath . Substring ( normalizedHostWorkspace . Length ) ;
295- relativePath = relativePath . TrimStart ( '\\ ' ) ;
296292
297293 string normalizedRemote = remoteWorkspace . Trim ( ) . Replace ( '\\ ' , '/' ) ;
298294 normalizedRemote = normalizedRemote . TrimEnd ( '/' ) ;
@@ -301,13 +297,8 @@ private string NormalizeDriveLetter(string path)
301297 ? normalizedRemote
302298 : normalizedRemote + "/" + relativePath . Replace ( '\\ ' , '/' ) ;
303299
304- Console . Error . WriteLine ( $ "Path mapped: '{ clientPath } ' -> '{ result } '") ;
305300 return result ;
306301 }
307- else
308- {
309- Console . Error . WriteLine ( $ "Path mapping skipped: '{ clientPath } ' doesn't start with '{ hostWorkspace } '") ;
310- }
311302 }
312303
313304 return clientPath ;
You can’t perform that action at this time.
0 commit comments