@@ -20,27 +20,29 @@ An R language server, linter, and code formatter, written in Rust.
2020
2121Roughly 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
4648You 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
136134You 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
163163Roughly 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
0 commit comments