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 6
6
import java .util .Arrays ;
7
7
import java .util .Collections ;
8
8
import java .util .concurrent .CompletableFuture ;
9
+ import java .util .concurrent .ExecutionException ;
9
10
import java .util .HashSet ;
10
11
import java .util .List ;
11
12
import java .util .Map ;
@@ -58,6 +59,7 @@ class PdeAdapter {
58
59
CompletableFuture <PreprocSketch > cps ;
59
60
CompletionGenerator suggestionGenerator ;
60
61
Set <URI > prevDiagnosticReportUris = new HashSet <>();
62
+ PreprocSketch ps ;
61
63
62
64
63
65
PdeAdapter (File rootPath , LanguageClient client ) {
@@ -155,6 +157,10 @@ void notifySketchChanged() {
155
157
preprocService .notifySketchChanged ();
156
158
errorChecker .notifySketchChanged ();
157
159
preprocService .whenDone (cps ::complete );
160
+ try { ps = cps .get ();
161
+ } catch (InterruptedException | ExecutionException e ) {
162
+ throw new RuntimeException (e );
163
+ }
158
164
}
159
165
160
166
Optional <SketchCode > findCodeByUri (URI uri ) {
You can’t perform that action at this time.
0 commit comments