Skip to content

Add Diagnostic Collection API sample - #1316

Open
Phalgun Vaddepalli (phalgunv) wants to merge 11 commits into
microsoft:mainfrom
phalgunv:copilot/diagnostic-collection-sample
Open

Phalgun Vaddepalli (phalgunv) wants to merge 11 commits into
microsoft:mainfrom
phalgunv:copilot/diagnostic-collection-sample

Conversation

@phalgunv

Copy link
Copy Markdown

Summary

Add a self-contained sample extension demonstrating the VS Code DiagnosticCollection API.

The sample:

  • Publishes error, warning, and information diagnostics from marker lines.
  • Updates diagnostics as the demo document changes.
  • Demonstrates set, get, has, forEach, delete, and clear.
  • Includes commands for scanning, clearing, and inspecting the collection.
  • Uses an isolated test-workspace so F5 does not reopen the main workspace in the Extension Development Host.

Also updates the repository sample index and uses non-deprecated TypeScript module resolution for the repository tooling.

Validation

  • npm --prefix diagnostic-collection-sample run compile
  • npm --prefix diagnostic-collection-sample run lint
  • npx tsc --noEmit -p .scripts/tsconfig.json
  • npm run validate

@phalgunv

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants