mirror of
https://github.com/filp/whoops.git
synced 2026-09-11 02:06:20 +00:00
Add support for opening files in Espresso
This commit is contained in:
@@ -24,6 +24,7 @@ The following editors are currently supported by default.
|
||||
- `xdebug` - xdebug (uses [xdebug.file_link_format](http://xdebug.org/docs/all_settings#file_link_format))
|
||||
- `vscode` - VSCode (ref [Opening VS Code with URLs](https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls))
|
||||
- `atom` - Atom (ref [Add core URI handlers](https://github.com/atom/atom/pull/15935))
|
||||
- `espresso` - Espresso
|
||||
|
||||
Adding your own editor is simple:
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ class PrettyPageHandler extends Handler
|
||||
"idea" => "idea://open?file=%file&line=%line",
|
||||
"vscode" => "vscode://file/%file:%line",
|
||||
"atom" => "atom://core/open/file?filename=%file&line=%line",
|
||||
"espresso" => "x-espresso://open?filepath=%file&lines=%line",
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user