Skip to content

Add a boolean property to TextDocument if the encoding was guessed #209503

@Colengms

Description

@Colengms

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apifeature-requestRequest for new features or functionalityfile-encodingFile encoding type issuesunder-discussionIssue is under discussion for relevance, priority, approachworkbench-editorsManaging of editor widgets in workbench window

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions