Fix emmet tests

This commit is contained in:
Ramya Achutha Rao
2018-03-13 00:07:05 -07:00
parent 6d5739d3ec
commit fa6a57bf47
3 changed files with 31 additions and 29 deletions

View File

@@ -4,11 +4,9 @@
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { HtmlNode, Node } from 'EmmetNode';
import { Node } from 'EmmetNode';
import { isValidLocationForEmmetAbbreviation } from './abbreviationActions';
import { getEmmetHelper, getNode, getInnerRange, getMappingForIncludedLanguages, parseDocument, getEmmetConfiguration, getEmmetMode, isStyleSheet } from './util';
const allowedMimeTypesInScriptTag = ['text/html', 'text/plain', 'text/x-template', 'text/template'];
import { getEmmetHelper, getNode, getMappingForIncludedLanguages, parseDocument, getEmmetConfiguration, getEmmetMode, isStyleSheet } from './util';
export class DefaultCompletionItemProvider implements vscode.CompletionItemProvider {
@@ -35,7 +33,7 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
return;
}
let validateLocation = isSyntaxMapped && syntax === 'html';
let validateLocation = syntax === 'html';
let currentNode: Node | null = null;
// If document can be css parsed, get currentNode