Merge pull request #513 from tradzero/master

Add open referenced files support for VSCode
This commit is contained in:
Denis Sokolov
2017-07-04 08:26:53 +03:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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:
+1
View File
@@ -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",
];
/**