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

Visual Basic: "Object initialization can be simplified (IDE0017)" wrong indent with custom tab/indent size #66071

Closed
skurth opened this issue Dec 20, 2022 · 5 comments
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@skurth
Copy link

skurth commented Dec 20, 2022

Version Used: Visual Studio 2022 (17.4.1, also with 17.4.3)

Steps to Reproduce:

Module Program

  Sub Main(args As String())
    Dim testObj As New Test()
    testObj.TestString = "harr"
    testObj.TestInt = 5
  End Sub

  Private Class Test
    Property TestString As String
    Property TestInt As Integer
  End Class

End Module

Tabs settings:
image

Expected Behavior:
The indent should be correct. In Visual Studio 2019, this worked:
image

Actual Behavior:
image

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 20, 2022
@Youssef1313
Copy link
Member

@skurth Can you update to 17.4.3?

I think this issue was fixed and backported to 17.4 (PR: #65382)

@skurth
Copy link
Author

skurth commented Dec 20, 2022

@Youssef1313 I have updated to 17.4.3 and still have this issue.

@skurth
Copy link
Author

skurth commented Jan 11, 2023

@Youssef1313 Still have this issue in 17.4.4

@CyrusNajmabadi CyrusNajmabadi added Bug 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 Jan 11, 2023
@CyrusNajmabadi CyrusNajmabadi added this to the Backlog milestone Jan 11, 2023
@CyrusNajmabadi
Copy link
Member

@skurth Does this repro with 17.5 or 17.6?

@skurth
Copy link
Author

skurth commented Feb 28, 2023

@CyrusNajmabadi Works in 17.5 :) Thx!

@skurth skurth closed this as completed Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
None yet
Development

No branches or pull requests

3 participants