Skip to content

Commit

Permalink
Update packages/cursorless-engine/src/processTargets/targets/util/ins…
Browse files Browse the repository at this point in the history
…ertionRemovalBehaviors/getSmartRemovalTarget.ts
  • Loading branch information
phillco authored Jan 29, 2025
1 parent 31d32ed commit 4baa92e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export function getSmartRemovalTarget(target: Target): Target {
});
}

/**
* Returns whether the given content range is a series of line(s) that do not have preceding
* or trailing content (whitespace is OK).
*/
function isLine(document: TextDocument, contentRange: Range): boolean {
const start = document.lineAt(contentRange.start).rangeTrimmed?.start;
const end = document.lineAt(contentRange.end).rangeTrimmed?.end;
Expand Down

0 comments on commit 4baa92e

Please sign in to comment.