Skip to content

Commit b04cd93

Browse files
committed
docs: Update readme
1 parent 1864075 commit b04cd93

File tree

2 files changed

+59
-39
lines changed

2 files changed

+59
-39
lines changed

README.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,29 @@ An R language server, linter, and code formatter, written in Rust.
2020

2121
Roughly aims to support the following language server features (some are experimental or in progress):
2222

23-
- **Code Navigation**
24-
- Goto definition (🧪 experimental)
25-
- Search current document (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>O</kbd> *in VS Code*)
26-
- Search global workspace (<kbd>Ctrl</kbd> + <kbd>T</kbd> *in VS Code*)
27-
- Indexing of global symbols, S4 classes/generics/methods and R6 classes/methods
23+
- **Navigation**
24+
- Indexing of global variables, S4 and R6 classes/methods
25+
- Search current document - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>O</kbd> *in VS Code*
26+
- Search global workspace - <kbd>Ctrl</kbd> + <kbd>T</kbd> *in VS Code*
27+
- Go to definition *(🧪 experimental)*
28+
- Find all references *(🧪 experimental)*
2829

2930
- **Diagnostics**
3031
- Syntax errors (including missing or trailing commas)
31-
- Basic linting rules (e.g. `<-` assignment and variable naming)
32-
- Unused variables (🧪 experimental)
32+
- Basic linting rules (e.g. using `<-` for assignment or consistent `snake_case` / `camelCase`)
33+
- Warn about unused variables *(🧪 experimental)*
34+
35+
- **Editing**
36+
- Autocomplete locals and global variables
37+
- Autocomplete variables from other packages *(⚠️ missing)*
38+
- Rename local variables *(🧪 experimental)*
39+
- Rename global variables *(⚠️ missing)*
40+
- Signature help *(🔨 work in progress)*
3341

3442
- **Formatting**
35-
- Entire documents
36-
- Selected ranges (🧪 experimental)
37-
38-
- **Code Completion**
39-
- Local symbols
40-
- Global symbols
41-
- Package symbols (⚠️ missing)
42-
- Signature help (⚠️ missing)
43-
43+
- Format entire documents
44+
- Format selected code ranges *(🧪 experimental)*
45+
4446
## Roughly CLI
4547

4648
You can install the Roughly CLI by downloading a pre-built binary or by building from source.
@@ -87,13 +89,9 @@ Roughly can also be used as a VS Code extension.
8789

8890
### From Marketplace (Recommended)
8991

90-
Install directly from VS Code:
91-
- Open VS Code
92-
- Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>X</kbd> to open Extensions
93-
- Search for "roughly"
94-
- Click "Install" on the extension by `felix-andreas`
92+
[![](https://vsmarketplacebadges.dev/version-short/felix-andreas.roughly.svg)](https://marketplace.visualstudio.com/items?itemName=felix-andreas.roughly)
9593

96-
Or, install using the [VS Code Marketplace website](https://marketplace.visualstudio.com/items?itemName=felix-andreas.roughly).
94+
Install the extension from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=felix-andreas.roughly).
9795

9896
> [!NOTE]
9997
> The VS Code extension from the marketplace includes a bundled version of the Roughly CLI **only for Windows and Linux x64**. If you are using macOS or a different architecture, you will need to install the Roughly CLI manually.
@@ -121,8 +119,8 @@ You can customize the Roughly extension in VS Code through the following setting
121119
{
122120
// Use a custom binary instead of the bundled one
123121
"roughly.path": "/path/to/roughly",
124-
// Pass extra arguments to the language server
125-
"roughly.args": ["server", "--extra", "arg"],
122+
// Pass custom arguments; defaults to ["server"]
123+
"roughly.args": ["server", "--verbose"],
126124
// Enable experimental features
127125
"roughly.experimentalFeatures": ["goto_definition", "range_formatting"],
128126
}
@@ -135,8 +133,10 @@ You can customize the Roughly extension in VS Code through the following setting
135133

136134
You can access Roughly-specific commands in VS Code via the Command Palette (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>):
137135

138-
- **Roughly: Start/Stop/Restart Server**
139136
- **Roughly: Open logs**
137+
- **Roughly: Start/Stop/Restart Server**
138+
- **Roughly: Format workspace** (⚠️ missing)
139+
- **Roughly: Show syntax tree** (⚠️ missing)
140140

141141
## RStudio Integration
142142

@@ -163,14 +163,14 @@ naming-style = "snake_case" # or "camelCase", omit to disable this lint entirely
163163
Roughly includes several experimental features that can be enabled in the VS Code extension settings or via the CLI:
164164

165165

166-
| Name | Description |
167-
| ------------------ | --------------------------------- |
168-
| `all` | Enables all experimental features |
169-
| `goto_definition` | Jump to symbol definitions |
170-
| `goto_references` | Find all references to a symbol |
171-
| `range_formatting` | Format selected code ranges |
172-
| `rename` | Rename symbols |
173-
| `unused` | Detect unused variables |
166+
| Name | Description |
167+
| ------------------ | -------------------------------- |
168+
| `all` | Enable all experimental features |
169+
| `goto_definition` | Jump to symbol definitions |
170+
| `goto_references` | Find all references to a symbol |
171+
| `range_formatting` | Format selected code ranges |
172+
| `rename` | Rename symbols |
173+
| `unused` | Warn about unused variables |
174174

175175
## Development
176176

editors/code/README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,30 @@ This extension provides support for the [R programming language](https://www.r-p
77
88
## Features
99

10-
* Autocomplete
11-
* Code Formatting
12-
* Syntax Diagnostics
13-
* Workspace Symbol Search
10+
Roughly aims to support the following language server features (some are experimental or in progress):
11+
12+
- **Navigation**
13+
- Indexing of global variables, S4 and R6 classes/methods
14+
- Search current document - <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>O</kbd> *in VS Code*
15+
- Search global workspace - <kbd>Ctrl</kbd> + <kbd>T</kbd> *in VS Code*
16+
- Go to definition *(🧪 experimental)*
17+
- Find all references *(🧪 experimental)*
18+
19+
- **Diagnostics**
20+
- Syntax errors (including missing or trailing commas)
21+
- Basic linting rules (e.g. using `<-` for assignment or consistent `snake_case` / `camelCase`)
22+
- Warn about unused variables *(🧪 experimental)*
23+
24+
- **Editing**
25+
- Autocomplete locals and global variables
26+
- Autocomplete variables from other packages *(⚠️ missing)*
27+
- Rename local variables *(🧪 experimental)*
28+
- Rename global variables *(⚠️ missing)*
29+
- Signature help *(🔨 work in progress)*
30+
31+
- **Formatting**
32+
- Format entire documents
33+
- Format selected code ranges *(🧪 experimental)*
1434

1535
## Usage
1636

@@ -24,8 +44,8 @@ You can customize the Roughly extension in VS Code through the following setting
2444
{
2545
// Use a custom binary instead of the bundled one
2646
"roughly.path": "/path/to/roughly",
27-
// Pass extra arguments to the language server
28-
"roughly.args": ["server", "--extra", "arg"],
47+
// Pass custom arguments; defaults to ["server"]
48+
"roughly.args": ["server", "--verbose"],
2949
// Enable experimental features
3050
"roughly.experimentalFeatures": ["goto_definition", "range_formatting"],
3151
}

0 commit comments

Comments
 (0)