feat: VS Code extension for inline annotations#179
Open
backnotprop wants to merge 3 commits intomainfrom
Open
Conversation
Simple extension that inserts <!-- @plannotator: --> comment markers in any file via right-click context menu or Cmd+Alt+A keyboard shortcut. No dialogs — inserts template and positions cursor for typing. Closes #91 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Export Annotations: right-click command that scans file for annotation markers, extracts context, and copies Plan Feedback markdown to clipboard - Replace line number refs with start/end marker pairs using auto-incrementing IDs (0001, 0002, ...) — no more line drift when annotations are added - Single-line: start marker only, context is next code line - Multi-line: start/end markers wrap the selection - Nested annotations supported via unique IDs - Change keybinding from Cmd+Alt+A to Cmd+Alt+P - Remove editorHasSelection requirement from context menu Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ections Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apps/vscode-extension/— a VS Code extension for inline annotation markers using start/end<!-- @plannotator NNNN: text -->commentsCmd+Alt+P(Mac) /Ctrl+Alt+P(others)plannotator.annotationPrefixsettingdev:vscodeandbuild:vscoderoot scriptsCloses #91
Test plan
apps/vscode-extension/in VS Code, press F5 to launch Extension Development Host<!-- @plannotator 0001: -->inserted above with cursor positioned for typingCmd+Alt+Pbun run build:vscodeworks from repo rootPublishing checklist
Assets
"icon"in package.jsonapps/vscode-extension/README.md— this is what shows on the marketplace listingapps/vscode-extension/CHANGELOG.md(optional but recommended)package.json updates
version(currently0.0.1— decide: sync with root or independent versioning)"icon": "icon.png""homepage"URL"bugs"URL"galleryBanner"(optional, customizes marketplace page colors)"keywords"for discoverabilityPublisher account
backnotpropVSCE_PATCI/CD — extend
.github/workflows/release.ymlvscode-publishjob (parallel to existingnpm-publish)bun run build:vscodenpx @vscode/vsce package --no-dependencies(already in scripts)npx @vscode/vsce publish -p $VSCE_PAT.vsixto GitHub Release as artifactDRY_RUNflag for dry-run modev*tag, or separatevscode-v*tagsPre-publish validation
vsce packagesucceeds with no warnings.vscodeignoreexcludes src/, node_modules/, config files (already done).vsix(install via Extensions → Install from VSIX)🤖 Generated with Claude Code