-
-
Notifications
You must be signed in to change notification settings - Fork 351
Bad support for emoji #749
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
Comments
似乎是昨天更新后才出现这样的问题?现在输入中文注释或者想往控制台输出中文,vscode就会有弹窗报以下错误 [Error - 上午11:19:06] Request textDocument/semanticTokens/range failed. Code: -32603 [Error - 上午11:04:08] Request textDocument/codeAction failed. Code: -32603 |
可以提供一些演示吗,我这边没法再现 |
确实有点奇怪,复制单文件到新路径用vscode打开,也会出现这个弹窗报错但不在同一个地方。目前试验发现是中文的?号处会报错,不知道能否复现。 |
在中文标点符号处可以再现,谢谢! |
see https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#textDocuments
The offsets should be based on a UTF-16 string representation, however this extension used UTF-8.
The length of emoji in UTF-16 is 2 while in UTF-8 is 1, which makes incorrect offsets calc.
The text was updated successfully, but these errors were encountered: