Output Panel Shows Wrong Content When Using Syntax Colours
Using LINQPad 9.11.10, I have noticed some strange behaviour when dumping syntax coloured text and also a List of objects using Data Grid mode.
The following code shows the two dumps:
await PanelManager.DisplaySyntaxColoredTextAsync(json, SyntaxLanguageStyle.Json, "Panel 1");
dataList.Dump("Panel 2");
In the above code, the json variable is a string variable containing a JSON representation of the data in dataList. The dataList variable is a List<T> type, where T is any object.
Initially "Panel 2" is selected in the output tab bar, but the contents of "Panel 1" (the JSON) are visible. I can click to Panel 1 and back to Panel 2 to display the correct contents of Panel 2. And I've also discovered that I can switch away from LINQPad and back again, and the correct contents will be showing.
This also happens with the Synchronous version of DisplaySyntaxColoredText if there is enough time between the two dumps.
It's a minor issue, but one I thought was worth mentioning.
Comments
-
Thanks - I've reproduced this and will include a fix in the next beta.
-
Thanks Joe. I also noticed that, if you have other files open at the same time, and switch to one of them after the initial running of the script, the output control remains visible, regardless of whether the script you switch to has been run or not. Just the control part, not the associated tabs.
-
This should now be fixed in 9.12.4 - let me know if you still experience problems.
