slopdam for VS Code
English | 한국어
Finds the traces AI coding tools leave in log messages and fixes them: em dashes and the Korean ㅡ, emoji, markdown bold and headings, bullets, curly quotes, separator lines and, at the strong level, chatty openers such as Great news!.
logger.info("✅ **Saved** 3 rows — done! 🎉")
becomes
logger.info("Saved 3 rows: done!")
It runs slopdam's rules in the editor, with no Python, server or network: the same engine as the @slopdam/core npm package, with the same output as slopdam in Python, Go and Java.
What it does
- Each finding shows as a warning on the string, with the rule ID and the suggested text (
Information when the rule only reports).
- Quick fix (
Ctrl+. / Cmd+.): replace one finding, or fix every string in the file.
- Commands: slopdam: Fix all in this file and slopdam: Clean selected text.
- It checks the string literals on lines that look like a log or print call (
logger.info(, console.log(, print(, fmt.Println(, slog.Info(, ...), each string on its own, so code outside strings is never changed. Template literals count in JavaScript, TypeScript and Go.
- A line with
slopdam: ignore in a comment is skipped; slopdam: ignore[emoji] skips one rule group.
Settings
| Setting |
Default |
|
slopdam.profile |
reader |
reader writes plain text for people; dev writes [OK], [FAIL] and - for tools |
slopdam.level |
basic |
strong also removes Korean filler words and about 80 known chatty openers |
slopdam.dashInline |
colon |
reader: what a dash between words becomes (colon, comma, hyphen, space) |
slopdam.scope |
logCalls |
strings checks every one-line string literal |
slopdam.languages |
Python, JavaScript, TypeScript, Go, Java, Kotlin, Rust, Ruby, PHP, Swift |
Language IDs to check |
slopdam.enable |
true |
|
Development
cd vscode
npm ci
npm test # the string scanner, without VS Code
npm run package # slopdam-<version>.vsix
node test/integration/launch.mjs "/Applications/Visual Studio Code.app/Contents/MacOS/Code" # inside VS Code, throwaway profile
The integration tests call the quick-fix provider directly: VS Code 1.137 does not return code actions registered by an extension under development through vscode.executeCodeActionProvider.
MIT.
| |