Skip to content

Q/codewhisperer does not declare its position encoding #732

Open
@justinmk3

Description

Problem

It seems like codewhisperer server expects utf-8 encoding,

const data = await fs.readFile(file, { encoding: 'utf8' });

but the default LSP encoding is utf-16.

Expected behavior

  • Document the expected position encoding in the readme
  • Declare the expected position encoding from the server settings/capabilities, so that clients don't have to guess it.
  • (Optional) Declare utf-8 as the encoding expected by all the lsp servers in this repo? Mention this in the top-level docs, wherever those are...

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationtracked[Maintainer-Only] Issue is acknowledged and tracked by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions