Interface IExecutableCommandService
-
public interface IExecutableCommandService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Objectexecute(org.eclipse.lsp4j.ExecuteCommandParams params, ILanguageServerAccess access, org.eclipse.xtext.util.CancelIndicator cancelIndicator)Called when the client wants to execute a registered command.java.util.List<java.lang.String>initialize()Called on server initialize.default voidinitializeDynamicRegistration(org.eclipse.xtext.xbase.lib.Functions.Function1<? super java.lang.String,? extends org.eclipse.xtext.util.IDisposable> register)Called on server initialize, only if the client supported dynamicRegistration of commands.
-
-
-
Method Detail
-
initialize
java.util.List<java.lang.String> initialize()
Called on server initialize.- Returns:
- the supported commands
-
initializeDynamicRegistration
default void initializeDynamicRegistration(org.eclipse.xtext.xbase.lib.Functions.Function1<? super java.lang.String,? extends org.eclipse.xtext.util.IDisposable> register)
Called on server initialize, only if the client supported dynamicRegistration of commands.
-
execute
java.lang.Object execute(org.eclipse.lsp4j.ExecuteCommandParams params, ILanguageServerAccess access, org.eclipse.xtext.util.CancelIndicator cancelIndicator)Called when the client wants to execute a registered command.
-
-