Skip to content

Commit

Permalink
respond to "source" requests with "MethodNotFound"
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareCobbler committed Jun 6, 2024
1 parent 01938bf commit c21e949
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions luceedebug/src/main/java/luceedebug/DapServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,17 @@ public CompletableFuture<Capabilities> initialize(InitializeRequestArguments arg
return CompletableFuture.completedFuture(c);
}

/**
* https://github.com/softwareCobbler/luceedebug/issues/50
*/
@Override
public CompletableFuture<SourceResponse> source(SourceArguments args) {
final var exceptionalResult = new CompletableFuture<SourceResponse>();
final var error = new ResponseError(ResponseErrorCode.MethodNotFound, "'source' requests are not supported", null);
exceptionalResult.completeExceptionally(new ResponseErrorException(error));
return exceptionalResult;
}

private IPathTransform mungeOnePathTransform(Map<?,?> map) {
var maybeIdePrefix = map.get("idePrefix");

Expand Down

0 comments on commit c21e949

Please sign in to comment.