TON Solidity Language ServerThe language server will start working immediately after installing the application VSCode. But it can be installed for any IDE that supports Language Server Protocol (LSP) technology. Most likely, your favorite IDE has already enlisted the support of this protocol. You can read about how to install LSP extensions for a specific IDE in its documentation. You can share the guide with the community by sending it to us. Below, in the description, we will publish such instructions. TON Solidity is the language used in Free TON to create smart contracts, this extension provides:
If your editor does not have this plugin installed, then the Solidity code will look something like this: Once installed, the TON Solidity syntax will be detected automatically. Files with * .ton, * .tsol resolution are supported By default, it is recommended to write the name of the Ton currency with a capital letter. But you can change this in the server settings. Why use a server?Language Servers can be implemented in any language and run in their own process to avoid performance cost, as they communicate with the code editor through the Language Server Protocol. Furthermore, any LSP-compliant language toolings can integrate with multiple LSP-compliant code editors, and any LSP-compliant code editors can easily pick up multiple LSP-compliant language toolings. LSP is a win for both language tooling providers and code editor vendors! Features for developersIf you constantly need to change the server settings or you intend to contribute to development, then install a full-fledged server from the repository. If you would like to customize the language server to suit your needs, download the server source code. This server works with files _.ton and _.sol, _.tsol. It has the following language features:
It also includes an End-to-End test. Application structure
Running the Sample
DocumentationsLearn more about LSP on the Microsoft website. Free TON extends the standard Solidity functionality - the description of the TON compiler. Connecting to various IDEVIMDo you also love VIM? See how to connect TON Solidity syntax highlighting to it: VIM-LSP AtomProvide integration support for adding Atom Language Server Protocol Client ExamplesSolidity code examples from the team Tonlabs. If you need to test how the code works, use the examples repository. LicenseMIT License. See the license for more details. |