File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/PowerShellEditorServices/Services/DebugAdapter/Handlers Expand file tree Collapse file tree 1 file changed +11
-2
lines changed 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 }
You can’t perform that action at this time.
0 commit comments