File tree Expand file tree Collapse file tree 5 files changed +18
-9
lines changed
src/PowerShellEditorServices
Services/DebugAdapter/Handlers
PowerShellEditorServices.Test.E2E
PowerShellEditorServices.Test Expand file tree Collapse file tree 5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1111using Microsoft . PowerShell . EditorServices . Utility ;
1212using OmniSharp . Extensions . LanguageServer . Protocol . Server ;
1313
14- using Internal = Microsoft . PowerShell . EditorServices . Services ;
14+ using InternalServices = Microsoft . PowerShell . EditorServices . Services ;
1515
1616namespace Microsoft . PowerShell . EditorServices . Extensions . Services
1717{
@@ -46,7 +46,7 @@ internal EditorExtensionServiceProvider(IServiceProvider serviceProvider)
4646 LanguageServer = new LanguageServerService ( _serviceProvider . GetService < ILanguageServerFacade > ( ) ) ;
4747 //DocumentSymbols = new DocumentSymbolService(_serviceProvider.GetService<SymbolsService>());
4848 ExtensionCommands = new ExtensionCommandService ( _serviceProvider . GetService < ExtensionService > ( ) ) ;
49- Workspace = new WorkspaceService ( _serviceProvider . GetService < Internal . WorkspaceService > ( ) ) ;
49+ Workspace = new WorkspaceService ( _serviceProvider . GetService < InternalServices . WorkspaceService > ( ) ) ;
5050 EditorContext = new EditorContextService ( _serviceProvider . GetService < ILanguageServerFacade > ( ) ) ;
5151 EditorUI = new EditorUIService ( _serviceProvider . GetService < ILanguageServerFacade > ( ) ) ;
5252 }
Original file line number Diff line number Diff line change 2929 <PackageReference Include =" Microsoft.CSharp" Version =" 4.7.0" />
3030 <PackageReference Include =" Microsoft.Extensions.FileSystemGlobbing" Version =" 5.0.0" />
3131 <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 5.0.0" />
32- <PackageReference Include =" OmniSharp.Extensions.LanguageServer" Version =" 0.19.0 " />
33- <PackageReference Include =" OmniSharp.Extensions.DebugAdapter.Server" Version =" 0.19.0 " />
32+ <PackageReference Include =" OmniSharp.Extensions.LanguageServer" Version =" 0.19.2-beta0001 " />
33+ <PackageReference Include =" OmniSharp.Extensions.DebugAdapter.Server" Version =" 0.19.2-beta0001 " />
3434 <PackageReference Include =" PowerShellStandard.Library" Version =" 5.1.1" />
3535 <PackageReference Include =" Serilog" Version =" 2.10.0" />
3636 <PackageReference Include =" Serilog.Extensions.Logging" Version =" 3.0.1" />
Original file line number Diff line number Diff line change 77using System . Threading . Tasks ;
88using OmniSharp . Extensions . DebugAdapter . Protocol . Models ;
99using OmniSharp . Extensions . DebugAdapter . Protocol . Requests ;
10+ using Thread = OmniSharp . Extensions . DebugAdapter . Protocol . Models . Thread ;
1011
1112namespace Microsoft . PowerShell . EditorServices . Handlers
1213{
1314 internal class ThreadsHandler : IThreadsHandler
1415 {
16+ internal static Thread PipelineThread { get ; } =
17+ new Thread { Id = 1 , Name = "PowerShell Pipeline Thread" } ;
18+
1519 public Task < ThreadsResponse > Handle ( ThreadsArguments request , CancellationToken cancellationToken )
1620 {
1721 return Task . FromResult ( new ThreadsResponse
1822 {
19- // TODO: This is an empty container of threads...do we need to make a thread?
20- Threads = new Container < System . Threading . Thread > ( )
23+ // TODO: OmniSharp supports multithreaded debugging (where
24+ // multiple threads can be debugged at once), but we don't. This
25+ // means we always need to set AllThreadsStoppped and
26+ // AllThreadsContinued in our events. But if we one day support
27+ // multithreaded debugging, we'd need a way to associate
28+ // debugged runspaces with .NET threads in a consistent way.
29+ Threads = new Container < Thread > ( PipelineThread )
2130 } ) ;
2231 }
2332 }
Original file line number Diff line number Diff line change 1010 <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 5.0.0" />
1111 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.9.1" />
1212 <PackageReference Include =" Newtonsoft.Json" Version =" 12.0.2" />
13- <PackageReference Include =" OmniSharp.Extensions.LanguageClient" Version =" 0.19.0 " />
14- <PackageReference Include =" OmniSharp.Extensions.DebugAdapter.Client" Version =" 0.19.0 " />
13+ <PackageReference Include =" OmniSharp.Extensions.LanguageClient" Version =" 0.19.2-beta0001 " />
14+ <PackageReference Include =" OmniSharp.Extensions.DebugAdapter.Client" Version =" 0.19.2-beta0001 " />
1515 <PackageReference Include =" xunit" Version =" 2.4.1" />
1616 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3" />
1717 <PackageReference Include =" Xunit.SkippableFact" Version =" 1.4.13" />
Original file line number Diff line number Diff line change 2727 <PackageReference Include =" xunit" Version =" 2.4.1" />
2828 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.3" />
2929 <PackageReference Include =" Xunit.SkippableFact" Version =" 1.4.13" />
30- <PackageReference Include =" OmniSharp.Extensions.LanguageServer" Version =" 0.19.0 " />
30+ <PackageReference Include =" OmniSharp.Extensions.LanguageServer" Version =" 0.19.2-beta0001 " />
3131 <DotNetCliToolReference Include =" dotnet-xunit" Version =" 2.4.0-beta.1.build3958" />
3232 </ItemGroup >
3333 <ItemGroup >
You can’t perform that action at this time.
0 commit comments