This extension patches locally installed extension tht13.rst-vscode to ensure the outline view is displayed correctly for .rst files. It modifies the package.json and adds several syntax files and configuration files to achieve this. These files are from trond-snekvik.simple-rst extension, which is another popular reStructuredText extension for VSCode.
Usage
Install this extension.
After the installation, VSCode will alert you that the extension has been modified. Click the "Reload Window" button on the alert to apply the changes.
After reloading, the preview button should now be visible in the editor when you open a .rst file.
Restoring Original Behavior of tht13.rst-vscode
If you want to restore the original behavior of tht13.rst-vscode, you can follow these steps:
Uninstall this extension.
Reinstall tht13.rst-vscode from the VSCode marketplace.
You might need to manually delete the modified extension folder from your local extensions directory (usually located at ~/.vscode/extensions/) if the uninstallation does not remove it completely. To do this, run rm -rf ~/.vscode/extensions/tht13.rst-vscode-* in your terminal.
See LICENSE, NOTICE, and the files in LICENSES/ for the full license texts and attribution notices.
Caveats
tht13.rst-vscode requires docutils. Make sure you have it installed in your Python environment to use the preview feature. You can install it using pip: pip install docutils. Also, makesure rst-vscode is configured to use the correct Python interpreter where docutils is installed.