Ai.commands
configurationDefines the shared fast commands for the side panel AI Prompt tool and the inline popup prompt tool. The commands are displayed in the side panel AI Prompt view and the context menu of the inline popup tool.
The commands can be configured separately in the ai.aiPrompt.commands and ai.inlineAIPrompt.commands properties.
ai.commands
Arrayai.commands.icon
StringThe icon of the command.
ai.commands.id
StringThe id of the command.
ai.commands.prompt
FunctionThe prompt for the command. The function accepts the following arguments:
context- The text in the editor.
ai.commands.text
StringThe text of the command.