git clone https://github.com/James-Yu/LaTeX-Workshop.git
cd ./LaTeX-Workshop
npm install --no-optional
code -n .
Press F5 in vscode to start the development version in debug mode.
Make sure you have installed:
Then run
npm install --no-optional
inside the extension workspace to download the node modules needed to build the extension.
To lint changes, run
npm run lint
To compile, run
npm run compile
To build a release image, run
npm run release
To run tests, run
npm run test
To run a specific test, run
npm run test build/fixture001
In VS Code, simply press F5 (or run Debug: Start Debugging
from the command palette) and a new window will pop up where you can test the extension.
To debug the internal PDF viewer, select View LaTeX PDF > View in web browser,
and view a PDF file in Google Chrome. You can debug the viewer with Chrome DevTools as a general web application.