Skip to content

Commit 46d1f63

Browse files
Правка нормализации путей, удаление сообщений консоли
1 parent 716451b commit 46d1f63

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/VSCode.DebugAdapter/OscriptDebugSession.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)