Skip to content

Commit 2f77f9f

Browse files
committed
Stop supporting both syntaxProfiles, includeLanguage settings in new emmet microsoft#29678
1 parent 04f25df commit 2f77f9f

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

extensions/emmet/src/util.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
2932
export const MAPPED_MODES: Object = {
30-
'handlebars': 'html'
33+
'handlebars': 'html',
34+
'php': 'html'
3135
};
3236
export function validate(allowStylesheet: boolean = true): boolean {
3337
let editor = vscode.window.activeTextEditor;

src/vs/workbench/parts/emmet/electron-browser/emmetActions.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)