linkify stack lines for cell references

This commit is contained in:
Aaron Munger
2023-10-16 11:29:07 -07:00
committed by Aaron Munger
parent 2123a011bf
commit fe8ac3f89e
2 changed files with 12 additions and 4 deletions

View File

@@ -31,6 +31,8 @@ suite('StackTraceHelper', () => {
'----> 2 raise Exception\n';
const formatted = formatStackTrace(stack);
assert.ok(formatted.indexOf('<a href=\'vscode-notebook-cell:?execution=3\'>Cell In[3]</a>') > 0, formatted);
assert.ok(formatted.indexOf('<a href=\'vscode-notebook-cell:?execution=3:2\'>2</a>') > 0, formatted);
assert.ok(formatted.indexOf('<a href=\'C:\\venvs\\myLib.py:2\'>2</a>') > 0, formatted);
});