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

Issues deleting whitespace with backspace when Vue plugin is enabled and active #13

Open
kinglozzer opened this issue Mar 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@kinglozzer
Copy link
Owner

This only seems to occur when the Vue plugin is enabled and the project in question has Vue components to “activate” the plugin (using PsiViewer, the file is parsed in both Silverstripe and Vue languages).

This template appears to trigger it consistently:

<div class="element">
    <div class="typography">
        <h2>Something</h2>
    </div>
</div>

Backspace won’t clear the whitespace before the opening <h2> tag, but the delete key will.

Things to investigate:

  • Why Vue parses .ss files, but not .html files
  • Whether parsing whitespace as separate PsiWhiteSpace elements instead of one big SS_TEXT lump will solve this
  • Whether we can (or should) prevent Vue from parsing .ss files - this probably isn’t desirable
  • Whether we’d be better switching to something more “embedded” within HTML like Vue & Angular do. Would be a big job, no guarantee it’ll fix this...
@kinglozzer kinglozzer added the bug Something isn't working label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant