docs(coding-agent): fix invalid notify type in extensions example
The notify() API only accepts "info" | "warning" | "error" — "success" was a copy-paste error in the example. Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co>
This commit is contained in:
@@ -162,7 +162,7 @@ export default function (pi: ExtensionAPI) {
|
|||||||
pi.on("event_name", async (event, ctx) => {
|
pi.on("event_name", async (event, ctx) => {
|
||||||
// ctx.ui for user interaction
|
// ctx.ui for user interaction
|
||||||
const ok = await ctx.ui.confirm("Title", "Are you sure?");
|
const ok = await ctx.ui.confirm("Title", "Are you sure?");
|
||||||
ctx.ui.notify("Done!", "success");
|
ctx.ui.notify("Done!", "info");
|
||||||
ctx.ui.setStatus("my-ext", "Processing..."); // Footer status
|
ctx.ui.setStatus("my-ext", "Processing..."); // Footer status
|
||||||
ctx.ui.setWidget("my-ext", ["Line 1", "Line 2"]); // Widget above editor (default)
|
ctx.ui.setWidget("my-ext", ["Line 1", "Line 2"]); // Widget above editor (default)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user