File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
java/src/processing/mode/java/lsp Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 66import java .util .Arrays ;
77import java .util .Collections ;
88import java .util .concurrent .CompletableFuture ;
9+ import java .util .concurrent .ExecutionException ;
910import java .util .HashSet ;
1011import java .util .List ;
1112import java .util .Map ;
@@ -58,6 +59,7 @@ class PdeAdapter {
5859 CompletableFuture <PreprocSketch > cps ;
5960 CompletionGenerator suggestionGenerator ;
6061 Set <URI > prevDiagnosticReportUris = new HashSet <>();
62+ PreprocSketch ps ;
6163
6264
6365 PdeAdapter (File rootPath , LanguageClient client ) {
@@ -155,6 +157,10 @@ void notifySketchChanged() {
155157 preprocService .notifySketchChanged ();
156158 errorChecker .notifySketchChanged ();
157159 preprocService .whenDone (cps ::complete );
160+ try { ps = cps .get ();
161+ } catch (InterruptedException | ExecutionException e ) {
162+ throw new RuntimeException (e );
163+ }
158164 }
159165
160166 Optional <SketchCode > findCodeByUri (URI uri ) {
You can’t perform that action at this time.
0 commit comments