-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Variable Explorer UI cleanup #5379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable Explorer UI cleanup #5379
Conversation
|
Cleaned up -> Double click a row to open data explorer |
| let newTitle = `${localize.DataScience.dataExplorerTitle()} - ${variable.name}`; | ||
| const TRIM_LENGTH = 40; | ||
| if (newTitle.length > TRIM_LENGTH) { | ||
| newTitle = `${newTitle.substr(0, TRIM_LENGTH)}...`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have expected such truncation to take place in CSS based on relative widths (e.g. %s of the total width, along with min width.. or similar)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DonJayamanne Hmmm, do you know of how we could actually see the widths? This is the string that goes in the VSCode editor file tab. We don't own the UI for that in our extension. When testing I realized that it doesn't truncate in the vscode editor tab (at least I was able to make a tab that took up basically my entire editor tab space) so this was just a sanity check to avoid a degenerate case with a super long variable name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, if its for VSC, then its fine. I thought this was for the react webview.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
* variable explorer UI feedback fixes * add new entry * review feedback
For #5274
package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed)