Skip to content

Commit 2532295

Browse files
committed
Issue #141: Fix return type of IDebugProtocolServer.initialze
Done with an updated generator, so the Readme now points to the version of the generator that is being used. Signed-off-by: Jonah Graham <[email protected]>
1 parent ed4bdd6 commit 2532295

File tree

4 files changed

+3
-53
lines changed

4 files changed

+3
-53
lines changed

org.eclipse.lsp4j.debug/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
```
77
$ git clone [email protected]:jonahkichwacoders/vscode-debugadapter-node.git
8-
$ git checkout dsp
8+
$ git checkout 4dc5dad2fac01be204dc19548474032c18ca6d06 # (on dsp branch)
99
$ npm install
1010
$ npm run compile
1111
$ # generate java and xtend files to default location

org.eclipse.lsp4j.debug/src/main/java/org/eclipse/lsp4j/debug/DebugProtocol.xtend

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -430,13 +430,6 @@ public enum RunInTerminalRequestArgumentsKind {
430430
EXTERNAL
431431
}
432432

433-
/**
434-
* Response to 'initialize' request.
435-
*/
436-
@JsonRpcData
437-
class InitializeResponse {
438-
}
439-
440433
/**
441434
* Arguments for 'initialize' request.
442435
*/

org.eclipse.lsp4j.debug/src/main/java/org/eclipse/lsp4j/debug/services/IDebugProtocolServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.util.concurrent.CompletableFuture;
1313

1414
import org.eclipse.lsp4j.debug.AttachRequestArguments;
15+
import org.eclipse.lsp4j.debug.Capabilities;
1516
import org.eclipse.lsp4j.debug.CompletionsArguments;
1617
import org.eclipse.lsp4j.debug.CompletionsResponse;
1718
import org.eclipse.lsp4j.debug.ConfigurationDoneArguments;
@@ -26,7 +27,6 @@
2627
import org.eclipse.lsp4j.debug.GotoTargetsArguments;
2728
import org.eclipse.lsp4j.debug.GotoTargetsResponse;
2829
import org.eclipse.lsp4j.debug.InitializeRequestArguments;
29-
import org.eclipse.lsp4j.debug.InitializeResponse;
3030
import org.eclipse.lsp4j.debug.LoadedSourcesArguments;
3131
import org.eclipse.lsp4j.debug.LoadedSourcesResponse;
3232
import org.eclipse.lsp4j.debug.ModulesArguments;
@@ -85,7 +85,7 @@ public interface IDebugProtocolServer {
8585
* Initialize request; value of command field is 'initialize'.
8686
*/
8787
@JsonRequest
88-
CompletableFuture<InitializeResponse> initialize(InitializeRequestArguments args);
88+
CompletableFuture<Capabilities> initialize(InitializeRequestArguments args);
8989

9090
/**
9191
* ConfigurationDone request; value of command field is 'configurationDone'.

org.eclipse.lsp4j.debug/src/main/xtend-gen/org/eclipse/lsp4j/debug/InitializeResponse.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)