Skip to content

Adjust line number styles to line up with VSCode - #8322

Merged
Don Jayamanne (DonJayamanne) merged 2 commits into
microsoft:masterfrom
DonJayamanne:issue8289
Oct 31, 2019
Merged

Don Jayamanne (DonJayamanne) merged 2 commits into
microsoft:masterfrom
DonJayamanne:issue8289

Conversation

@DonJayamanne

Copy link
Copy Markdown

For #8289

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

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

Comment thread src/datascience-ui/interactive-common/editor.tsx Outdated

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🕐

@codecov-io

Codecov (codecov-io) commented Oct 31, 2019 •

Copy link
Copy Markdown

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.

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown

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
Copy Markdown

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 Rong Lu (@ronglums) want lines on by default? Or is that another change?

@DonJayamanne
Don Jayamanne (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
Don Jayamanne (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