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

API for hiding characters in a file #45393

Closed
keyvan-m-sadeghi opened this issue Mar 9, 2018 · 7 comments
Closed

API for hiding characters in a file #45393

keyvan-m-sadeghi opened this issue Mar 9, 2018 · 7 comments
Labels
api editor-rendering Editor rendering issues feature-request Request for new features or functionality

Comments

@keyvan-m-sadeghi
Copy link

keyvan-m-sadeghi commented Mar 9, 2018

Following a discussion with @bpasero, I'm proposing an extensibility API here. I'm willing to work on a PR toward creating this API if someone points me at a starting direction.

Use case

I want my extension to parse js files and hide (not delete) the visual clutter of opening and closing braces ({ and }) with a button located in the status bar (next to TabSize, etc.). I'd later want the extension to add any missing braces to the file based on the indent.

API

I need to be able to tell VSCode to hide specified (line/column start + offset) characters or lines (line number) in a file open in the editor.

@jrieken
Copy link
Member

jrieken commented Mar 9, 2018

cc @aeschli as this touches on folding

@jrieken jrieken added api under-discussion Issue is under discussion for relevance, priority, approach labels Mar 9, 2018
@aeschli
Copy link
Contributor

aeschli commented Mar 16, 2018

We'd need the editor to be able hiding arbitrarily ranges of the document. Currently, only full lines can be hidden.
Only then we start discussing APIs, likely as part of the folding API.

@aeschli aeschli removed their assignment Mar 16, 2018
@aeschli aeschli removed the api label Mar 16, 2018
@jrieken jrieken removed their assignment Mar 16, 2018
@keyvan-m-sadeghi
Copy link
Author

@aeschli what is the API for hiding full lines?

@aeschli
Copy link
Contributor

aeschli commented Mar 19, 2018

@alexdima alexdima added feature-request Request for new features or functionality editor api and removed under-discussion Issue is under discussion for relevance, priority, approach labels Mar 29, 2018
@alexdima alexdima added this to the Backlog milestone Mar 29, 2018
@alexdima alexdima added editor-rendering Editor rendering issues and removed editor labels Apr 17, 2018
@alexdima alexdima removed their assignment Apr 17, 2018
@alexdima alexdima modified the milestones: Backlog, Backlog Candidates Oct 25, 2019
@vscodebot
Copy link

vscodebot bot commented Jan 22, 2020

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodebot
Copy link

vscodebot bot commented Mar 12, 2020

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

@vscodebot
Copy link

vscodebot bot commented Mar 22, 2020

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Mar 22, 2020
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api editor-rendering Editor rendering issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants