Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript enum suggestion Chinese garbled code #58146

Closed
iizyd opened this issue Apr 8, 2024 · 4 comments · Fixed by #58171
Closed

Typescript enum suggestion Chinese garbled code #58146

iizyd opened this issue Apr 8, 2024 · 4 comments · Fixed by #58171
Labels
Bug A bug in TypeScript Help Wanted You can do this
Milestone

Comments

@iizyd
Copy link

iizyd commented Apr 8, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.88.0
  • OS Version: Darwin x64 22.6.0

版本: 1.88.0
提交: 5c3e652f63e798a5ac2f31ffd0d863669328dc4c
日期: 2024-04-03T13:28:18.899Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin x64 22.6.0

Steps to Reproduce:

image
@mjbvz
Copy link
Contributor

mjbvz commented Apr 8, 2024

Please share the example code as text

@iizyd
Copy link
Author

iizyd commented Apr 10, 2024

Please share the example code as text

Like this

enum Demo {
  A = '苹果'
}

console.log(Demo.A);

@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 10, 2024
@mjbvz
Copy link
Contributor

mjbvz commented Apr 10, 2024

Looks like this comes from the returned displayParts. This is the decoded json object:

  {
                "text": "\"\\u82F9\\u679C\"",
                "kind": "stringLiteral"
            }

@iizyd
Copy link
Author

iizyd commented Apr 11, 2024

Looks like this comes from the returned displayParts. This is the decoded json object:

  {
                "text": "\"\\u82F9\\u679C\"",
                "kind": "stringLiteral"
            }

Is this the intended effect? or a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants