Skip to content

feat: add code lens in sticky scroll widget #182950

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

Conversation

harbin1053020115
Copy link
Contributor

Issue: #182949

@harbin1053020115
Copy link
Contributor Author

@microsoft-github-policy-service agree company="alibaba"

@harbin1053020115
Copy link
Contributor Author

harbin1053020115 commented May 19, 2023

Feature as:
image

add-codelens-to-stickyscroll-for-github

codeLensCont.style.cssText = `position: relative; left: ${layoutInfo.contentLeft}px;`;
child.appendChild(codeLensCont);

// Convert codelens startColumn to space and use renderViewLine to render it
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aiday-mar Is there a better way to compute the Code Lens's marginLeft?

Copy link
Contributor Author

@harbin1053020115 harbin1053020115 May 23, 2023

Choose a reason for hiding this comment

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

As now I use renderViewLine to render spaces(according to the startColumn) before the Code Lens, which I think is not a lightweight solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@VSCodeTriageBot Any one can handle this pull request?

Copy link
Contributor

Choose a reason for hiding this comment

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

@harbin1053020115 the team are in the middle of endgame, so I don't think this PR will get looked at until afterwards.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@harbin1053020115 the team are in the middle of endgame, so I don't think this PR will get looked at until afterwards.

@gjsjohnmurray You mean May 2023 Endgame(https://github.com/microsoft/vscode/issues/183504)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, #183504

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, #183504

Got it~

@aiday-mar
Copy link
Contributor

Hi @harbin1053020115 great work here! Unfortunately we can not merge this because we are planning in the future to introduce a generic framework to add all kinds of decoration : highlight colors, code lens, indentation lines. We need to create a general piece of code that covers all the editor decorations and code lens decorations would use this code. It is unclear as of yet when we will work on this, but it is on the roadmap.

@harbin1053020115
Copy link
Contributor Author

Hi @harbin1053020115 great work here! Unfortunately we can not merge this because we are planning in the future to introduce a generic framework to add all kinds of decoration : highlight colors, code lens, indentation lines. We need to create a general piece of code that covers all the editor decorations and code lens decorations would use this code. It is unclear as of yet when we will work on this, but it is on the roadmap.

That's great, the sticky widget now has some style problems also.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 7, 2023
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