From da83dff300d40d1d9ae292c72d113a74b2a07951 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Sun, 30 Jul 2017 18:51:05 -0700 Subject: [PATCH] Emmet: Show error when failed to eval math expression Fixes #31281 --- extensions/emmet/src/evaluateMathExpression.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/emmet/src/evaluateMathExpression.ts b/extensions/emmet/src/evaluateMathExpression.ts index 46c5a197bb845..cf7b84d41cc1a 100644 --- a/extensions/emmet/src/evaluateMathExpression.ts +++ b/extensions/emmet/src/evaluateMathExpression.ts @@ -25,6 +25,7 @@ export function evaluateMathExpression() { const result = String(evaluate(stream, true)); editBuilder.replace(new vscode.Range(stream.pos, pos), result); } catch (err) { + vscode.window.showErrorMessage('Could not evaluate expression'); // Ignore error since most likely it’s because of non-math expression console.warn('Math evaluation error', err); }