Skip to content

Inconsistent text formatting in the 'Find all references' window #6248

Open
@noah-severyn

Description

Rubberduck version information
Version 2.5.9.6316
OS: Microsoft Windows NT 10.0.19045.0, x64
Host Product: Microsoft Office x86
Host Version: 16.0.18129.20116
Host Executable: EXCEL.EXE

Description
Perhaps a rather minor issue, but within the 'Find all references' window, references where the targeted token appears on the right side of an expression (usually) do not have the proper font formatting applied. This is not always the case though; it appears to work correctly if the token is an argument in a function on the right side of the expression (see 3rd screenshot).

This survives a recompile and Rubberduck refresh, and is occurs in a fresh workbook too.

To Reproduce
A simple example:

Public Sub test()
    Dim a As String
    Dim b As String
    a = "example"
    b = a
End Sub

Image

And a more complex example from a project I am working on:

Image

One more example:

Image

Expected behavior
I would expect these items to also be formatted in the same way with the grey monospaced font and the token highlighted yellow.

Logfile
N/A

Metadata

Assignees

No one assigned

    Labels

    bugIdentifies work items for known bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions