From 2202597be889691ac261de2c3737983766dfe17d Mon Sep 17 00:00:00 2001 From: Iliya Brook Date: Wed, 6 Mar 2024 14:50:43 +0200 Subject: [PATCH] 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. --- .../redux-devtools-inspector-monitor-trace-tab/src/openFile.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/redux-devtools-inspector-monitor-trace-tab/src/openFile.ts b/packages/redux-devtools-inspector-monitor-trace-tab/src/openFile.ts index eabda508..4afaa6a2 100644 --- a/packages/redux-devtools-inspector-monitor-trace-tab/src/openFile.ts +++ b/packages/redux-devtools-inspector-monitor-trace-tab/src/openFile.ts @@ -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}`;