Skip to content

Commit

Permalink
Add support for JetBrains server in openFile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
IliyaBrook committed Mar 6, 2024
1 parent 3b7bca2 commit 2202597
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 2202597

Please sign in to comment.