Skip to content

Commit

Permalink
Fix rename causing blanking of raw cell conents (#1086)
Browse files Browse the repository at this point in the history
* Fix raw cell rename issue

* Deduplicate yarn

* Lint

* Revert yarn lock changes
  • Loading branch information
krassowski authored Jun 21, 2024
1 parent b159ae2 commit ec483e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/jupyterlab-lsp/src/edits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,12 @@ export class EditApplicator {
if (!editor) {
throw Error('Editor is not accessible');
}
if (editor.host.closest('.jp-MarkdownCell')) {
if (
editor.host.closest('.jp-MarkdownCell') ||
editor.host.closest('.jp-RawCell')
) {
// Workaround for https://github.com/jupyter-lsp/jupyterlab-lsp/issues/1008
// and for https://github.com/jupyter-lsp/jupyterlab-lsp/issues/1084
// briefly, the rewrite for JupyterLab 4.0 added Markdown cell support, but they
// are extracted without trace in the top-level document. Here we avoid editing
// any markdown cell. Instead the clean solution would be to add an anchor marker
Expand Down

0 comments on commit ec483e9

Please # to comment.