(language: string)
| 141 | let pluginView: EditorView | null = null; |
| 142 | |
| 143 | const onLanguageLoaded = (language: string) => { |
| 144 | if (pluginView) { |
| 145 | pluginView.dispatch( |
| 146 | pluginView.state.tr.setMeta(PRISM_LANGUAGE_LOADED_META, language), |
| 147 | ); |
| 148 | } |
| 149 | }; |
| 150 | |
| 151 | const prismjsPlugin: Plugin<DecorationSet> = new Plugin({ |
| 152 | key: new PluginKey('prism'), |
no test coverage detected