Show KCL backtraces (#7033)
* Add backtrace to errors * Add display of backtraces with hints * Change pane badge to only show count of errors * Fix property name to not collide with Error superclass * Increase min stack again * Add e2e test that checks that the diagnostics are created in CodeMirror * Remove unneeded code * Change to the new hotness
This commit is contained in:
@ -118,7 +118,9 @@ export const sidebarPanes: SidebarPane[] = [
|
||||
keybinding: 'Shift + C',
|
||||
showBadge: {
|
||||
value: ({ kclContext }) => {
|
||||
return kclContext.diagnostics.length
|
||||
return kclContext.diagnostics.filter(
|
||||
(diagnostic) => diagnostic.severity === 'error'
|
||||
).length
|
||||
},
|
||||
onClick: (e) => {
|
||||
e.preventDefault()
|
||||
|
Reference in New Issue
Block a user