kcl-lang / kcl

KCL Programming Language (CNCF Sandbox Project). https://kcl-lang.io
https://kcl-lang.io
Apache License 2.0
1.7k stars 119 forks source link

Strange info popups (inside comments) LSP/VSCODE #1530

Open dennybaa opened 3 months ago

dennybaa commented 3 months ago

Hello,

this is the weird output, it looks like this:

Screenshot from 2024-07-31 13-06-12

In other words it breaks the actual comment line...

Actually, things go bizarre for a while like on the screenshots, restart of vscode brings it back to normal.

Peefy commented 3 months ago

cc @He1pa

dennybaa commented 3 months ago

More quirks, see the boolkey Screenshot from 2024-07-31 13-29-15

He1pa commented 3 months ago

More quirks, see the boolkey Screenshot from 2024-07-31 13-29-15

Have you defined boolkey?

He1pa commented 3 months ago

And, can you provide some step to reproduce it?

He1pa commented 3 months ago

I can't reproduce it, but I'm trying to fix this in https://github.com/kcl-lang/vscode-kcl/pull/59. Temporarily close this issue, if you still have problems, you can reopen it

dennybaa commented 3 months ago

@He1pa Sure I will. Thank you! Regarding ...

Have you defined boolkey?

I have no idea why this "glitching" comes in. But the boolkey is the result of splitting the informational output ... " _debug ... : bool ... key: ". Plz, have a look at the grayed info notes.

Peefy commented 3 months ago

Highlighting will still be abnormal, VS Code client version v0.2.2, lang server version:

Version: 0.10.0-alpha.2-c020ab3eb4b9179219d6837a57f5d323
Platform: aarch64-apple-darwin
GitCommit: dcbd9d9a6ae54936c8e4404ace608b74e70c1de4

image

cc @He1pa