Skip to content

Commit

Permalink
remove experimental code
Browse files Browse the repository at this point in the history
  • Loading branch information
TeemuKoivisto committed May 29, 2024
1 parent e0b1b42 commit 537e950
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 203 deletions.
47 changes: 0 additions & 47 deletions packages/extension/src/inject/AsyncQueue.ts

This file was deleted.

156 changes: 0 additions & 156 deletions packages/extension/src/inject/findEditorViews2.ts

This file was deleted.

2 changes: 2 additions & 0 deletions packages/extension/src/inject/pmViewDescHack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function recurseElementsIntoHackPromises(el: HTMLElement, opts: GetEditorViewOpt
if (
opts.promises.length < opts.max &&
child.pmViewDesc &&
// Skip custom NodeViews since they seem to bug out with the hack
child.pmViewDesc.constructor.name !== 'CustomNodeViewDesc'
) {
opts.promises.push(runPmViewDescHack(el, child, opts))
Expand All @@ -33,6 +34,7 @@ async function runPmViewDescHack(
return { err: 'Finding aborted', code: 400 }
}
let oldFn = parent.pmViewDesc?.updateChildren
// If the same updateChildren is patched twice, the pmViewDesc gets broken. Ups
const alreadyPatched = opts.oldFns.has(parent)
if (!alreadyPatched && oldFn) {
opts.oldFns.set(parent, oldFn)
Expand Down

0 comments on commit 537e950

Please # to comment.