Author |
Topic |
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 15 2022 : 06:44:55 AM
|
VS2022, C#, Find References result window, code tooltips:
What appears in the tooltip, with a notable delay in syntax coloring (about 500-700ms):
And what the same code part looks like in the text editor:
|
|
feline
Whole Tomato Software
United Kingdom
19071 Posts |
Posted - Feb 15 2022 : 1:37:14 PM
|
Unfortunately the Find References Results tooltip not being coloured in newer versions of Windows is a known bug:
case=141555
the trigger is something about the OS, rather than the IDE or version of VA, just to make things "simple". The odd thing is that you are getting any colouring at all in the tooltip. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 15 2022 : 1:55:58 PM
|
My guess is that since its under Win7 I get "some" coloring. |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 16 2022 : 05:34:24 AM
|
I just tried under Win10 and VS2022, the coloring delay persists, and the results are "better" though still not identical. |
|
|
feline
Whole Tomato Software
United Kingdom
19071 Posts |
Posted - Feb 16 2022 : 06:16:00 AM
|
The "good" news is that colouring is expected and should work normally under Windows 7 64bit in VS2022, it does for me. That just leaves us with all of the colouring problems in this tooltip.
I have set up the following C# code sample to get a start on replicating what you have here. Am I going in the right direction with this? So far no sign of any tooltip colouring problem, but my code sample is a lot simpler, so that might be a factor.
class testForumFindRefTooltip
{
class dataRateType
{
public string Description;
}
class dataSampleRate
{
public dataRateType RateType;
}
class dataGlobalSimulationResult
{
public dataSampleRate SampleRate;
}
class dataSccn
{
public dataGlobalSimulationResult GlobalSimulationResult;
}
void testUsingDataClasses()
{
dataSccn sccn;
int rateTypeDesciption = !string.IsNullOrEmpty(sccn?.GlobalSimulationResult?.SampleRate?.RateType?.Description) ? sccn?.GlobalSimulationResult?.SampleRate?.RateType?.Description.Length : 0;
}
}
|
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 16 2022 : 06:51:53 AM
|
You can use the file(s) i sent by mail. Although they include dozens of datatypes declared outside, so they may not show up useful information. But anyway, most of the tooltips show only limited or partial coloring, on any line of code. So it's definitely not the complexity of the line shown. |
|
|
feline
Whole Tomato Software
United Kingdom
19071 Posts |
Posted - Feb 16 2022 : 09:36:33 AM
|
So far no sign at all of any of these problems. My Find References Results tooltips are fully coloured as soon as they appear. I am testing "Proponents.ascx.cs", went to line 6905 and did a Find References on "ucSimulator"
Lots of large to very large tooltips are appearing from the Find References Results list, so seems like a good test case.
How many files do you have in your solution?
Is the system under heavy load when you see this?
I am wondering if there is a performance element at work here, causing the tooltip colouring to run slow. But if so I would expect the size of the tooltip to be a factor, at least to some degree. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 16 2022 : 09:48:55 AM
|
I have about 5000 .cs files in the solution, most of them over 1000 lines, some exceeding 20k. System is average, nothing really heavy going on. Solution loads in about 20 seconds. Strangely I see the coloring delay even on Win10 with a really small test project, so this might be coming from VS2022. I will see how it acts without VA. |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 16 2022 : 1:01:00 PM
|
Now thats interesting: my trial license for VA243 has expired, VA is dormant but some tooltips still get colored (especially the ones from "Find all References") makes no sense. (Win7, VS2022 17.1)
From the text editor:
Can we reverse the license logic for those tooltips? |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 16 2022 : 1:07:20 PM
|
|
|
|
feline
Whole Tomato Software
United Kingdom
19071 Posts |
Posted - Feb 17 2022 : 06:29:51 AM
|
Just as a quick sanity check, if you go into the:
IDE Extensions menu -> Manage Extensions
dialog and disable Visual Assist, which will require an IDE restart, do you still see this odd colouring effect? With VA disabled, in theory, VA should not be having any effect on these tooltips, but it does look like VA might still be active, which seems wrong. This test should tell us for certain if VA is a factor or not. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Feb 17 2022 : 07:09:24 AM
|
All back to normal (uncolored) with VA disabled. So there might be some minor bug in the trial expiry verification. But still, all other tooltips do NOT show this behavior. just that nasty little references tooltip. |
|
|
feline
Whole Tomato Software
United Kingdom
19071 Posts |
Posted - Feb 17 2022 : 08:16:13 AM
|
Good that we have confirmed it is VA doing this. Would it be possible to get your test solution, along with your IDE and VA settings? Fingers crossed I can then reproduce this here.
As you already know, settings exported via:
VA Options -> Performance -> Export Settings IDE tools menu -> Import and Export Settings -> Export selected environment settings
Please send me the files via email:
[email protected]
including this thread ID or URL in the description, so we can match it up. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|