Unverified Commit 7c8e2b4e authored by 강노아's avatar 강노아 Committed by GitHub

[dev-overlay] fix: line number handling for cursor editor (#76151)

Co-authored-by: 's avatarJiachi Liu <inbox@huozhi.im>
parent 8e9f92b6
...@@ -84,6 +84,8 @@ const COMMON_EDITORS_MACOS = { ...@@ -84,6 +84,8 @@ const COMMON_EDITORS_MACOS = {
'/Applications/GoLand.app/Contents/MacOS/goland', '/Applications/GoLand.app/Contents/MacOS/goland',
'/Applications/Rider.app/Contents/MacOS/rider': '/Applications/Rider.app/Contents/MacOS/rider':
'/Applications/Rider.app/Contents/MacOS/rider', '/Applications/Rider.app/Contents/MacOS/rider',
'/Applications/Cursor.app/Contents/MacOS/Cursor':
'/Applications/Cursor.app/Contents/MacOS/Cursor',
} }
const COMMON_EDITORS_LINUX = { const COMMON_EDITORS_LINUX = {
...@@ -181,6 +183,7 @@ function getArgumentsForLineNumber( ...@@ -181,6 +183,7 @@ function getArgumentsForLineNumber(
case 'Code': case 'Code':
case 'code-insiders': case 'code-insiders':
case 'Code - Insiders': case 'Code - Insiders':
case 'Cursor':
case 'vscodium': case 'vscodium':
case 'VSCodium': { case 'VSCodium': {
return ['-g', fileName + ':' + lineNumber + ':' + colNumber] return ['-g', fileName + ':' + lineNumber + ':' + colNumber]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment