Fixed #59395 - Emmet Syntax Profiles tag_nl produces no extra space#60108
Fixed #59395 - Emmet Syntax Profiles tag_nl produces no extra space#60108ramya-rao-a merged 3 commits intomicrosoft:masterfrom
Conversation
There was a problem hiding this comment.
The tests seem to be failing. Can you take a look at that?
To run the tests locally, run scripts\test-integration.bat on Windows or ./scripts/test-integration.sh on Linux/Mac
It would also do us good to add a test case to cover this scenario.
wrapWithAbbreviation.test.ts would be the file to update.
There was a problem hiding this comment.
We can probably get the value for tag_nl from expandOptions.profile object
|
Thanks for the feedback. I'm looking at the tests and will update |
|
I updated my code to use |
ramya-rao-a
left a comment
There was a problem hiding this comment.
My apologies, I should have cleared some things previously.
The new emmet modules that we use dont use the same syntaxProfile settings as documented in https://docs.emmet.io/customization/syntax-profiles/
The new emmet modules follow the profile as defined in https://github.com/emmetio/output-profile/blob/1a7571e78da9d7bf056289b3396dbb0bcc45c435/types.d.ts#L1
To support backward compatibility in VS Code, we support both in the settings. I convert the old profile to a new one using a helper
So now coming to the current issue. You can just add expandOptions['format'] === true to the if condition and that should be enough.
https://github.com/Microsoft/vscode/blob/release/1.28/extensions/emmet/src/test/abbreviationAction.test.ts#L441 is an example where I changed the config for the |
|
Thanks for the help. I had to use |
20f753a to
af700bd
Compare
|
It seems like my commits fail when running the hygiene tests. Is there any way for me to run these tests on my local machine? Running |
|
The hygiene failure was due to formatting errors. I have pushed a change to fix that. |
|
Wrap still produces incorrect results if |
|
@contentfree I have logged an upstream issue for that. See https://github.com/emmetio/output-profile/issues/1 |
This PR fixes #59395.
With:
It no longer allows extra space.
Before:

After:

Thanks for considering this request.