Skip to content

Commit 7f57a6c

Browse files
committed
Updated ConvertPSPathToUri method
1 parent 097c8b8 commit 7f57a6c

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
using System;
5-
using System.Collections.Concurrent;
6-
using System.Collections.Generic;
7-
using System.IO;
8-
using System.Linq;
9-
using System.Management.Automation;
10-
using System.Threading;
11-
using System.Threading.Tasks;
12-
using Microsoft.Extensions.Logging.Abstractions;
13-
using Microsoft.PowerShell.EditorServices.Handlers;
14-
using Microsoft.PowerShell.EditorServices.Services;
15-
using Microsoft.PowerShell.EditorServices.Services.DebugAdapter;
16-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Console;
17-
using Microsoft.PowerShell.EditorServices.Services.PowerShell.Host;
18-
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
19-
using Microsoft.PowerShell.EditorServices.Test;
20-
using Microsoft.PowerShell.EditorServices.Test.Shared;
21-
using Microsoft.PowerShell.EditorServices.Utility;
22-
using OmniSharp.Extensions.LanguageServer.Protocol;
23-
using Xunit;
24-
254
namespace PowerShellEditorServices.Test.Debugging
265
{
276
internal class TestReadLine : IReadLine
@@ -101,7 +80,7 @@ private string ConvertPSPathToUri(string pspath)
10180
string[] driveAndPath = pspathParts[1].Split("\\");
10281
string drive = driveAndPath[0];
10382
string path = driveAndPath[1];
104-
return new DocumentUri(scheme: "filesystem", authority: string.Empty, path: $"/{drive}:{path}", query: string.Empty, fragment: string.Empty).ToString();
83+
return new DocumentUri(scheme: provider, authority: string.Empty, path: $"/{drive}:{path}", query: string.Empty, fragment: string.Empty).ToString();
10584
}
10685

10786
public void Dispose()

0 commit comments

Comments
 (0)