Socket
Socket
Sign inDemoInstall

launch-editor

Package Overview
Dependencies
2
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.0 to 2.6.0

8

editor-info/linux.js

@@ -5,3 +5,7 @@ module.exports = {

code: 'code',
'code-insiders': 'code-insiders',
codium: 'codium',
vscodium: 'vscodium',
emacs: 'emacs',
gvim: 'gvim',
'idea.sh': 'idea',

@@ -13,3 +17,5 @@ 'phpstorm.sh': 'phpstorm',

vim: 'vim',
'webstorm.sh': 'webstorm'
'webstorm.sh': 'webstorm',
'goland.sh': 'goland',
'rider.sh': 'rider'
}

@@ -17,2 +17,3 @@ module.exports = {

'code-insiders',
'/Applications/VSCodium.app/Contents/MacOS/Electron': 'codium',
'/Applications/AppCode.app/Contents/MacOS/appcode':

@@ -33,3 +34,8 @@ '/Applications/AppCode.app/Contents/MacOS/appcode',

'/Applications/WebStorm.app/Contents/MacOS/webstorm':
'/Applications/WebStorm.app/Contents/MacOS/webstorm'
'/Applications/WebStorm.app/Contents/MacOS/webstorm',
'/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
'/Applications/GoLand.app/Contents/MacOS/goland':
'/Applications/GoLand.app/Contents/MacOS/goland',
'/Applications/Rider.app/Contents/MacOS/rider':
'/Applications/Rider.app/Contents/MacOS/rider'
}
module.exports = [
'Brackets.exe',
'Code.exe',
'Code - Insiders.exe',
'VSCodium.exe',
'atom.exe',

@@ -18,3 +20,7 @@ 'sublime_text.exe',

'webstorm.exe',
'webstorm64.exe'
'webstorm64.exe',
'goland.exe',
'goland64.exe',
'rider.exe',
'rider64.exe'
]

@@ -22,3 +22,3 @@ const path = require('path')

case 'notepad++':
return ['-n' + lineNumber, fileName]
return ['-n' + lineNumber, '-c' + columnNumber, fileName]
case 'vim':

@@ -28,2 +28,3 @@ case 'mvim':

case 'joe':
case 'gvim':
return ['+' + `${lineNumber}`, fileName]

@@ -38,5 +39,8 @@ case 'emacs':

case 'code':
case 'Code':
case 'code-insiders':
case 'Code':
case 'Code - Insiders':
case 'codium':
case 'vscodium':
case 'VSCodium':
return ['-r', '-g', `${fileName}:${lineNumber}:${columnNumber}`]

@@ -56,5 +60,13 @@ case 'appcode':

case 'webstorm64':
case 'goland':
case 'goland64':
case 'rider':
case 'rider64':
return ['--line', lineNumber, '--column', columnNumber, fileName]
}
if (process.env.LAUNCH_EDITOR) {
return [fileName, lineNumber, columnNumber]
}
// For all others, drop the lineNumber until we have

@@ -61,0 +73,0 @@ // a mapping above, since providing the lineNumber incorrectly

@@ -17,2 +17,6 @@ const path = require('path')

if (process.env.LAUNCH_EDITOR) {
return [process.env.LAUNCH_EDITOR]
}
if (process.versions.webcontainer) {

@@ -19,0 +23,0 @@ return [process.env.EDITOR || 'code']

2

package.json
{
"name": "launch-editor",
"version": "2.5.0",
"version": "2.6.0",
"description": "launch editor from node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc