File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/jupyterlab-lsp/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,14 @@ export class EditApplicator {
189
189
if ( ! editor ) {
190
190
throw Error ( 'Editor is not accessible' ) ;
191
191
}
192
+ if ( editor . host . closest ( '.jp-MarkdownCell' ) ) {
193
+ // Workaround for https://github.com/jupyter-lsp/jupyterlab-lsp/issues/1008
194
+ // briefly, the rewrite for JupyterLab 4.0 added Markdown cell support, but they
195
+ // are extracted without trace in the top-level document. Here we avoid editing
196
+ // any markdown cell. Instead the clean solution would be to add an anchor marker
197
+ // to the top-level document.
198
+ return 0 ;
199
+ }
192
200
// TODO: should accessor present the model even if editor is not created yet?
193
201
const model = editor . model ;
194
202
You can’t perform that action at this time.
0 commit comments