File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/language-core/lib Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ export function isImplementationEnabled(info: CodeInformation): boolean {
5757}
5858
5959export function isHighlightEnabled ( info : CodeInformation ) : boolean {
60- return ! ! info . navigation ;
60+ return typeof info . navigation === 'object'
61+ ? info . navigation . shouldHighlight ?.( ) ?? true
62+ : ! ! info . navigation ;
6163}
6264
6365export function isSymbolsEnabled ( info : CodeInformation ) : boolean {
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ export interface CodeInformation {
9999 } ;
100100 /** virtual code is expected correctly reflect reference relationships of the source code */
101101 navigation ?: boolean | {
102+ shouldHighlight ?( ) : boolean ;
102103 shouldRename ?( ) : boolean ;
103104 resolveRenameNewName ?( newName : string ) : string ;
104105 resolveRenameEditText ?( newText : string ) : string ;
You can’t perform that action at this time.
0 commit comments