iris-linker README
A Visual Studio Code extension that provides CSP (Content Security Policy) resource linking capabilities.
Features
- Document Link Provider: Automatically detects and creates clickable links for CSP resources in your code
- Custom Command: Includes a sample command iris-linker.csplinker for extension functionality
- TypeScript Support: Built with TypeScript for better type safety and developer experience
Requirements
- Visual Studio Code 1.74.0 or higher
- Node.js 16.x or higher
Extension Settings
This extension currently has no configurable settings.
Usage
- Open a CSP file in Visual Studio Code
- Resource links will be automatically detected and highlighted
- Click on the links to navigate to the corresponding resources
Development
# Clone the repository
git clone <repository-url>
# Install dependencies
npm install
Build
# Compile TypeScript
npm run compile
# Watch Mode
npm run watch
Test
# Run tests
npm run test
# Run tests with coverage
npm run test:coverage
Project Structure
iris-linker/
├── src/
│ ├── extension.ts # Main extension entry point
│ └── CSPResourceLinkProvider.ts # Link provider implementation
├── out/ # Compiled JavaScript output
├── .vscode/
│ ├── launch.json # Debug configurations
│ └── tasks.json # Build tasks
├── package.json # Extension manifest
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Publishing
# Install vsce (VS Code Extension Manager)
npm install -g @vscode/vsce
# Package the extension
vsce package
# Publish to VS Code Marketplace
vsce publish
Enjoy using iris-linker! 🚀
| |