提交 e190b100 编写于 作者: R Ramya Achutha Rao

When file cannot be parsed, dont try validations #32354

上级 23ca41bc
......@@ -198,8 +198,9 @@ function fallbackTab(): Thenable<boolean> {
* @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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册