Theia API Documentation v1.74.0
    Preparing search index...
    • Validates a tool name for use as a registered tool id.

      Parameters

      • name: string

        the name to validate

      • existingTools: SketchedToolDefinition[]

        the currently defined tools, used to check for name collisions

      • OptionalselfId: string

        the id of the tool being edited, so it is not compared against itself

      Returns undefined | string

      a localized error message if the name is invalid, otherwise undefined