Package org.eclipse.xtext.ide.server
Interface ILanguageServerExtension
-
public interface ILanguageServerExtensionInterface for language specific extensions to LSP. Implementors should useJsonNotificationandJsonRequestannotations.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.RuntimeExceptionNOT_HANDLED_EXCEPTIONThe 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(ILanguageServerAccess access)Initialize the extension.
-
-
-
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.
-
-