|
1 | 1 | // Copyright (c) Microsoft Corporation. |
2 | 2 | // Licensed under the MIT License. |
3 | 3 |
|
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 | | - |
25 | 4 | namespace PowerShellEditorServices.Test.Debugging |
26 | 5 | { |
27 | 6 | internal class TestReadLine : IReadLine |
@@ -101,7 +80,7 @@ private string ConvertPSPathToUri(string pspath) |
101 | 80 | string[] driveAndPath = pspathParts[1].Split("\\"); |
102 | 81 | string drive = driveAndPath[0]; |
103 | 82 | 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(); |
105 | 84 | } |
106 | 85 |
|
107 | 86 | public void Dispose() |
|
0 commit comments