(doc: CodeMirror.Doc)
| 74 | ]); |
| 75 | |
| 76 | function getMode(doc: CodeMirror.Doc): { name: string } { |
| 77 | return doc.getMode() as { name: string }; |
| 78 | } |
| 79 | |
| 80 | // Note that this cannot be mapped directly into the Language enum. |
| 81 | export function editorLanguage(doc: CodeMirror.Doc): string { |
no outgoing calls
no test coverage detected