Merge branch 'main' into kurt-bring-back-multi-profile
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user