(editor: string | undefined)
| 86 | * Returns false if preferred editor is not set / invalid / not available / not allowed in sandbox. |
| 87 | */ |
| 88 | export function isEditorAvailable(editor: string | undefined): boolean { |
| 89 | if (editor && isValidEditorType(editor)) { |
| 90 | return checkHasEditorType(editor) && allowEditorTypeInSandbox(editor); |
| 91 | } |
| 92 | return false; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Get the diff command for a specific editor. |
no test coverage detected