You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed duplicate command registration between LSP server and extension
- LSP server handles 'just-lsp.run_recipe' for internal protocol communication
- Extension provides 'justlang-lsp.run_recipe' for command palette access
- Added comprehensive documentation explaining both command systems
- Enhanced error logging for better debugging
- Added just-lsp-installer for improved server detection and installation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,20 @@
1
1
# JustLang-LSP Extension
2
2
3
3
## Overview
4
+
4
5
JustLang-LSP is a Visual Studio Code extension designed to enhance the development experience by providing task automation and integration with JustLang syntax. It supports `Justfile` (any capitalization), `.justfile`, and `*.just` formats. This extension leverages the VS Code API to register commands and task providers, enabling seamless execution of tasks defined in JustLang files.
5
6
6
7
This extension now includes a language client for the `just-lsp` language server, providing features like completion, diagnostics, and more.
8
+
I ported my own
9
+
10
+
https://docs.pkgx.sh/
11
+
#!/usr/bin/env -S pkgx +cargo rust-script
12
+
https://github.com/pkgxdev/pkgx
13
+
14
+
cargo install pkgx rust-script
15
+
16
+
17
+
7
18
8
19
## Features
9
20
@@ -19,10 +30,29 @@ This extension now includes a language client for the `just-lsp` language server
19
30
### VSCode Integration
20
31
-**Task Provider Integration**: Automatically detects and registers tasks from JustLang files (`Justfile`, `.justfile`, or `*.just`)
21
32
-**Recipe Execution**: Run recipes directly from the editor with live output streaming
22
-
-**Command Registration**: Enhanced command palette integration with recipe execution
33
+
-**Smart Command Registration**: Intelligent command handling with LSP server integration
23
34
-**Syntax Highlighting**: Comprehensive syntax highlighting using TextMate grammar
24
35
-**Language Configuration**: Smart bracket matching, auto-closing pairs, and comment handling
25
36
37
+
#### Command System
38
+
The extension provides two recipe execution commands:
39
+
40
+
1.**LSP Server Command** (`just-lsp.run_recipe`):
41
+
- Provided by the just-lsp language server
42
+
- Used internally for LSP protocol communication and code actions
43
+
- Triggered automatically by LSP server features (not directly accessible in command palette)
- Accessible via Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`) → "Just: Run Recipe"
47
+
- Provides interactive recipe browser with descriptions and parameter prompts
48
+
- Shows recipe grouping, confirmation dialogs, and real-time execution output
49
+
- Available regardless of LSP server status
50
+
51
+
**How to Access:**
52
+
-**Command Palette**: `Ctrl+Shift+P` → "Just: Run Recipe" (uses extension command)
53
+
-**LSP Features**: Code actions, hover actions, etc. (uses LSP server command)
54
+
-**Task Provider**: VS Code Tasks panel (separate task-based execution)
55
+
26
56
## Requirements
27
57
28
58
This extension requires the `just-lsp` language server to be installed on your system. You can install it by following the instructions in the [just-lsp repository](https://github.com/elasticdotventures/just-lsp).
@@ -99,5 +129,6 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file
99
129
**Syntax Highlighting**: Syntax highlighting and language configuration features were adapted from the [wolfmah-vscode.just-syntax](https://github.com/wolfmah-vscode/just-syntax) repository under the Mozilla Public License 2.0 (MPL 2.0). See the [LICENSE](LICENSE) file for details.
0 commit comments