We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3cad8 commit 9081c19Copy full SHA for 9081c19
src/vscode/extension.ts
@@ -234,7 +234,10 @@ export async function activate(context: vscode.ExtensionContext) {
234
}
235
// TODO: Highlighting in the DOT is a cute trick, but might become less effective on larger functions.
236
// So it works for now, but I'll probably need to replace it with CSS so that I only render once per function.
237
- const nodeToHighlight = highlightCurrentNode
+
238
+ // Only highlight if there's more than one node to the graph.
239
+ const shouldHighlight = highlightCurrentNode && cfg.graph.order > 1;
240
+ const nodeToHighlight = shouldHighlight
241
? getValue(cfg.offsetToNode, offset)
242
: undefined;
243
const dot = graphToDot(cfg, false, nodeToHighlight);
0 commit comments