Skip to content

Improved edit span for import #23083

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

Merged
merged 1 commit into from
May 5, 2025
Merged

Conversation

som-snytt
Copy link
Contributor

Left less vertical space when deleting lines of import.

Extracted from local branch of #22316

@som-snytt som-snytt marked this pull request as ready for review May 1, 2025 03:35
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM though the code actions do not show up unless the rewrite flag is on. At that point rewrites are doing all the job, so actions are not really needed.

Would it make sense to always produce the actions, just not act on them unless rewrite is on?

@som-snytt
Copy link
Contributor Author

Yes, I remember I was unsure about the UX. I suppose asking for warnings means asking for code actions (which may be a bit expensive to calculate, but the lint is already expensive). (I was also concerned that -rewrite is for migration support but here means quickfix.)

@tgodzik tgodzik merged commit 0ae343f into scala:main May 5, 2025
29 checks passed
@tgodzik tgodzik self-assigned this May 5, 2025
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request May 5, 2025
Left less vertical space when deleting lines of import.

Extracted from local branch of
scala#22316
[Cherry-picked 0ae343f]
@som-snytt som-snytt deleted the improve/edit-import branch May 5, 2025 14:53
odersky pushed a commit to dotty-staging/dotty that referenced this pull request May 12, 2025
Left less vertical space when deleting lines of import.

Extracted from local branch of
scala#22316
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.

2 participants