Welcome to the EssilorLuxottica-N1 VSCode Extension! This extension provides a set of tools and utilities to enhance your development experience within the EssilorLuxottica-N1 project.
Features
Environment Selector: Easily switch between different environment configurations using the Select environment command.
Linting: Integrated ESLint support to ensure code quality and consistency.
Testing: Run and debug your tests directly from VSCode.
Installation
Open VSCode.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
Search for EssilorLuxottica-N1.
Click Install to install the extension.
Usage
Selecting an Environment
Open the Command Palette (Ctrl+Shift+P).
Type EssilorLuxottica-N1: Select environment and press Enter.
Choose the desired environment from the list.
Running Tests
Open the Command Palette (Ctrl+Shift+P).
Type Run Extension and press Enter.
This will compile the extension and open it in a new VSCode window where you can run and debug your tests.
Development
Prerequisites
Node.js
npm
Setup
Clone the repository.
Run npm install to install the dependencies.
Open the project in VSCode.
Scripts
npm run compile: Compiles the TypeScript code.
npm run watch: Compiles the TypeScript code in watch mode.
npm run lint: Runs ESLint on the src directory.
npm run test: Runs the tests using the VSCode test runner.
Debugging
Open the Run and Debug view by clicking on the Debug icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+D.
Select Run Extension from the configuration dropdown.
Click the green play button or press F5 to start debugging.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.