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

Using ItemGroup, PropertyGroup (etc) suggestions from the extension results in incorrect indentation #93

Open
alexrp opened this issue Dec 10, 2021 · 3 comments

Comments

@alexrp
Copy link

alexrp commented Dec 10, 2021

Let's say I have a file like this:

<Project>
</Project>

If I start to type an item group like

<Project>
    <Item
</Project>

and accept the <ItemGroup> suggestion from the extension, I end up with:

<Project>
 <ItemGroup>
   
 </ItemGroup>

This is with indent_size = 2 in .editorconfig. With indent_size = 4, it instead ends up as:

<Project>
   <ItemGroup>
       
   </ItemGroup>
@tintoy
Copy link
Owner

tintoy commented Jan 1, 2022

Hi, sorry for the late reply - I didn't see the notification email for this until this morning :)

Just checking if I understand correctly: are you saying that it appears to be using the indent size specified in settings (in this case, from .editorconfig), rather than the indent level (i.e. column) where you started typing?

@alexrp
Copy link
Author

alexrp commented Jan 1, 2022

It seems to respect both the current indent level and indent_size from .editorconfig, but it's always off by one space.

@tintoy
Copy link
Owner

tintoy commented Jan 3, 2022

Sorry, I can see that'd be annoying. I'll look into it and let you know what I find 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants