Hacking the Source Code¶
By Lex Li
Build from source¶
Clone the repo to a local path such as
/Users/someuser/vscode-restructuredtext
.Navigate to this folder.
Resolve Node.js dependencies via
yarn install
.Build via
yarn compile
.Configure Sphinx following Configuration .
Run VS Code from this folder via
code .
.In this editing VS Code instance, press F5 to start a debugging instance.
cd /Users/someuser
git clone https://github.com/vscode-restructuredtext/vscode-restructuredtext.git
cd vscode-restructuredtext
yarn install
yarn compile
code .
Note
To configure the code
command, please follow this guide .
You can now open a test folder in this debugging instance.
Debugging with Esbonio¶
Danger
Starting from version 190.1.17, this feature is removed. You will be recommended to install Esbonio extension instead. To learn more about how to configure Esbonio, you can visit this site.
Publish to Marketplace¶
To publish this extension, use vsce .
cd /Users/someuser
git clone https://github.com/vscode-restructuredtext/vscode-restructuredtext.git
cd vscode-restructuredtext
vsce publish