File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 0.0.6] - 2024-09-26
10
+
9
11
### Added
10
12
11
13
- The CFG view now highlights (in black) the node matching the cursor position.
Original file line number Diff line number Diff line change 59
59
"//" : " START EXTENSION ATTRIBUTES" ,
60
60
"publisher" : " tamir-bahar" ,
61
61
"name" : " function-graph-overview" ,
62
- "version" : " 0.0.5 " ,
62
+ "version" : " 0.0.6 " ,
63
63
"description" : " Function Graph Overview" ,
64
64
"displayName" : " Function Graph Overview" ,
65
65
"icon" : " ./media/icon.png" ,
109
109
"engines" : {
110
110
"vscode" : " ^1.86.0"
111
111
}
112
- }
112
+ }
Original file line number Diff line number Diff line change @@ -234,7 +234,10 @@ export async function activate(context: vscode.ExtensionContext) {
234
234
}
235
235
// TODO: Highlighting in the DOT is a cute trick, but might become less effective on larger functions.
236
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
237
+
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
238
241
? getValue ( cfg . offsetToNode , offset )
239
242
: undefined ;
240
243
const dot = graphToDot ( cfg , false , nodeToHighlight ) ;
You can’t perform that action at this time.
0 commit comments