Skip to content

Commit 7221f92

Browse files
author
Matthew Kwiecien
committed
Get syntax from arguments and document editor language when wrapping.
1 parent 7c1fe9a commit 7221f92

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

extensions/emmet/src/abbreviationActions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ function doWrapping(individualLines: boolean, args: any) {
5454
return;
5555
}
5656
}
57-
const syntax = 'html';
57+
args = args || {};
58+
if (!args['language']) {
59+
args['language'] = editor.document.languageId;
60+
}
61+
const syntax = getSyntaxFromArgs(args) || 'html';
5862
const rootNode = parseDocument(editor.document, false);
5963

6064
let inPreview = false;

0 commit comments

Comments
 (0)