File tree Expand file tree Collapse file tree
src/vs/workbench/parts/emmet/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,13 @@ export const LANGUAGE_MODES: Object = {
2525 'typescriptreact' : [ '.' , '}' ]
2626} ;
2727
28- // Explicitly map languages to their parent language to get emmet completion support
28+ // Explicitly map languages that have built-in grammar in VS Code to their parent language
29+ // to get emmet completion support
30+ // For other languages, users will have to use `emmet.includeLanguages` or
31+ // language specific extensions can provide emmet completion support
2932export const MAPPED_MODES : Object = {
30- 'handlebars' : 'html'
33+ 'handlebars' : 'html' ,
34+ 'php' : 'html'
3135} ;
3236export function validate ( allowStylesheet : boolean = true ) : boolean {
3337 let editor = vscode . window . activeTextEditor ;
Original file line number Diff line number Diff line change @@ -314,9 +314,7 @@ export abstract class EmmetEditorAction extends EditorAction {
314314
315315 if ( configurationService . getConfiguration < IEmmetConfiguration > ( ) . emmet . useNewEmmet
316316 && ( mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation' ) ) {
317- return commandService . executeCommand < void > ( mappedCommand , { language : editorAccessor . getSyntax ( ) } ) ;
318- // Below is for when disucssion at https://github.com/Microsoft/vscode/issues/29678 is resolved
319- //return commandService.executeCommand<void>(mappedCommand, editorAccessor.getLanguage());
317+ return commandService . executeCommand < void > ( mappedCommand , editorAccessor . getLanguage ( ) ) ;
320318 }
321319
322320 if ( ! editorAccessor . isEmmetEnabledMode ( ) ) {
You can’t perform that action at this time.
0 commit comments