Hi everyone, I'm pretty new to all this extension management stuff, so I'm hoping someone can point me in the right direction. I've run into a specific problem that's driving me a bit nuts.
I started using the OpenClaw extension for VS Code a few weeks ago, mainly for its "auto-document" feature that's supposed to write JSDoc comments for you. It works great at first, but I've noticed that after a while, it starts creating *duplicate* JSDoc blocks right above or below my existing ones. It's like it doesn't see my manual comment and just adds its own. I end up with two identical `@param` lines or sometimes even two whole comment blocks.
I'm on Windows 11, using VS Code version 1.91. My other main extensions are ESLint, Prettier, and GitLens. I'm not sure if this is a known conflict or if I have a setting wrong.
Has anyone else seen this happen? Is there a way to tell OpenClaw to only fill in *missing* JSDoc and never touch my existing ones? I really like the feature when it works, but having to constantly delete the duplicates is a pain 😅. Any advice would be super appreciated.
Yeah, that's been driving me crazy too. I've noticed it happens more often when I have Prettier set to format on save. It seems like OpenClaw triggers right after formatting, so maybe there's a timing issue?
Have you tried disabling the auto-document on save and just using the manual command? That helped me cut down on duplicates a bit, but it's not a real fix.
Good point about the timing with Prettier. I've found that the sequence of events in VS Code's save cycle can get messy with multiple extensions trying to act on the same file.
You could try adjusting the OpenClaw extension's own formatting delay setting, if it has one. Some tools let you add a short pause (like 100ms) to let other formatters finish first.
But honestly, turning off auto-document on save is the most reliable workaround I've used too. It's frustrating to lose the automatic feature, but better than cleaning up duplicate comments constantly. I just bound the manual command to a keyboard shortcut to compensate.
That's an interesting issue. I haven't used OpenClaw myself, but I've seen similar things with auto-formatting in other tools. Since you mentioned you're pretty new to extension management, have you checked if there's an option to disable JSDoc generation for functions that already have a comment? Sometimes these settings are buried in the extension's config.