Skip to content

feat: add VS Code policy tooling#96

Open
jamilahmadzai wants to merge 1 commit into
aporthq:mainfrom
jamilahmadzai:feature/vscode-policy-extension
Open

feat: add VS Code policy tooling#96
jamilahmadzai wants to merge 1 commit into
aporthq:mainfrom
jamilahmadzai:feature/vscode-policy-extension

Conversation

@jamilahmadzai
Copy link
Copy Markdown

@jamilahmadzai jamilahmadzai commented May 12, 2026

Closes #10

Summary

  • Adds tools/vscode-extension, a TypeScript VS Code extension for APort policy development.
  • Provides an aport-policy language contribution with syntax highlighting, snippets, and language configuration.
  • Adds JSON schema validation for APort policy packs.
  • Adds validation and sample-policy commands.
  • Implements completion suggestions for common policy fields.
  • Includes an example refund policy, documentation, and unit tests for the policy parser/validator.

Testing

cd tools/vscode-extension
npm install --no-audit
npm test
npm run check
npm pack --dry-run
git diff --check

Result:

6 Node tests passed.
TypeScript compile and syntax checks passed.
Package dry-run completed.

Payout

Payment method: PayPal jamilurrehman722@gmail.com.

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.

[Hacktoberfest] VS Code Extension for Policy Development

1 participant