question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide encoding-related APIs for editor extensions

See original GitHub issue

Currently there are only two fields in the TextEditorOptions API, a few other TextEditor-related APIs, and none of them is able to deal with the text buffer’s encoding. Comparing to Atom’s TextEdit API, that is far from enough.

Most importantly, the API limitation makes it (seems) impossible for vscode-editorconfig to implement features like charset support, which is a crucial need for many people.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:179
  • Comments:43 (3 by maintainers)

github_iconTop GitHub Comments

27reactions
irudoycommented, Mar 23, 2022

There are much more important features that should be implemented. For example, in May, it was done:

  • Explore improved positioning of the debug toolbar #2513 (WOW)
  • Recommend language packs based on the locale of the OS #45663 (AMAZING)
  • Custom view API enhancements: Support to listen the expand/collapse state #30535 (such a collapse API, BOOM)
  • Cosmetic changes to issue reporter #49579 (😱)

Encoding-related issues have low priority, because they are related to text editing. As you might guess, text editing is not important for a text editor.

22reactions
gingerbeardmancommented, Mar 23, 2022

Woof woof woof

(one for each year this bug has been alive)

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code API | Visual Studio Code Extension API
VS Code API. VS Code API is a set of JavaScript APIs that you can invoke in your Visual Studio Code extension. This...
Read more >
Encoding API - MDN Web Docs - Mozilla
The Encoding API provides a mechanism for handling text in various character encodings, including legacy non-UTF-8 encodings.
Read more >
Set file encoding - visual studio code - Stack Overflow
Provide encoding -related APIs for editor extensions · add support for charset · ChangeEncodingAction · File extension specific settings.
Read more >
Scalable Video Coding (SVC) Extension for WebRTC - W3C
This document defines a set of ECMAScript APIs in WebIDL to extend the WebRTC 1.0 API to enable user agents to support scalable...
Read more >
chrome.webRequest - Chrome Developers
Note that extensions may provide invalid credentials. ... The webRequest API only exposes requests that the extension has permission to see, given its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found