Skip to content

Adjust line number styles to line up with VSCode #8322

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

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

DonJayamanne
Copy link

For #8289

}
.monaco-editor .line-numbers {
color: var(--override-foreground, var(--vscode-editor-foreground)) !important;
}
Copy link

Choose a reason for hiding this comment

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

What happens when you pick a weirdo theme? This might be using the base theme to pick the line number colors.

Copy link

Choose a reason for hiding this comment

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

Meaning the colors work fine for the base light and dark, but might not work for say One Plus or some other custom theme.

Copy link
Author

Choose a reason for hiding this comment

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

I have installed and tested against around 20 different themes and it works as expected.
Please could you let me know which one doews'nt work.
RIght now, when I look at the webviews, VS Code is genearting these styles for us. So I don't see the need for us to generate them ourselves (hence the reason to remove them).

Copy link

Choose a reason for hiding this comment

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

No I didn't mean to say it wasn't working for me, just wanted to make sure you double check other themes.

Copy link
Author

Choose a reason for hiding this comment

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

Double and triple checked.

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

🕐

@codecov-io
Copy link

codecov-io commented Oct 31, 2019

Codecov Report

Merging #8322 into master will increase coverage by 0.35%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8322      +/-   ##
==========================================
+ Coverage   58.66%   59.01%   +0.35%     
==========================================
  Files         505      505              
  Lines       22778    23147     +369     
  Branches     3740     3740              
==========================================
+ Hits        13363    13661     +298     
- Misses       8522     8593      +71     
  Partials      893      893
Impacted Files Coverage Δ
src/client/testing/serviceRegistry.ts 48.64% <0%> (-44.21%) ⬇️
...t/datascience/jupyter/jupyterDataRateLimitError.ts 66.66% <0%> (-33.34%) ⬇️
src/client/formatters/serviceRegistry.ts 75% <0%> (-25%) ⬇️
...ience/jupyter/jupyterDebuggerRemoteNotSupported.ts 75% <0%> (-25%) ⬇️
src/client/common/utils/icons.ts 83.33% <0%> (-16.67%) ⬇️
src/client/testing/codeLenses/main.ts 44.44% <0%> (-15.56%) ⬇️
src/client/api.ts 78.57% <0%> (-11.43%) ⬇️
src/client/common/utils/version.ts 77.77% <0%> (-1.39%) ⬇️
src/client/providers/providerUtilities.ts 83.33% <0%> (-1.29%) ⬇️
...lient/datascience/jupyter/jupyterSelfCertsError.ts 100% <0%> (ø) ⬆️
... and 28 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0774fb8...3e23df0. Read the comment docs.

@DonJayamanne DonJayamanne requested a review from rchiodo October 31, 2019 22:28
Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -0,0 +1 @@
Style adjustments to line numbers (color and width) in the `Native Editor`, to line up with VS Code styles.
Copy link

Choose a reason for hiding this comment

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

line [](start = 79, length = 4)

Didn't @ronglums want lines on by default? Or is that another change?

@DonJayamanne DonJayamanne merged commit 9e7bce4 into microsoft:master Oct 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 8, 2019
@DonJayamanne DonJayamanne deleted the issue8289 branch April 30, 2020 17:09
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.

4 participants