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

Comments keep getting indented on every save or manual format trigger #22

Closed
JonathanATyler opened this issue Nov 18, 2020 · 4 comments
Closed

Comments

@JonathanATyler
Copy link

Template

    <!--
                            Tailwind UI components require Tailwind CSS v1.8 and the @tailwindcss/ui plugin.
                            Read the documentation to get started: https://tailwindui.com/documentation
                            -->

Context (Environment)

OS: Windows 10
VSCode: 1.51.1
V-B-F: 0.6.1

Description

Every time I save, paste or manually apply formatting any comments are indented over and over beyond the 4-space setting.
Changing the "Wrap Attributes" setting does not have an effect.

Comments should only be indented once at the given space/tab setting.

    <!--
        Tailwind UI components require Tailwind CSS v1.8 and the @tailwindcss/ui plugin.
        Read the documentation to get started: https://tailwindui.com/documentation
        -->
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added Stale and removed Stale labels Jan 18, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added Stale and removed Stale labels Mar 25, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@yCodeTech
Copy link

yCodeTech commented Nov 17, 2022

This needs to be reopened and fixed! For me, this only happens when there's only a comment and nothing else inside @php tags.

Starts off as this:

@php
    /**
     * Counterparts:
     * - resources/assest/styles/components/_forms.scss
     * - resources/assest/scripts/routes/templateContact.js
     * - app/ajax.php
     */
@endphp

And ends up like this after 4 saves/formats

@php
    /**
				 * Counterparts:
				 * - resources/assest/styles/components/_forms.scss
				 * - resources/assest/scripts/routes/templateContact.js
				 * - app/ajax.php
				 */
@endphp

While using the php tags instead of the blade directive, it fixes the problem, but the start of the multiline block loses its indentation.

So the expected outcome:

<?php
    /**
     * Counterparts:
     * - resources/assest/styles/components/_forms.scss
     * - resources/assest/scripts/routes/templateContact.js
     * - app/ajax.php
     */
?>

Become this:

<?php
 /**
     * Counterparts:
     * - resources/assest/styles/components/_forms.scss
     * - resources/assest/scripts/routes/templateContact.js
     * - app/ajax.php
     */
?>

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

No branches or pull requests

2 participants