mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-02-06 23:18:28 -06:00
sync open-in-editor url w/ devtool
This commit is contained in:
@@ -2,7 +2,7 @@ const launchEditor = require('./launchEditor')
|
||||
|
||||
module.exports = () => {
|
||||
return function launchEditorMiddleware (req, res, next) {
|
||||
if (req.url.startsWith('/open-in-editor')) {
|
||||
if (req.url.startsWith('/_open')) {
|
||||
launchEditor(req.query.fileName, req.query.lineNumber)
|
||||
res.end()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user