mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Stub threads, attach, and launch handlers
Required for VS Code
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.Iris.DebugAdapter.Server.Handlers;
|
||||
|
||||
internal class AttachHandler : IAttachHandler, ILaunchHandler
|
||||
{
|
||||
public Task<LaunchResponse> Handle(LaunchRequestArguments request, CancellationToken cancellationToken)
|
||||
{
|
||||
return Task.FromResult(new LaunchResponse());
|
||||
}
|
||||
|
||||
public Task<AttachResponse> Handle(AttachRequestArguments request, CancellationToken cancellationToken)
|
||||
{
|
||||
return Task.FromResult(new AttachResponse());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using DapThread = OmniSharp.Extensions.DebugAdapter.Protocol.Models.Thread;
|
||||
|
||||
namespace Microsoft.Iris.DebugAdapter.Server.Handlers;
|
||||
|
||||
internal class ThreadsHandler : ThreadsHandlerBase
|
||||
{
|
||||
public override Task<ThreadsResponse> Handle(ThreadsArguments request, CancellationToken cancellationToken)
|
||||
{
|
||||
List<DapThread> threads = [
|
||||
new DapThread
|
||||
{
|
||||
Id = 0,
|
||||
Name = "Main Thread"
|
||||
}
|
||||
];
|
||||
|
||||
return Task.FromResult(new ThreadsResponse
|
||||
{
|
||||
Threads = threads
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user