Skip to content

Commit 2202597

Browse files
committed
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.
1 parent 3b7bca2 commit 2202597

File tree

1 file changed

+3
-0
lines changed
  • packages/redux-devtools-inspector-monitor-trace-tab/src

1 file changed

+3
-0
lines changed

packages/redux-devtools-inspector-monitor-trace-tab/src/openFile.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ function openInEditor(editor: string, path: string, stackFrame: StackFrame) {
8484
case 'idea':
8585
url = `${editor}://open?file=${projectPath}${filePath}&line=${line}&column=${column}`;
8686
break;
87+
case 'jetbrains_server':
88+
url = `http://localhost:63342/api/file/?file=${filePath}&line=${line}`;
89+
break;
8790
default:
8891
// sublime, emacs, macvim, textmate + custom like https://github.com/eclemens/atom-url-handler
8992
url = `${editor}://open/?url=file://${projectPath}${filePath}&line=${line}&column=${column}`;

0 commit comments

Comments
 (0)