Closed davidanderle closed 1 year ago
Hi,
I will look into the issues you found. Regarding the colouring of values in the watch (and variables) window, VS Code automatically classifies the values into different types depending only on the value, and uses this to determine the color. Numbers with apostrophes are classified as generic 'values', not 'numbers'.
A workaround is to override the colors used by VS Code, by placing this in your settings:
"workbench.colorCustomizations": {
"debugTokenExpression.number": "#cccccc99",
}
or
"workbench.colorCustomizations": {
"debugTokenExpression.value": "#b5cea8",
}
Hi,
Thanks for looking into it! The colour customisation settings worked but as expected struct
s and array
s are now also coloured green:
This still gives a more coherent look to me so I'll set this for my setup.
Thanks for reporting this, fixes for both issues will be available in the next release.
@HampusAdolfsson, thank you, this was very quick! Any idea on the rough release date of this update?
Yes, probably some time in June.
Hello, I've been having a play around with the watch window in VSCode and I've spotted 2 issues:
Here's a quick demonstration: https://github.com/IARSystems/iar-vsc-debug/assets/17354704/d3d09663-6a80-4632-aeb9-58f59eb05cf8
As a side-note, is there a way to colour numbers with an apostrophe in their digits the same colour as ones without? For example, in the demonstration video above you can see that 999 is green, while 1'000 is grey. This apostrophe number interpretation of C-SPY is extremely useful so I would use this feature over the colour mismatch at any point :)