Search in sources :

Example 1 with TextDocumentSurrogateMap

use of org.graalvm.tools.lsp.server.utils.TextDocumentSurrogateMap in project graal by oracle.

the class TruffleAdapter method initSurrogateMap.

private void initSurrogateMap() {
    try {
        contextAwareExecutor.executeWithDefaultContext(() -> {
            logger.log(Level.CONFIG, "Truffle Runtime: {0}", Truffle.getRuntime().getName());
            return null;
        }).get();
        this.surrogateMap = new TextDocumentSurrogateMap(envInternal);
    } catch (InterruptedException | ExecutionException e) {
        throw new RuntimeException(e);
    }
}
Also used : TextDocumentSurrogateMap(org.graalvm.tools.lsp.server.utils.TextDocumentSurrogateMap) ExecutionException(java.util.concurrent.ExecutionException)

Aggregations

ExecutionException (java.util.concurrent.ExecutionException)1 TextDocumentSurrogateMap (org.graalvm.tools.lsp.server.utils.TextDocumentSurrogateMap)1