Selections bug (#2836)

* fix selection override

* add selection test

* fix playwright tests
This commit is contained in:
Kurt Hutten
2024-06-28 14:40:59 +10:00
committed by GitHub
parent bb9d24f821
commit b5f3a067ee
4 changed files with 127 additions and 14 deletions

View File

@ -326,6 +326,11 @@ export const ModelingMachineProvider = ({
)
updateSceneObjectColors()
// side effect to stop code mirror from updating the same selections again
editorManager.lastSelection = selections.codeBasedSelections
.map(({ range }) => `${range[1]}->${range[1]}`)
.join('&')
return {
selectionRanges: selections,
}