Skip to content

Commit ec483e9

Browse files
authored
Fix rename causing blanking of raw cell conents (#1086)
* Fix raw cell rename issue * Deduplicate yarn * Lint * Revert yarn lock changes
1 parent b159ae2 commit ec483e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/jupyterlab-lsp/src/edits.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,12 @@ export class EditApplicator {
189189
if (!editor) {
190190
throw Error('Editor is not accessible');
191191
}
192-
if (editor.host.closest('.jp-MarkdownCell')) {
192+
if (
193+
editor.host.closest('.jp-MarkdownCell') ||
194+
editor.host.closest('.jp-RawCell')
195+
) {
193196
// Workaround for https://github.com/jupyter-lsp/jupyterlab-lsp/issues/1008
197+
// and for https://github.com/jupyter-lsp/jupyterlab-lsp/issues/1084
194198
// briefly, the rewrite for JupyterLab 4.0 added Markdown cell support, but they
195199
// are extracted without trace in the top-level document. Here we avoid editing
196200
// any markdown cell. Instead the clean solution would be to add an anchor marker

0 commit comments

Comments
 (0)