Interface LSPCommand
public interface LSPCommand
Command interface provided by a
LSPExtension.-
Method Summary
Modifier and TypeMethodDescriptionexecute(LSPServerAccessor server, com.oracle.truffle.api.instrumentation.TruffleInstrument.Env env, List<Object> arguments) Execute the command.getName()Get the name of the command.default intDefine a timeout for the execution of the command.default ObjectFallback behavior in case the command's execution exceeded the timeout.
-
Method Details
-
getName
String getName()Get the name of the command. -
execute
Object execute(LSPServerAccessor server, com.oracle.truffle.api.instrumentation.TruffleInstrument.Env env, List<Object> arguments) Execute the command. -
getTimeoutMillis
default int getTimeoutMillis()Define a timeout for the execution of the command. -
onTimeout
Fallback behavior in case the command's execution exceeded the timeout. Only required ifgetTimeoutMillis()is overridden and returns a value greater zero.
-