Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Bug] CJK characters showing up as red invalid characters #2833

Closed
1 of 2 tasks
softmarshmallow opened this issue Dec 15, 2021 · 4 comments
Closed
1 of 2 tasks

[Bug] CJK characters showing up as red invalid characters #2833

softmarshmallow opened this issue Dec 15, 2021 · 4 comments
Labels

Comments

@softmarshmallow
Copy link

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Code

// The Monaco Editor can be easily created, given an
// empty container and an options literal.
// Two members of the literal are "value" and "language".
// The editor takes the full size of its container.

monaco.editor.create(document.getElementById('container'), {
	value: "function hello() {\n\talert('Hello world!');\n}",
	language: 'javascript'
});

이것은 한글 입니다.  // < ---- this line

Actual Behavior

The Korean character should be accepted. regard less to syntax.

Even if it is a valid syntax, it will still show up as red character. e.g. in jsx string <div>한글</div>

Expected Behavior

No response

Additional Context

image

@rcjsuen
Copy link
Contributor

rcjsuen commented Dec 15, 2021

@softmarshmallow It will not accept random Korean characters because the syntax is invalid. If you put it in a string it will not flag it as an error.

image

@softmarshmallow
Copy link
Author

softmarshmallow commented Dec 15, 2021

@rcjsuen It also does not work in jsx/tsx Try tsx / jsx file with this content.

not working - <div>한글</div>
works (of-course) <div>{"한글"}</div>

@rcjsuen
Copy link
Contributor

rcjsuen commented Dec 15, 2021

I don't think the Monaco Editor supports JSX out-of-the-box. See #264.

@softmarshmallow
Copy link
Author

softmarshmallow commented Nov 9, 2022

@rcjsuen What about the part that CJK Characters displaying as a red char? How do I solve that part (regarding less to JSX)

@microsoft microsoft locked and limited conversation to collaborators Mar 3, 2023
@hediet hediet converted this issue into discussion #3674 Mar 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

3 participants