-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationtracked[Maintainer-Only] Issue is acknowledged and tracked by the team[Maintainer-Only] Issue is acknowledged and tracked by the team
Description
Problem
It seems like codewhisperer server expects utf-8 encoding,
language-servers/server/aws-lsp-codewhisperer/src/language-server/chat/contexts/utils.test.ts
Line 13 in 1c38b0c
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...
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationtracked[Maintainer-Only] Issue is acknowledged and tracked by the team[Maintainer-Only] Issue is acknowledged and tracked by the team