Skip to content

API access to open file's original encoding #209503

Open
@Colengms

Description

This is a request for API access to the original encoding of a file. i.e.:

image

(If this is already possible, please let me know. I couldn't find it.)

If I understand correctly, VS Code represents the content of open files to extensions as UTF-8. In the C/C++ Extension, there are scenarios in which IntelliSense should reflect how the compiler would interpret the file, which may depend on the files actual encoding. i.e. MSVC and string literal contents.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    apifeature-requestRequest for new features or functionalityfile-encodingFile encoding type issuesworkbench-editorsManaging of editor widgets in workbench window

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions