Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Option for Whoops to include IDE link#616

https://github.com/filp/whoops/blob/master/docs/Open%20Files%20In%20An%20Editor.md

use Whoops\Handler\PrettyPageHandler;

$handler = new PrettyPageHandler;
$handler->setEditor('sublime');

as kirby option like this, backwards compatible with a check against being === false to support array as value for whoops and not just current boolean value.
https://getkirby.com/docs/reference/system/options/whoops

return [
    'whoops' => [
        'enabled' => true,
        'editor' => 'vscode',
    ],
];
4 months ago
2

This option is already there, just undocumented: 'editor' => 'sublime'. See AppErrors.php#L95

4 months ago
1

thanks

4 months ago
Changed the status to
Completed
4 months ago

for future reference its not inside the whoops namespace but like this…

return [
    'whoops' => true, // which is the default
    'editor' => 'vscode',
];
4 months ago