Interface LSPServerAccessor


public interface LSPServerAccessor
Provides access to the GraalLS from within LSPExtensions.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a map of fileURIs to languageIds for all files currently open in the LSP client.
    com.oracle.truffle.api.source.Source
    Get the Source for a given URI.
    void
    Instruct the GraalLS to send a custom notification to the LSP client.
  • Method Details

    • getOpenFileURI2LangId

      Map<URI,String> getOpenFileURI2LangId()
      Get a map of fileURIs to languageIds for all files currently open in the LSP client.
    • sendCustomNotification

      void sendCustomNotification(String method, Object params)
      Instruct the GraalLS to send a custom notification to the LSP client.
    • getSource

      com.oracle.truffle.api.source.Source getSource(URI uri)
      Get the Source for a given URI. Returns null if no source was found.