feat(prompt): add shell mode UI with cancel button, custom icon, and example placeholder (#24105)
This commit is contained in:
parent
6c1268f3b1
commit
4712f0f3c1
21 changed files with 40 additions and 29 deletions
|
|
@ -7,7 +7,7 @@ type PromptPlaceholderInput = {
|
|||
}
|
||||
|
||||
export function promptPlaceholder(input: PromptPlaceholderInput) {
|
||||
if (input.mode === "shell") return input.t("prompt.placeholder.shell")
|
||||
if (input.mode === "shell") return input.t("prompt.placeholder.shell", { example: input.example })
|
||||
if (input.commentCount > 1) return input.t("prompt.placeholder.summarizeComments")
|
||||
if (input.commentCount === 1) return input.t("prompt.placeholder.summarizeComment")
|
||||
if (!input.suggest) return input.t("prompt.placeholder.simple")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue