Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically expand removal for Tree sitter targets #2783

Merged
merged 15 commits into from
Jan 29, 2025
Merged

Conversation

AndreasArvidsson
Copy link
Member

Fixes #855

Checklist

  • I have added tests
  • [/] I have updated the docs and cheatsheet
  • [/] I have not broken the cheatsheet

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner January 27, 2025 20:34
…ertionRemovalBehaviors/getSmartRemovalTarget.ts
}

function isDocument(editor: TextEditor, contentRange: Range): boolean {
const documentContentRange = shrinkRangeToFitContent(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const documentContentRange = shrinkRangeToFitContent(
// This involves trimming/comparing with the content of the document,
// so this test is more expensive than the others. Run last.
const documentContentRange = shrinkRangeToFitContent(

…ertionRemovalBehaviors/getSmartRemovalTarget.ts
…ertionRemovalBehaviors/getSmartRemovalTarget.ts
…ertionRemovalBehaviors/getSmartRemovalTarget.ts
…ertionRemovalBehaviors/getSmartRemovalTarget.ts
@phillco phillco enabled auto-merge January 29, 2025 05:15
@phillco phillco added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit 3266cc7 Jan 29, 2025
15 checks passed
@phillco phillco deleted the smartRemoval branch January 29, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically try to remove scopes as if they're token, line, block, file if they have no removal behaviour
2 participants