This is a VS Code extension for generating README. It calls the REST API of LARCH to generate the README file.
-
Download the package (VSIX file) from the following URL:
-
Install the downloaded package using one of the following methods:
- Select "Install from VSIX..." from the dropdown menu in the Extensions view.
- Execute the "Extensions: Install from VSIX..." command from the Command Palette.
- Run the following command in the command line:
code --install-extension <vsix file>
.
- Open the "Settings" page.
- Select "Extensions > LARCH".
- Specify the URL of the LARCH server's REST API in the "Rest API" field.
-
Open the project for which you want to generate the README file in VS Code.
-
Execute the "LARCH" command from the Command Palette.
- You will be prompted for the project name (the default value is the repository name or the project's root directory name).
- The list of available models will be displayed. Select the desired model.
- After a while, the generated README file will be displayed in the editor.
- While the generated README file is being displayed in the editor, interrupting the process by switching to other files may cause issues.
- VS Code (tested with v1.73.1)
- Node.js (tested with v16.15.0)
- Python (optional, used only to run a dummy web server)
-
Clone the project.
$ git clone https://github.com/hitachi-nlp/larch-vscode.git larch $ cd larch
-
Install the dependencies.
$ npm install
-
If you want to use the dummy web server, start it. The dummy REST API can be accessed at
http://localhost:8000/
.$ pip install flask $ python util/dummy_server.py
-
Open the project in VS Code.
-
Edit the source code and configuration files.
-
Run the extension.
- Select "[Run] > [Start Debugging]".
- In the newly opened window, execute the "LARCH" command from the Command Palette.
-
Install the package creation tool.
$ npm install --location=global @vscode/vsce
-
Generate the package. This will create a file named "larch-0.0.4.vsix" in the current directory.
$ vsce package
This project was initially created following the steps in the official website's Get Started guide.
-
Install Yeoman and the Yeoman generator for VS Code extensions.
$ npm install --location=global yo generator-code
-
Generate the project scaffold. Select the default values except for the project name.
$ yo code
-
Install the following libraries to the generated scaffold.
$ npm i node-fetch@2 $ npm i npm-packlist $ npm i isbinaryfile $ npm i -D @types/node-fetch@2 $ npm i -D @types/npm-packlist
This plugin is distributed under MIT. See LICENSE for the full terms.
This plugin was derived from Yeoman generated code. Please refer to Git hash d69c08c for the original template.