- Download the plugin.
- Manually install from vsix:
- Or use the command directly from the terminal to install:
code --install-extension [extension vsix file path]
- Sparrow CLI, refer to Section 3 Installation, Configuration, and Running.
This extension provides the following feature modules:
- COREF AST Viewer
- Gödel Language Server
- Gödel Language Runner
The following features need to be enabled in the extension settings. Currently, it only supports the Java language.
The following features need to be enabled after setting up the extension. Syntax highlighting is still available without setting related items.
Error information automatically updates with code changes.
Completion suggestions that include local variables and global symbols. Keywords provide corresponding usage examples; global symbol information offers more detailed internal information, such as member variables, member methods, and static methods.
- Keyword completion and usage example tips
- Local variable type information and symbol completion
.
followed by symbol information and completion::
followed by symbol information and completion- Annotation usage example tips
- Global symbol type information (internal structure, member methods, static methods)
You can jump to definitions with a right-click or ctrl
/command
+left click
to go directly to the exact symbol definition location.
The extension provides some code snippets to quickly write Gödel 1.0/script code.
Use after setting the Sparrow CLI path in the extension. The database needs to be loaded before running the script. For how to generate a database, refer to Section 3.4, Running, in the data extraction part.
- Right-click to execute at the script you want to run.
- Choose
Run GödelScript
on the extensionGodelScript Runner
panel. - Choose
Run
on the extensionGodelScript Runner Setting
panel. - Click the run button at the top right of the extension
GodelScript Runner Setting
panel.
- Right-click at the script you want to run and choose the folder containing the database to load.
- Choose
Load Database Directory
on the extensionGodelScript Runner
panel. - Choose
Database
on the extensionGodelScript Runner Setting
panel. - Click the database load button at the top right of the extension
GodelScript Runner Setting
panel.
corefASTViewer.sparrowCliRoot
- Specify the root directory of Sparrow CLI, referring to Section 3 of the installation part.
When the extension starts, a prompt will pop up if any one of the following two items is not set. Clicking the configure
button will redirect to the respective configuration page.
godelScript.executablePath
- Used to specify the executable path of GödelScript, default is empty. Please replace with the actual absolute path of the GödelScript executable when needed.
- If Sparrow CLI is already downloaded, then the GödelScript executable file is
[sparrow cli root]/godel-script/usr/bin/godel
.
godelScript.libraryDirectoryPath
- Used to specify the library folder path of GödelScript, default is empty. Please replace with the absolute path of the GödelScript library folder when needed.
- If Sparrow CLI is already downloaded, then the library folder path is
[sparrow cli root]/lib-1.0
.
Stay tuned for the opening!