You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.copilot.

Interface CopilotCommand

All Known Implementing Classes:

AccessibilityCheckerMessageHandler, AICommandHandler, AnalyticsInterceptor, ApplicationInitializer, DevSetupHandler, DocsHandler, ErrorHandler, FeedbackHandler, GenerateTestsHandler, HotswapDownloadHandler, I18nHandler, IdeHandler, IdePluginCommandHandler, InfoHandler, JavaParserHandler, JavaRewriteHandler, MachineConfigurationHandler, OpenComponentInIDE, PreviewHandler, ProjectFileHandler, RouteHandler, ThemeEditorMessageHandler, UiServiceHandler, UserInfoHandler

public interface CopilotCommand
  • Field Details

  • Method Details

    • handleMessage

      boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface)
    • handleConnect

      default void handleConnect(DevToolsInterface devToolsInterface)
    • canBeParallelCommand

      default boolean canBeParallelCommand(String command)

      Checks if given command can be handled asynchronously. If the handler can't be asynchronous at all, it can return false always. But if you want to handle one or more commands asynchronously, you should specify the exact command to prevent handling commands that are not part of the handler as asynchronous.

      Parameters:

      command -

      Returns:

      true if the command can be handled by this command handler