Skip to content

Preserve whitespace in debug hover expresion value#73954

Merged
isidorn merged 1 commit intomicrosoft:masterfrom
jeanp413:debughover-preserve-whitespace
May 24, 2019
Merged

Preserve whitespace in debug hover expresion value#73954
isidorn merged 1 commit intomicrosoft:masterfrom
jeanp413:debughover-preserve-whitespace

Conversation

@jeanp413
Copy link
Contributor

Fixes #73241

@isidorn
Copy link
Collaborator

isidorn commented May 23, 2019

This is a great PR, thanks a lot for it!
However I would only do the change for the debug hover, not for the variables view.
In the variables view we have limited space so we on purpose do not preserve whitespace but instead squash it.
However for hover we should preserve it.
Can you please update your changes to only change the debugHover and I will merge them?
Thanks!

@isidorn isidorn added this to the May 2019 milestone May 23, 2019
}

.monaco-workbench .debug-viewlet .monaco-list-row .expression {
white-space: pre;
Copy link
Contributor Author

@jeanp413 jeanp413 May 23, 2019

Choose a reason for hiding this comment

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

@isidorn the variables view already preserved whitespaces here, I just deleted this to avoid redundant css rules and moved it to debug.contribution.css. If I change it to nowrap it would be the same issue as it would be an incorrect/misleading value for strings containing whitespaces.

@isidorn
Copy link
Collaborator

isidorn commented May 24, 2019

Looks good, thanks a lot. Let's merge.

@isidorn isidorn merged commit 91d17ba into microsoft:master May 24, 2019
@jeanp413 jeanp413 deleted the debughover-preserve-whitespace branch July 5, 2019 03:00
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JavaScript object hover view squashes white space.

2 participants