()
| 414 | }); |
| 415 | |
| 416 | const beginEditorRecording = async () => { |
| 417 | closeRecord(); |
| 418 | if (editorState.playing) { |
| 419 | await commands.stopPlayback(); |
| 420 | setEditorState("playing", false); |
| 421 | } |
| 422 | if (previousMode === null) previousMode = rawOptions.mode; |
| 423 | setOptions("mode", "studio"); |
| 424 | await commands.setRecordingMode("studio"); |
| 425 | await commands.setProjectConfig(serializeProjectConfiguration(project)); |
| 426 | await commands.setEditorRecordingTarget(editorInstance.path); |
| 427 | }; |
| 428 | |
| 429 | const openTargetMode = async (mode: RecordingTargetMode) => { |
| 430 | setDisplayMenuOpen(false); |
no test coverage detected