Merge branch 'main' into kurt-bring-back-multi-profile

This commit is contained in:
Jonathan Tran
2025-01-08 21:08:47 -05:00
348 changed files with 127823 additions and 2699 deletions

View File

@ -324,7 +324,8 @@ export function handleSelectionBatch({
resetAndSetEngineEntitySelectionCmds(selectionToEngine)
selections.graphSelections.forEach(({ codeRef }) => {
if (codeRef.range?.[1]) {
ranges.push(EditorSelection.cursor(codeRef.range[1]))
const safeEnd = Math.min(codeRef.range[1], codeManager.code.length)
ranges.push(EditorSelection.cursor(safeEnd))
}
})
if (ranges.length)
@ -780,6 +781,14 @@ export function codeToIdSelections(
}
}
}
if (entry.artifact.type === 'sweep') {
bestCandidate = {
artifact: entry.artifact,
selection,
id: entry.id,
}
}
})
if (bestCandidate) {