The Kinx VSCode Extension with Language Server.
Important
This extension requires the Kinx version 0.20.1 or above is installed. For some features, Kinx version 0.21.0 or above is required.
Now this product is under construction. It works with a debug mode only.
- Install Kinx.
- Add the path of Kinx to the PATH environment variable.
- Run VSCode under
kinx-language-server
directory. - Press F5 key to run it with a debug mode.
- Load your Kinx source code.
- Code Highlight
- Problem Detection
- Detects erros and warnings.
- Run Script
- Run the current script file on the VSCode.
- Run the script only with the range of selection.
- Go to Definition
- Auto completion
- Hover Information (0.21.0 or above)
- Type Check (0.21.0 or above)
Your source code will be displayed with a highlight. It will be suited with your theme color.
Compile Error will be detected as an error. You can find and fix it easily.
Warning is not an error, but you can check it easily. Currently only the following warning is supported.
- Unused Variables
You can run your script code on the fly even without saving. It is easy because of clicking an icon or just pressing a Ctrl-R key.
There are 4 modes to run the script.
- Press Ctrl-R to run the whole script.
- Press Ctrl-Shift-R to run the selected text only.
- Press Ctrl-E and input arguments, and press Enter to run the whole script.
- Press Ctrl-Shift-E and input arguments, and press Enter to run the selected text only.
Right click on a symbol and select Go to Definition
, and a cursor will jump to the location where the symbol you selected is defined.
Even if the definition is in another file, the source code will be automatically opened and jump to the location.
Auto completion is available. It suggests public methods collected from the class automatically, and it will also include methods on a base class.
Kinx version 0.21.0 or above is required.
It will show a type in hover of a variable. Here is the example of hover.
Kinx version 0.21.0 or above is required.
Checking a type is available only when it is possible. Here is the example of hover and type check.
Currently the following conditions are checked.
- Arguments for a simple function call.
- Arguments for a method call of a known class.
- Error if there is a type mismatch between LHS and RHS.
This project is licensed under the MIT License. See the LICENSE file for details.