点击跳转代码插件修复websotrm bug (#1715)
This commit is contained in:
parent
24db0eb5aa
commit
4798f7688b
|
@ -11,8 +11,9 @@ export default function GvaPositionServer() {
|
||||||
req._parsedUrl.query && req._parsedUrl.query.split('=')[1]
|
req._parsedUrl.query && req._parsedUrl.query.split('=')[1]
|
||||||
if (path && path !== 'null') {
|
if (path && path !== 'null') {
|
||||||
if (process.env.VITE_EDITOR === 'webstorm') {
|
if (process.env.VITE_EDITOR === 'webstorm') {
|
||||||
const linePath = path.split(':')[1]
|
const lastColonIndex = path.lastIndexOf(':')
|
||||||
const filePath = path.split(':')[0]
|
const linePath = path.substring(lastColonIndex + 1)
|
||||||
|
const filePath = path.substring(0, lastColonIndex)
|
||||||
const platform = os()
|
const platform = os()
|
||||||
if (platform === 'win32') {
|
if (platform === 'win32') {
|
||||||
child_process.exec(
|
child_process.exec(
|
||||||
|
|
Loading…
Reference in New Issue