code-yew-server icon indicating copy to clipboard operation
code-yew-server copied to clipboard

conflit with the rust generic "<T>"

Open kyrosle opened this issue 2 years ago • 5 comments

the <></> completion will happen outside the html! image

kyrosle avatar Feb 14 '23 11:02 kyrosle

Thanks for reporting the issue!

After a few days of digging, it seems to me that there might not be a way to limit the autoClosingPairs to only the embedded language region. I'll see if filing a issue/feature request in vscode could help. But definitely open to suggestion!

Edit: Found a similar issue from vscode https://github.com/microsoft/vscode/issues/133397

ttax00 avatar Feb 24 '23 07:02 ttax00

will this problem fixed in the next version, or the readme.md will add some relvant introduction?

kyrosle avatar Feb 24 '23 10:02 kyrosle

will this problem fixed in the next version, or the readme.md will add some relvant introduction?

This issue sprung from how VSCode handles the autoClosingPairs config, and it doesn't seem to work well with a variety of embedded languages, and not just html !. I'm still looking for a better approach, but right now there isn't much I can do besides removes the auto complete for <></>. So I'll leave the issue open for now.

ttax00 avatar Feb 25 '23 08:02 ttax00

Would it be possible to add an option for enabling/disabling of auto complete for <></>? I feel like it would be a better stopgap solution than disabling it outright or leaving the issue as is until the real solution is found

NekoiNemo avatar May 05 '23 22:05 NekoiNemo

@NekoiNemo That is actually a good idea. However, I'm not sure if there's a way to dynamically enable/disable language-configuration.json properties however. I'll look into it, but I can't see of a way to implement it for now.

ttax00 avatar May 14 '23 14:05 ttax00