This isn't actually the path though - this is the entire line until the cursor. We should keep the name `lineUpToCursor` instead of `path` just because otherwise it's unclear.