Skip to content

Commit aa48337

Browse files
committed
Document Soplang 3 setup, verification results, and release limits
Describe compiler and native-build prerequisites, supported editor workflows, verified Linux package behavior, and the remaining platform and environment checks. Retain version 1.0.0 as the next extension release candidate.
1 parent e893abe commit aa48337

6 files changed

Lines changed: 367 additions & 144 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,17 @@
1-
# Change Log
2-
3-
All notable changes to the "soplang" extension will be documented in this file.
4-
5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6-
7-
## [0.2.0] - 2025-04-25
8-
### Minor Release Improvements
9-
10-
### Added
11-
- Added hover documentation support for the `bool` (boolean) keyword
12-
13-
### Changed
14-
- Updated execution command from `sop run` to `soplang` for better consistency
15-
- Updated file icons to use Soplang logo for .so and .sop files
16-
- Fixed missing keyword documentation
17-
18-
## [0.1.0] - 2025-04-11
19-
### Beta Release
20-
21-
### Added
22-
- Soplang code execution feature with multiple activation methods:
23-
- Keyboard shortcut (Ctrl+Shift+R / Cmd+Shift+R)
24-
- Context menu option
25-
- Editor title button
26-
- Command palette command
27-
- Official Soplang logo integration
28-
- Comprehensive README documentation
29-
- Auto-save before code execution
30-
- Support for both .sop and .so file extensions
31-
- VS Code tasks for packaging the extension
32-
33-
### Changed
34-
- Updated VS Code engine requirement to v1.95.0
35-
- Improved icon handling for extension and language
36-
- Enhanced error detection and validation system
37-
38-
## [0.0.1] - 2025-03-09
39-
- Initial release with basic syntax highlighting
1+
# Changelog
2+
3+
## 1.0.0 (unreleased)
4+
5+
- Replace duplicate client implementations with one generated TypeScript entry.
6+
- Add a bundled Rust language server using the pinned Soplang 3 frontend.
7+
- Replace heuristic diagnostics and obsolete language tables with compiler
8+
analysis, current syntax, canonical snippets, and a reviewed API catalog.
9+
- Add semantic editor providers and conservative symbol-based rename.
10+
- Replace text-rewriting formatting with source-preserving indentation edits.
11+
- Add real compiler discovery and process tasks for Run, Build, REPL, and Stop.
12+
- Remove forced format-on-save and global spell-check changes.
13+
- Add package inspection, provider tests, native CI, and installed VSIX tests.
14+
15+
Marketplace history checked on 2026-10-18 reports 0.2.0 as the latest published
16+
version. The existing 1.0.0 manifest is retained for this next release. This
17+
working tree has not been published.

‎README.md‎

Lines changed: 47 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,57 @@
1-
# Soplang for VS Code
1+
# Soplang for Visual Studio Code
22

3-
![Soplang Logo](images/soplang-icon.png)
3+
Editor tools for the implemented Soplang 3 language. `.sop` is recommended;
4+
`.so` remains associated for existing source files. Change the language mode
5+
when opening a binary shared library with that extension.
46

5-
VS Code language support for [Soplang](https://github.com/soplang/soplang), a programming language designed for Somali speakers.
7+
The extension bundles a native Rust analysis server with a pinned compiler
8+
frontend. Analysis uses unsaved buffers and imports without running source,
9+
reading interactive input, compiling native code, or invoking LLVM.
610

7-
## Features
11+
Available tools include syntax highlighting, canonical snippets, compiler
12+
frontend diagnostics, visible-symbol and typed-receiver completion, English
13+
hover documentation, signature help, definitions, references, symbols,
14+
highlights, conservative rename, folding, selection ranges, import links,
15+
semantic highlighting, and indentation formatting.
816

9-
This extension provides comprehensive language support for Soplang in Visual Studio Code:
17+
Run, Build, Open REPL, Stop, Compiler Status, and Restart Language Server are
18+
available in the command palette. Run also works from Explorer and the editor
19+
context menu. `Ctrl+Shift+R` (`Cmd+Shift+R` on macOS) runs the selected file.
20+
Compiler tasks have interactive terminals and use executable/argument arrays.
1021

11-
- **Syntax Highlighting**: Full syntax highlighting for Soplang keywords, strings, comments, and operators
12-
- **Code Execution**: Run Soplang files directly from VS Code
13-
- **Formatting**: Automatic code formatting for Soplang files
14-
- **Hover Information**: Documentation for Soplang keywords when hovering
15-
- **Spell Checking**: Integration with Code Spell Checker for Soplang keywords
16-
- **Snippets**: Common code snippets for faster development
17-
- **Error Detection**: (Optional) Diagnostics for common syntax errors
18-
19-
## Installation
20-
21-
1. Open VS Code
22-
2. Go to Extensions (Ctrl+Shift+X)
23-
3. Search for "Soplang"
24-
4. Click Install
25-
26-
## Running Soplang Files
27-
28-
You can run Soplang files (`.sop` or `.so` extensions) in multiple ways:
29-
30-
- **Context Menu**: Right-click on a file and select "Run Soplang File"
31-
- **Keyboard Shortcut**: Press `Ctrl+Shift+R` (or `Cmd+Shift+R` on Mac)
32-
- **Command Palette**: Press `Ctrl+Shift+P` and type "Run Soplang File"
33-
- **Editor Title**: Click the Soplang icon in the top-right of the editor
34-
35-
The file will be automatically saved before running.
36-
37-
## Configuration
38-
39-
This extension provides several configuration options:
40-
41-
### Error Detection
42-
43-
By default, error detection is disabled. To enable it:
44-
45-
1. Open Settings (`Ctrl+,`)
46-
2. Search for "soplang"
47-
3. Check the "Enable Diagnostics" option
22+
Install a real Soplang 3 compiler on the extension host for execution. Set
23+
`soplang.compilerPath` to its executable path if it is absent from `PATH`.
24+
The extension does not install a compiler. Standalone builds also need the
25+
compiler's clang, rustc, and matching Soplang runtime libraries. A source debugger
26+
requires compiler debug information and a debug adapter; neither is included.
4827

4928
```json
50-
"soplang.enableDiagnostics": true
51-
```
52-
53-
### Formatting
54-
55-
Automatic formatting on save is enabled by default for Soplang files. You can disable it in the settings:
56-
57-
```json
58-
"[soplang]": {
59-
"editor.formatOnSave": false
29+
{
30+
"soplang.compilerPath": "soplang",
31+
"soplang.enableDiagnostics": true,
32+
"soplang.strict": false,
33+
"soplang.build.optimization": 2,
34+
"soplang.build.output": "",
35+
"soplang.workingDirectory": ""
6036
}
6137
```
6238

63-
## Language Features
64-
65-
### Syntax Highlighting
66-
67-
All Soplang keywords are properly highlighted:
68-
69-
- `door` - Variable declaration
70-
- `hawl` - Function declaration
71-
- `qor` - Print statement
72-
- `gelin` - Read input
73-
- `haddii`, `haddii_kale`, `ugudambeyn` - Conditionals
74-
- `kuceli`, `intay` - Loops
75-
- ...and many more
76-
77-
### Hover Documentation
78-
79-
Hover over any Soplang keyword to see documentation, examples, and usage tips.
80-
81-
### Code Snippets
82-
83-
Type these prefixes and press Tab to use code snippets:
84-
85-
- `door` - Variable declaration
86-
- `hawl` - Function declaration
87-
- `if` - If statement
88-
- `for` - For loop
89-
- `while` - While loop
90-
91-
## Requirements
92-
93-
- Visual Studio Code v1.95.0 or higher
94-
- The [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) extension (automatically installed)
95-
96-
## Troubleshooting
97-
98-
### Soplang files not running
99-
100-
Make sure the `soplang` command is available in your PATH. If not, you can install it by following the instructions at [Soplang GitHub repository](https://github.com/soplang/soplang).
101-
102-
### Syntax highlighting not working
103-
104-
If syntax highlighting is not working, try:
105-
106-
1. Reload VS Code window (Ctrl+Shift+P > "Reload Window")
107-
2. Ensure the file has `.sop` or `.so` extension
108-
109-
## Contributing
110-
111-
The source code for this extension is available on [GitHub](https://github.com/soplang/vsCodeLanguageSupport). Contributions are welcome!
112-
113-
## License
114-
115-
This extension is licensed under the [MIT License](LICENSE).
39+
The default working directory is the selected file's workspace folder, or its
40+
source directory outside a workspace. Relative configuration paths use that
41+
working directory. Save cancellation or failure prevents execution. Workspace
42+
Trust is required for compiler tasks and custom server executables. Bundled
43+
analysis works in restricted mode, with disk imports restricted to workspace
44+
roots. Execution and analysis run on the workspace extension host, including
45+
SSH, WSL, and containers when a matching native server is present.
46+
47+
No settings are changed when the extension activates. Formatting on save is
48+
opt-in. The formatter changes leading indentation only, preserves strings,
49+
comments, operators and EOLs, and returns no edits for malformed source. Range
50+
formatting touches only indentation wholly inside the selected range.
51+
52+
Code Spell Checker is optional. The contributed `soplang` dictionary can be
53+
enabled through its language settings; no global spelling settings are changed.
54+
55+
See [the support matrix](docs/SUPPORT.md) for verification status and limits,
56+
[the language catalog](keywords.md) for signatures and contracts, and
57+
[development instructions](docs/DEVELOPMENT.md) for builds and tests.

‎docs/DEVELOPMENT.md‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Development
2+
3+
Use Node.js 22 or later and Rust 1.94 or later. The generated JavaScript entry
4+
is built from `src/extension.ts`; legacy JavaScript providers are removed.
5+
`package-lock.json` and `server/Cargo.lock` lock dependency resolution.
6+
7+
```sh
8+
npm ci
9+
npm run generate
10+
npm run check
11+
npm run build
12+
cargo test --locked --manifest-path server/Cargo.toml
13+
cargo build --locked --manifest-path server/Cargo.toml
14+
npm test
15+
npm run build:server
16+
mkdir -p artifacts
17+
npm run package -- --target linux-x64 --out artifacts/soplang-linux-x64.vsix
18+
npm run verify:package -- artifacts/soplang-linux-x64.vsix
19+
SOPLANG_VSIX=artifacts/soplang-linux-x64.vsix npm run test:host
20+
```
21+
22+
Set `SOPLANG_COMPILER` to a real compiler executable to enable snippet and
23+
compiler execution checks. No tests substitute the root mock executable.
24+
`VSCODE_EXECUTABLE` uses an existing editor; otherwise `VSCODE_VERSION` selects
25+
an editor download (`stable` by default, `1.95.0` for the minimum).
26+
Extension Host tests install the exact VSIX into isolated temporary extension
27+
and profile directories. The development extension is a separate empty test
28+
driver, so the installed package supplies all Soplang registrations.
29+
`SOPLANG_RESTRICTED=1` runs an additional Restricted Mode case without the
30+
standard test runner's automatic trust-disabling flag.
31+
Linux GUI tests need a display, or `xvfb-run -a` in CI.
32+
33+
`VSCE_TARGET` selects the package target and `CARGO_BUILD_TARGET` selects the Rust
34+
target for native builds. Build on each target host. Do not put one host's native
35+
binary in another host's package. The artifact contains a single bundled JS
36+
entry, grammar, snippets, dictionary, native server, images, and licenses.
37+
38+
The vendored frontend contains upstream lexer/parser/AST/import/semantic/error
39+
sources, plus `analysis.rs`, `analysis/index.rs`, partial-parser support, and a
40+
backend-free crate wrapper. The same editor APIs live in the compiler checkout.
41+
Refresh the upstream pin and catalog together, inspect the source diff, and run
42+
the compiler's own tests before accepting a frontend update. No generated files
43+
contain checkout-specific runtime dependencies.
44+
45+
Before release, require: initial analysis under 250 ms for 100 declarations,
46+
under 1500 ms for 2000 declarations, warm requests under 100 ms for those files,
47+
and no continued memory growth over repeated replacements after warm-up.
48+
The debounce target is 120 ms. Performance checks are in tests/performance.cjs.

0 commit comments

Comments
 (0)