Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added basic scaffolding that should implement log and show message but it does not work yet. #186

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into implement-log-and-show-message
  • Loading branch information
jurgenvinju committed Oct 31, 2023
commit 99069d7a8b52dd2f5e014896851bd8883765b8c5
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@
import org.rascalmpl.vscode.lsp.terminal.ITerminalIDEServer.LanguageParameter;
import org.rascalmpl.vscode.lsp.util.Diagnostics;
import org.rascalmpl.vscode.lsp.util.DocumentChanges;
import org.rascalmpl.vscode.lsp.util.locations.Locations;

import com.google.gson.JsonObject;

Original file line number Diff line number Diff line change
@@ -37,6 +37,8 @@
import java.util.concurrent.CompletableFuture;

import org.eclipse.lsp4j.MessageParams;
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.eclipse.lsp4j.ShowDocumentParams;
import org.eclipse.lsp4j.ShowDocumentResult;
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification;
Original file line number Diff line number Diff line change
@@ -253,6 +253,7 @@ public void unregisterDiagnostics(IList resources) {
server.unregisterDiagnostics(new UnRegisterDiagnosticsParameters(resources));
}

<<<<<<< HEAD
@Override
public void logMessage(IConstructor msg) {
server.logMessage(new MessageParams(getMessageType(msg), getMessageString(msg)));
@@ -285,4 +286,16 @@ private MessageType getMessageType(IConstructor msg) {
}
return type;
}

public void startDebuggingSession(int serverPort){
server.startDebuggingSession(serverPort);
}

public void registerDebugServerPort(int processID, int serverPort){
server.registerDebugServerPort(processID, serverPort);
}

public void registerErrorPrinter(PrintWriter errorPrinter) {
this.err = errorPrinter;
}
}
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.