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:19:58 +02:00
parent 3b7bca2dbb
commit 851d858a91

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}`;