Emmet: Show error when failed to eval math expression Fixes #31281
This commit is contained in:
parent
24d905a2b6
commit
da83dff300
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue