Skip to content

Conversation

@r-sargento
Copy link
Contributor

@r-sargento r-sargento commented Jun 5, 2024

Created two new settings to be added to .vscode/settings.json ('variableDisplayType.watchView' and
'variableDisplayType.variableView') when set
to true it shows the variable type in the
format var_name: type = value in the debug panel and variable panel respectively and the hover will now display var_name. When set to false uses the previous
expected behaviour (var_name = value)
and the hover will display the type.

fix issue #210258

Created two new settings to be added to .vscode/settings.json
('variableDisplayType.watchView' and
'variableDisplayType.variableView') when set
to true it shows the variable type in the
format var_name: type = value in the debug panel and variable panel
respectively and the hover will now display var_name.
When set to false uses the previous
expected behaviour (var_name = value)
and the hover will display the type.

Co-authored-by: Diogo Pinto <diogotfpinto@tecnico.ulisboa.pt>
r-sargento and others added 2 commits June 7, 2024 01:12
Registed new setting in debug.contribution.ts
Changed the two settings for a single setting (debug.showVariableTypes)
Made the renderer functions listen to changes so it re-renders elements
Added a different styling for the type in variable panel
Changed function names to use camelCase

Co-authored-by: Diogo Pinto <diogotfpinto@tecnico.ulisboa.pt>
Copy link
Member

@connor4312 connor4312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments

r-sargento and others added 2 commits June 7, 2024 18:03
Removed linkDetector check when rendering the type.
Deleted displayType boolean, now we read from config in render
Added missing line to renderExpressionElement.

Co-authored-by: Diogo Pinto <diogotfpinto@tecnico.ulisboa.pt>
@connor4312
Copy link
Member

Thanks for the PR!

@connor4312 connor4312 enabled auto-merge June 7, 2024 18:24
@vscodenpa vscodenpa added this to the June 2024 milestone Jun 7, 2024
@connor4312 connor4312 merged commit 739a9e8 into microsoft:main Jun 7, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jul 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants