Add support for JetBrains_server in openFile

This commit extends the functionality of the 'openFile.ts' within the redux-devtools-inspector-monitor-trace-tab package to support JetBrains_server. It does this by defining the URL for the JetBrains_server case which connects to the local server at port 63342.
This commit is contained in:
Iliya Brook 2024-03-04 18:57:16 +02:00
parent 851d858a91
commit de0cfb545d

View File

@ -84,6 +84,7 @@ function openInEditor(editor: string, path: string, stackFrame: StackFrame) {
case 'idea': case 'idea':
url = `${editor}://open?file=${projectPath}${filePath}&line=${line}&column=${column}`; url = `${editor}://open?file=${projectPath}${filePath}&line=${line}&column=${column}`;
break; break;
// add support for jetbrains server
case 'jetbrains_server': case 'jetbrains_server':
url = `http://localhost:63342/api/file/?file=${filePath}&line=${line}`; url = `http://localhost:63342/api/file/?file=${filePath}&line=${line}`;
break; break;