Interface ILanguageServerExtension


  • public interface ILanguageServerExtension
    Interface for language specific extensions to LSP. Implementors should use JsonNotification and JsonRequest annotations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.RuntimeException NOT_HANDLED_EXCEPTION
      The same jsonrpc method might be supported by multiple languages and only the actual invocation might reveal is a language wants to handle it, based on e.g.
    • Field Detail

      • NOT_HANDLED_EXCEPTION

        static final java.lang.RuntimeException NOT_HANDLED_EXCEPTION
        The same jsonrpc method might be supported by multiple languages and only the actual invocation might reveal is a language wants to handle it, based on e.g. a uri in the parameter. To indicate that a request is not handled, this exception should be thrown by the service.
    • Method Detail

      • initialize

        void initialize​(ILanguageServerAccess access)
        Initialize the extension.
        Parameters:
        access - Provides access to language server documents, resource and build events.