Skip to content
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

Apply mssql font settings to result grid #18500

Closed
wants to merge 5 commits into from
Closed

Conversation

cssuh
Copy link
Member

@cssuh cssuh commented Dec 11, 2024

Fixes the query result grid to use the mssql.resultsFontFamily and mssql.resultsFontSize settings.
Example with font size: 20 & mac default font family
Screenshot 2024-12-11 at 3 09 08 PM

Fixes #18351

@Benjin
Copy link
Contributor

Benjin commented Dec 11, 2024

Can you add a screenshot showing the change if these are set to a different font and larger size?

src/queryResult/queryResultWebViewController.ts Outdated Show resolved Hide resolved
const [fontSize, setFontSize] = useState("");

useEffect(() => {
const getFontFamily = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this look like if these settings aren't set? they should default to var(--vscode-editor-font-size) and var(--vscode-editor-font-family)

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the default behavior is the UI font, not the editor font.

Without these settings, it should look like this:
image

Copy link

github-actions bot commented Dec 12, 2024

PR Changes

Category Main Branch PR Branch Difference
Code Coverage 50.35% 50.48% $${\color{lightgreen} .13\% }$$
VSIX Size 12120 KB 11720 KB $${\color{lightgreen} -400 KB \space (-3\%) }$$
Webview Bundle Size 3112 KB 3112 KB $${\color{lightgreen} 0 KB \space (0\%) }$$

@cssuh cssuh requested review from Benjin and kburtram December 12, 2024 21:50
@cssuh
Copy link
Member Author

cssuh commented Dec 12, 2024

Chatted with @Benjin and we are expanding the scope of this fix to also adjust row / column sizes dynamically based on the font size that is input, so I will be working on adding that in a larger PR that will be for the January release.

@cssuh cssuh closed this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Query Results pane does not follow existing font size and font family settings
3 participants