Closed jens1o closed 7 years ago
@roblourens You're not meant. This is for @ramya-rao-a
Have you mapped PHP to html using emmet.syntaxProfiles setting ?
Yes, I did.
This is yet another case where it is better for language specific extensions to call emmet completion provider instead of the emmet extension itself trying to suggest completions in a language that is not pure markup language.
The language specific extensions better understand their language and can trigger emmet completion provider at the right locations.
See #29114
I'll disable the emmet completions for cases when emmet.syntaxProfiles
is used.
The command Emmet: Expand Abbreviation
will still honor emmet.syntaxProfiles
and will work as before (just not bound to Tab, you will have to assign a new key binding)
Well, then I would expect that from the internal php extension. :/
@jens1o Yes, that is a very valid expectation :)
@roblourens We talked about this yesterday. Do you mind if I create a new issue to track the discussion of having emmet support in the internal php extension?
Created #29354 for emmet completion support in php extension
Closing this issue as its no longer applicable now that emmet suggestions are disabled when using emmet.sytnaxProfiles
Note to verifier:
emmet.useNewEmmet
to true
and emmet.includeLanguages
to {"php" : "html"}Emmet: Expand Abbreviation
to expand abbreviationsEmmet suggestions should not show up in the suggestion list
✅
You should be able to use the command Emmet: Expand Abbreviation to expand abbreviations
Yes, but it expands to <?<php></php>
which I believe isn't valid php? Also, in the command palette the expand command is shown as being bound to Tab but actually pressing tab doesn't expand it...
The verification step was more about testing general abbreviations, which work.
expands to
<?<php></php>
command palette the expand command is shown as being bound to Tab but actually pressing tab doesn't expand it.
See #27611
In the new emmet model, tab will no longer be bound to the Emmet: Expand Abbreviation
command. But since the old model still does support it, you end up seeing it
@jens1o With all the improvements we did in 1.15, emmet suggestions in non html/css files has been greatly reduced.
Therefore, I have set emmet.showExpandedAbbreviation
to always
by default, so that once someone adds a mapping in emmet.includeLanguges
, they start seeing the emmet suggestions right away.
@roblourens found an issue for php, where this can still be noisy. See https://github.com/Microsoft/vscode/issues/32207
Can you add on to that issue if you find any other instances in php where you see the emmet suggestions as noise?
@ramya-rao-a Yeah, I'm going to use that issue. Thanks for the heads up!
(1 theme extensions excluded)
Steps to Reproduce:
emmet.php
.<?
(everything is normal)😢