date |
---|
2023-11-20 |
<project-root>
+ assets Downloaded hints/references data
+ docs Documentations for this project
+ scripts Some bash scripts for building, publishing, and fixing
+ src
+ additonal_snippets Extra Visual Studio Code snippets beyond the downloaded snippets
+ extension Source code about Visual Studio Code extension
+ main.desktop.ts The entrypoint for the desktop extension
+ main.web.ts The entrypoint for the web extension
+ libs Third-party library/code
+ syntax Nginx configuration syntax files and generator
+ utils Utilities for downloading and generating hints/references data
+ test
- https://code.visualstudio.com/api
- The difference between web extension and desktop extension: https://code.visualstudio.com/api/extension-guides/web-extensions
git clone https://github.com/hangxingliu/vscode-nginx-conf-hint.git
cd vscode-nginx-conf-hint
# Install full dependencies:
yarn install
# OR You can install without optional dependencies:
# These optional dependencies will not break the building of this project,
# but they are used for linting, testing, and release
yarn install --ignore-optional
# Build this project as desktop extension
yarn build:desktop-ext
# Build this project as a web extension
yarn build:web-ext
# Build utils in this project
yarn build:utils
yarn build:utils
node src/utils/download_hint_data
node src/utils/download_http_headers
node src/utils/download_lua_hint_data
node src/utils/download_mimetypes
Select "Launch Extension" in your Visual Studio Code like the following screenshot:
Then press F5 for debugging.
yarn run test:web-ext