use editor.selection.ranges