mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Absorb changes to the vscode-emmet-helper 0.0.19
This commit is contained in:
@@ -61,7 +61,7 @@ export function getMappingForIncludedLanguages(): any {
|
||||
|
||||
/**
|
||||
* Parses the given document using emmet parsing modules
|
||||
* @param document
|
||||
* @param document
|
||||
*/
|
||||
export function parse(document: vscode.TextDocument, showError: boolean = true): Node {
|
||||
let parseContent = isStyleSheet(document.languageId) ? parseStylesheet : parse;
|
||||
@@ -252,4 +252,13 @@ export function sameNodes(node1: Node, node2: Node): boolean {
|
||||
return (<vscode.Position>node1.start).isEqual(node2.start) && (<vscode.Position>node1.end).isEqual(node2.end);
|
||||
}
|
||||
|
||||
|
||||
export function getEmmetConfiguration() {
|
||||
const emmetConfig = vscode.workspace.getConfiguration('emmet');
|
||||
return {
|
||||
useNewEmmet: emmetConfig['useNewEmmet'],
|
||||
showExpandedAbbreviation: emmetConfig['showExpandedAbbreviation'],
|
||||
showAbbreviationSuggestions: emmetConfig['showAbbreviationSuggestions'],
|
||||
syntaxProfiles: emmetConfig['syntaxProfiles'],
|
||||
variables: emmetConfig['variables']
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user