From e190b100745053051b34d99c69a287689455424c Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Fri, 11 Aug 2017 14:59:57 -0700 Subject: [PATCH] When file cannot be parsed, dont try validations #32354 --- extensions/emmet/src/abbreviationActions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/emmet/src/abbreviationActions.ts b/extensions/emmet/src/abbreviationActions.ts index 33166317326..10aebd38525 100644 --- a/extensions/emmet/src/abbreviationActions.ts +++ b/extensions/emmet/src/abbreviationActions.ts @@ -198,8 +198,9 @@ function fallbackTab(): Thenable { * @param position position to validate */ export function isValidLocationForEmmetAbbreviation(currentNode: Node, syntax: string, position: vscode.Position): boolean { + // Continue validation only if the file was parse-able and the currentNode has been found if (!currentNode) { - return !isStyleSheet(syntax) || (syntax === 'sass' || syntax === 'stylus'); + return true; } if (isStyleSheet(syntax)) { -- GitLab