mirror of
https://github.com/filp/whoops.git
synced 2026-09-12 18:56:22 +00:00
Merge pull request #513 from tradzero/master
Add open referenced files support for VSCode
This commit is contained in:
@@ -22,6 +22,7 @@ The following editors are currently supported by default.
|
||||
- `sublime` - Sublime Text 2 and possibly 3 (on OS X you might need [a special handler](https://github.com/dhoulb/subl))
|
||||
- `textmate` - Textmate
|
||||
- `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))
|
||||
|
||||
Adding your own editor is simple:
|
||||
|
||||
|
||||
@@ -95,6 +95,7 @@ class PrettyPageHandler extends Handler
|
||||
"macvim" => "mvim://open/?url=file://%file&line=%line",
|
||||
"phpstorm" => "phpstorm://open?file=%file&line=%line",
|
||||
"idea" => "idea://open?file=%file&line=%line",
|
||||
"vscode" => "vscode://file/%file:%line",
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user