mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 09:36:43 +03:00
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.
This commit is contained in:
parent
3b7bca2dbb
commit
2202597be8
|
@ -84,6 +84,9 @@ 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;
|
||||||
|
case 'jetbrains_server':
|
||||||
|
url = `http://localhost:63342/api/file/?file=${filePath}&line=${line}`;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// sublime, emacs, macvim, textmate + custom like https://github.com/eclemens/atom-url-handler
|
// sublime, emacs, macvim, textmate + custom like https://github.com/eclemens/atom-url-handler
|
||||||
url = `${editor}://open/?url=file://${projectPath}${filePath}&line=${line}&column=${column}`;
|
url = `${editor}://open/?url=file://${projectPath}${filePath}&line=${line}&column=${column}`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user