Skip to content

Commit fa6b429

Browse files
authored
chore(all): cleanup (#325)
1 parent 85506b3 commit fa6b429

11 files changed

Lines changed: 96 additions & 304 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
!package.json
1515
!./README-extension.md
1616
!editors/code/src/languages
17-
!editors/code/src/assets
17+
!editors/code/src/assets/logo.png
1818
!syntaxes/
1919
!snippets/

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# TON Language Server
22

33
Language server and an [extension for VS Code](./editors/code) and VSCode-based editors with comprehensive support for
4-
TON Blockchain languages and technologies including Tolk, FunC, Fift assembly, TL-B, BoC and Blueprint.
4+
TON Blockchain languages and technologies including Tolk, FunC, Fift assembly, TL-B, BoC, and Acton.
55

66
**[Features][Installation][Troubleshooting]**
77

@@ -10,7 +10,7 @@ TON Blockchain languages and technologies including Tolk, FunC, Fift assembly, T
1010
[Troubleshooting]: #troubleshooting
1111

1212
[![Telegram](https://img.shields.io/badge/TON_Community-white?logo=telegram&style=flat)](https://t.me/tondev_eng)
13-
[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/ton-core.vscode-ton?color=white&labelColor=white&logo=tsnode&logoColor=black)](https://marketplace.visualstudio.com/items?itemName=ton-core.vscode-ton)
13+
[![Visual Studio Marketplace Downloads](https://vsmarketplacebadges.dev/downloads-short/ton-core.vscode-ton.svg?color=white&labelColor=white&logo=tsnode&logoColor=black)](https://marketplace.visualstudio.com/items?itemName=ton-core.vscode-ton)
1414
[![Open VSX Downloads](https://img.shields.io/open-vsx/dt/ton-core/vscode-ton?color=white&labelColor=white&logo=vscodium&logoColor=black)](https://open-vsx.org/extension/ton-core/vscode-ton)
1515

1616
---
@@ -28,7 +28,7 @@ Tolk support includes:
2828
- Inlay hints for types, parameter names, and more
2929
- On-the-fly inspections with quick fixes
3030
- Signature help inside calls
31-
- Build and test projects based on Blueprint
31+
- Build, test, format, lint, and debug projects based on Acton
3232
- Flexible toolchain management
3333

3434
FunC support includes:
@@ -41,7 +41,7 @@ FunC support includes:
4141
- Types and documentation on hover
4242
- Inlay hints for method id
4343
- On-the-fly inspections
44-
- Build and test projects based on Blueprint
44+
- Legacy FunC language support for existing contracts
4545

4646
Fift assembly support includes:
4747

@@ -70,11 +70,13 @@ The easiest way to get started with TON development is to use VS Code or editors
7070
1. Install the TON extension
7171
[in VS Code](https://marketplace.visualstudio.com/items?itemName=ton-core.vscode-ton)
7272
or [in VS Code-based editors](https://open-vsx.org/extension/ton-core/vscode-ton)
73-
2. That's it!
73+
2. Open an Acton project with an `Acton.toml` file, or create one with the Acton CLI
74+
3. That's it!
7475

75-
The extension automatically detects your toolchain installation. If you need to work with custom-builds or
76-
configurations, check out the [toolchain management] guide.
76+
The extension automatically detects your Acton and Tolk toolchain installation. See the [Acton integration] guide for
77+
the project workflow. If you need to work with custom Tolk compiler builds, check out the [toolchain management] guide.
7778

79+
[Acton integration]: ./docs/manual/acton.md
7880
[toolchain management]: ./docs/manual/toolchain-management.md
7981

8082
## Installation

docs/manual/acton.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Acton Integration
2+
3+
The VS Code extension treats Acton projects as the primary TON smart contract workflow.
4+
5+
An Acton project is detected by an `Acton.toml` file in the workspace. Once detected, the extension provides:
6+
7+
- code lenses for building, testing, running, and generating wrappers
8+
- `acton check` diagnostics on Tolk file changes
9+
- `acton fmt` formatting for Tolk files
10+
- native Acton test discovery through the VS Code Testing view
11+
- retrace debugging commands for transactions
12+
- wallet management from the TON Wallets view
13+
14+
## Requirements
15+
16+
Install the Acton CLI and make sure it is available in `PATH`.
17+
18+
If the executable is installed elsewhere, set:
19+
20+
```json
21+
{
22+
"ton.acton.path": "/absolute/path/to/acton"
23+
}
24+
```
25+
26+
## Formatting
27+
28+
Tolk formatting is performed by `acton fmt`.
29+
30+
Formatting can be disabled with:
31+
32+
```json
33+
{
34+
"ton.tolk.formatter.useFormatter": false
35+
}
36+
```
37+
38+
## Diagnostics
39+
40+
The Acton linter runs `acton check` after Tolk file changes. It can be configured with:
41+
42+
```json
43+
{
44+
"ton.acton.linter.enabled": true,
45+
"ton.acton.linter.debounce": 100
46+
}
47+
```
48+
49+
## Tests
50+
51+
The extension keeps an Acton test controller registered for projects with `Acton.toml`.
52+
Tests can be run from the VS Code Testing view or from Acton code lenses.

docs/manual/troubleshooting.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ If the extension is not working as expected:
1010

1111
1. Make sure you have the latest version of VS Code installed
1212
2. Try reloading VS Code (Command Palette > **`Developer: Reload Window`**)
13-
3. Check the extension is enabled (**Extensions** view > search for "Tolk")
13+
3. Check the extension is enabled (**Extensions** view > search for "TON")
1414
4. Check if any other Tolk extensions are disabled to avoid conflicts
1515

1616
### Standard Library Not Found
1717

1818
If you see the error "Tolk standard library is missing! Try installing dependencies with 'yarn/npm install' or specify
19-
`tolk.stdlib.path` in settings":
19+
`ton.tolk.stdlib.path` in settings":
2020

2121
1. First, try installing dependencies in your project:
2222

@@ -26,7 +26,7 @@ If you see the error "Tolk standard library is missing! Try installing dependenc
2626
npm install
2727
```
2828

29-
2. If this doesn't help, try set `tolk.stdlib.path` in settings:
29+
2. If this doesn't help, try set `ton.tolk.stdlib.path` in settings:
3030
3131
- Open VS Code **Settings**
3232
- Search for **"Tolk: General › Stdlib Path"**
@@ -42,7 +42,7 @@ If you encounter issues with the latest version, you can install a previous vers
4242
4343
1. Open Command Palette in VS Code (`Ctrl+Shift+P` / `Cmd+Shift+P`)
4444
2. Type and select **"Extensions: Install Specific Version of Extension..."**
45-
3. Select "Tolk Language" from the list
45+
3. Select "TON" from the list
4646
4. Choose the version you want to install from the dropdown
4747
5. VS Code will automatically uninstall current version and install the selected one
4848
@@ -72,6 +72,19 @@ Also, you can view extension logs directly in VS Code:
7272
7373
These logs are helpful when reporting issues on GitHub.
7474
75+
### Acton CLI Not Found
76+
77+
If Acton code lenses, formatting, tests, or diagnostics fail because the executable is missing:
78+
79+
1. Make sure the `acton` command is available in your shell.
80+
2. If Acton is installed in a custom location, set:
81+
82+
```json
83+
"ton.acton.path": "/absolute/path/to/acton"
84+
```
85+
86+
3. Reload VS Code after changing the setting.
87+
7588
## Reporting Issues
7689
7790
If you encounter an issue not covered here:

editors/code/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# TON Extension
22

33
Extension for VSCode and VSCode-based editors with comprehensive support for TON Blockchain
4-
languages and technologies including Tolk, FunC, Fift assembly, TL-B, BoC and Blueprint.
4+
languages and technologies including Tolk, FunC, Fift assembly, TL-B, BoC, and Acton.
55

66
**[Features][Installation][Troubleshooting]**
77

@@ -28,7 +28,7 @@ Tolk support includes:
2828
- Inlay hints for types, parameter names, and more
2929
- On-the-fly inspections with quick fixes
3030
- Signature help inside calls
31-
- Build and test projects based on Blueprint
31+
- Build, test, format, lint, and debug projects based on Acton
3232
- Flexible toolchain management
3333

3434
FunC support includes:
@@ -41,7 +41,7 @@ FunC support includes:
4141
- Types and documentation on hover
4242
- Inlay hints for method id
4343
- On-the-fly inspections
44-
- Build and test projects based on Blueprint
44+
- Legacy FunC language support for existing contracts
4545

4646
Fift assembly support includes:
4747

@@ -70,12 +70,14 @@ The easiest way to get started with TON development is to use VS Code or editors
7070
1. Install the TON extension
7171
[in VS Code](https://marketplace.visualstudio.com/items?itemName=ton-core.vscode-ton)
7272
or [in VS Code-based editors](https://open-vsx.org/extension/ton-core/vscode-ton)
73-
2. That's it!
73+
2. Open an Acton project with an `Acton.toml` file, or create one with the Acton CLI
74+
3. That's it!
7475

75-
The extension automatically detects your toolchain installation. If you need to work with custom-builds or
76-
configurations, check out the [toolchain management] guide.
76+
The extension automatically detects your Acton and Tolk toolchain installation. See the [Acton integration] guide for
77+
the project workflow. If you need to work with custom Tolk compiler builds, check out the [toolchain management] guide.
7778

78-
[toolchain management]: ./docs/manual/toolchain-management.md
79+
[Acton integration]: ../../docs/manual/acton.md
80+
[toolchain management]: ../../docs/manual/toolchain-management.md
7981

8082
## Installation
8183

0 commit comments

Comments
 (0)