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

Move file to new file doesn't work with top-level statements #53694

Closed
Youssef1313 opened this issue May 26, 2021 · 0 comments · Fixed by #54421
Closed

Move file to new file doesn't work with top-level statements #53694

Youssef1313 opened this issue May 26, 2021 · 0 comments · Fixed by #54421
Assignees
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it New Language Feature - Simple Programs Top-level statements
Milestone

Comments

@Youssef1313
Copy link
Member

Version Used:

16.9.4

Steps to Reproduce:

  1. Have a class in a top-level statement program
  2. Press Ctrl+.

Expected Behavior:

A refactoring "Move type to FileName.cs

Actual Behavior:

Refactoring not offered.

It's only offered when there are 2 classes in the file. This is behavior is expected when top-level isn't used.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 26, 2021
@jinujoseph jinujoseph added New Language Feature - Simple Programs Top-level statements Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 2, 2021
@jinujoseph jinujoseph added this to the Backlog milestone Jun 2, 2021
@ryzngard ryzngard self-assigned this Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement help wanted The issue is "up for grabs" - add a comment if you are interested in working on it New Language Feature - Simple Programs Top-level statements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants