fix unreliable channel (#2329)

* fix unreliable channel

* add test for hovering
This commit is contained in:
Kurt Hutten
2024-05-09 15:04:33 +10:00
committed by GitHub
parent 309943cf2c
commit 758aac9328
3 changed files with 98 additions and 43 deletions

View File

@ -14,8 +14,8 @@ export function useEngineConnectionSubscriptions() {
event: 'highlight_set_entity',
callback: ({ data }) => {
if (data?.entity_id) {
const sourceRange =
engineCommandManager.artifactMap?.[data.entity_id]?.range
const sourceRange = engineCommandManager.artifactMap?.[data.entity_id]
?.range || [0, 0]
editorManager.setHighlightRange(sourceRange)
} else if (
!editorManager.highlightRange ||