Skip to content

Commit

Permalink
点击跳转代码插件修复websotrm bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xue-ding-e committed Apr 14, 2024
1 parent 1ece13c commit 35b7850
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/vitePlugin/codeServer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export default function GvaPositionServer() {
req._parsedUrl.query && req._parsedUrl.query.split('=')[1]
if (path && path !== 'null') {
if (process.env.VITE_EDITOR === 'webstorm') {
const linePath = path.split(':')[1]
const filePath = path.split(':')[0]
const lastColonIndex = path.lastIndexOf(':')
const linePath = path.substring(lastColonIndex + 1)
const filePath = path.substring(0, lastColonIndex)
const platform = os()
if (platform === 'win32') {
child_process.exec(
Expand Down

0 comments on commit 35b7850

Please sign in to comment.