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

Add editor encoding api #177434

Closed
wants to merge 1 commit into from
Closed

Conversation

Tarrowren
Copy link

see #824

Tosox

This comment was marked as outdated.

@angelozerr
Copy link
Contributor

Is there any chance to merge this PR?

@lygstate
Copy link

lygstate commented Dec 5, 2023

ping for merge

@lygstate lygstate mentioned this pull request Dec 5, 2023
1 task
@Tosox
Copy link

Tosox commented Jan 22, 2024

Is there any chance to merge this PR?

@denniskp
Copy link

Bump pull request

@feed3r
Copy link

feed3r commented Apr 16, 2024

We also asked for the very same thing and proposed to implement a PR like this here

It would be really good to know if this has some possibility to be merged or if there is any other reason to not merge it.

@billgan1024
Copy link

ping for merge

@Tosox
Copy link

Tosox commented Jul 5, 2024

Nice to see you still maintaining this pr. I hope someone will finally merge this soon.

@leaumar
Copy link

leaumar commented Oct 25, 2024

Is this PR actually blocked by anything meaningful or are we just waiting for the right persons to stumble upon it by chance? This PR is needed for full editorconfig support, which I would hope the entire vscode team agrees is a good feature (or rather, an embarassing one to say is incomplete). There's barely any content to review too, it looks so simple it's probably perfectly good to merge as-is.

@leaumar
Copy link

leaumar commented Oct 28, 2024

@bpasero could you please push this forward by merging or assigning to someone? This would finally implement full .editorconfig support for all the people waiting on it (which is a lot more than the handful who've bothered to find this issue and vote on it). Thanks

@vivodi
Copy link

vivodi commented Dec 29, 2024

Is this still relevant?

@leaumar
Copy link

leaumar commented Dec 29, 2024

Is this still relevant?

Yes, very, lots of people are eagerly awaiting the merge

@bpasero bpasero linked an issue Feb 7, 2025 that may be closed by this pull request
bpasero added a commit that referenced this pull request Feb 7, 2025
@bpasero
Copy link
Member

bpasero commented Feb 7, 2025

@Tarrowren this change is heavily behind main, I tried to merge myself but miss the permissions to push back to your branch. I have https://github.com/microsoft/vscode/tree/ben/editor-encoding-api-fork with that work, how do you want to proceed, in here or in a new PR from https://github.com/microsoft/vscode/tree/ben/editor-encoding-api-fork ?

@bpasero bpasero added the info-needed Issue requires more information from poster label Feb 7, 2025
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

@Tarrowren On a high level, the better location for encoding concerns is actually TextDocument. Because that maps to the underlying text model where the encoding information is at and where it can be changed. A text editor is never the owner of the documents encoding. This is the first change I am asking to do.

As for the API itself, encoding should be a readonly encoding: string that lives on TextDocument and can be received without awaiting a Promise. Subsequently, I would suggest a encode(encoding: string): Promise<void> and decode(encoding: string): Promise<void> method on TextDocument for the remainder.

Does that sound reasonable? Please let me know if you are willing to continue working on this PR given this feedback.

@bpasero
Copy link
Member

bpasero commented Feb 13, 2025

Thus this continues in #239961

@bpasero bpasero closed this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide encoding-related APIs for editor extensions