WIP: Enable Edit Sketch without variable declaration

This commit is contained in:
Jonathan Tran
2024-08-07 15:56:05 -04:00
parent 35387bbd7d
commit e9fe455607

View File

@ -795,7 +795,7 @@ export function isSingleCursorInPipe(
const pathToNode = getNodePathFromSourceRange(ast, selection.range)
const nodeTypes = pathToNode.map(([, type]) => type)
if (nodeTypes.includes('FunctionExpression')) return false
if (!nodeTypes.includes('VariableDeclaration')) return false
// if (!nodeTypes.includes('VariableDeclaration')) return false
if (nodeTypes.includes('PipeExpression')) return true
return false
}