Skip to content

Commit a0c2dc0

Browse files
author
Pooya Parsa
committed
refactor: change _open endpoint to /__open-in-editor
BREAKING CHANGE: endpoint changed ref: vuejs/devtools-v6#483
1 parent 1e80972 commit a0c2dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Youch/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Youch {
4646
}
4747
fs.readFile(frame.fileName, 'utf-8', (error, contents) => {
4848
if (!error && contents) {
49-
frame.contents = contents
49+
frame.contents = contents
5050
}
5151
resolve()
5252
})
@@ -188,7 +188,7 @@ class Youch {
188188
if (!frame.fullPath) {
189189
return
190190
}
191-
const baseURL = `http://` + this.request.headers.host + '/_open'
191+
const baseURL = `http://` + this.request.headers.host + '/__open-in-editor'
192192
return baseURL + '?file=' + encodeURI(frame.fullPath) + ':' + (frame.getLineNumber() || 0) + ':' + (frame.getColumnNumber() || 0)
193193
}
194194

0 commit comments

Comments
 (0)