new_pull
This commit is contained in:
@@ -2791,7 +2791,7 @@ Register a custom renderer for messages with your `customType`. Use message rend
|
||||
import { Text } from "@earendil-works/pi-tui";
|
||||
|
||||
pi.registerMessageRenderer("my-extension", (message, options, theme) => {
|
||||
const { expanded } = options;
|
||||
const { expanded, outputPad } = options;
|
||||
let text = theme.fg("accent", `[${message.customType}] `);
|
||||
text += message.content;
|
||||
|
||||
@@ -2799,7 +2799,7 @@ pi.registerMessageRenderer("my-extension", (message, options, theme) => {
|
||||
text += "\n" + theme.fg("dim", JSON.stringify(message.details, null, 2));
|
||||
}
|
||||
|
||||
return new Text(text, 0, 0);
|
||||
return new Text(text, outputPad, 0);
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user