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

fix duplicate ending tag on erb.html files(#3117) #3121

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

jules-w2
Copy link
Contributor

The issue manifests in two problematic behaviors: #3117

When modifying an existing ERB tag <% Time.now %> by adding = or #, the editor incorrectly inserts an additional closing %>, resulting in malformed ERB syntax.The situation arises very often when you want to comment on a line that already exists in your views.

<%#%> Time.now %>

Similarly, when adding a comment symbol =, the editor produces invalid nested ERB syntax:

<%=%> Time.now %>

This behavior is caused by the autoClosingPairs configuration in the ERB language settings, which automatically adds closing tags in situations where they should not be added.

@jules-w2 jules-w2 requested a review from a team as a code owner January 31, 2025 17:44
Copy link

graphite-app bot commented Jan 31, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@andyw8
Copy link
Contributor

andyw8 commented Jan 31, 2025

Confirmed that I also see this problem.

jules-w2 added a commit to immosquare/immosquare-vscode that referenced this pull request Jan 31, 2025
@vinistock vinistock added bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes labels Jan 31, 2025
@andyw8
Copy link
Contributor

andyw8 commented Feb 2, 2025

@jules-w2 please sign the CLA.

@andyw8 andyw8 merged commit 11d6ef6 into Shopify:main Feb 6, 2025
22 of 24 checks passed
@andyw8
Copy link
Contributor

andyw8 commented Feb 6, 2025

(since this is a trivial change, we can skip the CLA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug cla-needed vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants