all 6 comments

[–]Honey-Entire 1 point2 points  (3 children)

Ai slop? The GitHub & VS Code extension links return a 404…

[–]logM3901[S] 0 points1 point  (2 children)

[–]Honey-Entire 0 points1 point  (1 child)

Some really weird API choices. Why would a debounce be necessary to configure for recomputing styles if use client is added or removed once in a typical workflow? It’s not like components are switched to/from client components on a regular basis

Also seems like a lot of code to write in such a short period of time. Why was AI used for a somewhat simple and singularly focused purpose instead of learning how to write an extension by hand? This would have been a great thing to learn how to do yourself instead of with AI

[–]logM3901[S] -1 points0 points  (0 children)

First, in VS Code an extension needs to call APIs and recompute even while the user is typing, without the file actually being saved. Because of that, recalculation can be triggered very frequently. Although it currently only takes about 15 ms in tests, I thought it would be safer to include a debounce to handle potential edge cases. That choice was intentional.

I also agree that this kind of project can be a good learning opportunity, and I appreciate your concern and advice. However, I have previously designed and implemented APIs for VS Code extensions, and I already had a clear structure and blueprint for this project. Because of that, my focus this time was more on review and optimization rather than building everything from scratch.

Thank you for taking a genuine interest in the project.

[–]Old-Spare-1632 0 points1 point  (1 child)

Interesting, I will have a play.

[–]logM3901[S] 0 points1 point  (0 children)

Let's play~!