6666import org .eclipse .lsp4j .services .LanguageClient ;
6767import org .rascalmpl .debug .IRascalMonitor ;
6868import org .rascalmpl .exceptions .Throw ;
69- import org .rascalmpl .ideservices .IDEServices ;
7069import org .rascalmpl .interpreter .Evaluator ;
7170import org .rascalmpl .interpreter .control_exceptions .InterruptException ;
7271import org .rascalmpl .interpreter .staticErrors .StaticError ;
7574import org .rascalmpl .shell .ShellEvaluatorFactory ;
7675import org .rascalmpl .uri .URIUtil ;
7776import org .rascalmpl .uri .jar .JarURIResolver ;
78- import org .rascalmpl .vscode .lsp .BaseWorkspaceService ;
79- import org .rascalmpl .vscode .lsp .IBaseLanguageClient ;
80- import org .rascalmpl .vscode .lsp .IBaseTextDocumentService ;
81- import org .rascalmpl .vscode .lsp .LSPIDEServices ;
8277import org .rascalmpl .vscode .lsp .RascalLSPMonitor ;
8378import org .rascalmpl .vscode .lsp .rascal .RascalLanguageServer ;
8479import org .rascalmpl .vscode .lsp .util .concurrent .InterruptibleFuture ;
80+
8581import io .usethesource .vallang .IConstructor ;
8682import io .usethesource .vallang .IString ;
8783import io .usethesource .vallang .IValue ;
@@ -104,9 +100,6 @@ public class EvaluatorUtil {
104100 }
105101 var monitor = actualEval .getMonitor ();
106102 // unwrap until we find the RascalLSPMonitor doing the heavy lifting
107- if (monitor instanceof LSPIDEServices ) {
108- monitor = ((LSPIDEServices ) monitor ).getMonitor ();
109- }
110103 if (monitor instanceof RascalLSPMonitor ) {
111104 ((RascalLSPMonitor ) monitor ).registerActiveFuture (task , self );
112105 }
0 commit comments