MCPcopy Index your code
hub / github.com/facebook/react / isTerminalEditor

Function isTerminalEditor

packages/react-devtools-core/src/editor.js:15–24  ·  view source on GitHub ↗
(editor: string)

Source from the content-addressed store, hash-verified

13import {parse} from 'shell-quote';
14
15function isTerminalEditor(editor: string): boolean {
16 switch (editor) {
17 case 'vim':
18 case 'emacs':
19 case 'nano':
20 return true;
21 default:
22 return false;
23 }
24}
25
26// Map from full process name to binary that starts the process
27// We can't just re-use full process name, because it will spawn a new instance

Callers 1

launchEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected