Add support for JetBrains server in openFile

The code has been updated to include an additional case for 'jetbrains_server' in the switch statement. This allows the openFile function to generate a URL for opening files on a JetBrains server, respecting the particular file path and line.
This commit is contained in:
Iliya Brook 2024-03-06 14:50:43 +02:00
parent 3b7bca2dbb
commit 2202597be8

View File

@ -84,6 +84,9 @@ function openInEditor(editor: string, path: string, stackFrame: StackFrame) {
case 'idea':
url = `${editor}://open?file=${projectPath}${filePath}&line=${line}&column=${column}`;
break;
case 'jetbrains_server':
url = `http://localhost:63342/api/file/?file=${filePath}&line=${line}`;
break;
default:
// sublime, emacs, macvim, textmate + custom like https://github.com/eclemens/atom-url-handler
url = `${editor}://open/?url=file://${projectPath}${filePath}&line=${line}&column=${column}`;