Skip to content

Commit 94e9fa2

Browse files
authored
docs(languages): Add initial csharp + rust docs (#2256)
1 parent a40c1b9 commit 94e9fa2

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed

docs/docs/languages/c-sharp.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
id: c-sharp
3+
title: C#
4+
sidebar_label: C#
5+
---
6+
7+
Onivim supports C# via the [`muhammad-sammy.csharp`](https://open-vsx.org/extension/muhammad-sammy/csharp) extension:
8+
9+
![c-sharp](https://user-images.githubusercontent.com/13532591/89577746-fcfad100-d7e5-11ea-9e96-afb1edf630e2.png)
10+
11+
The following features are supported:
12+
- Code completion
13+
- Diagnostics
14+
- Go-to definition
15+
- Signature Help
16+
17+
### Setup
18+
19+
1) Ensure you have the latest version of the .NET Core tools: https://docs.microsoft.com/en-us/dotnet/core/install/
20+
21+
2) Install the extension via the command-line:
22+
23+
- `oni2 --install-extension muhammad-sammy.csharp`
24+
25+
### Usage
26+
27+
Once installed, run `oni2` in the your project's folder - for example: `oni2 /path/to/csharp-project`, and then open a C# file.
28+
29+
The first time the extension activates, it will automatically download and install the OmniSharp server.
30+
31+
After the extension installs required dependencies, you'll see a status bar icon showing the server status, as well as the current project:
32+
33+
![status-bar](https://user-images.githubusercontent.com/13532591/89578393-ea34cc00-d7e6-11ea-8b66-7b2f15151dfb.png)

docs/docs/languages/rust.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
id: rust
3+
title: Rust
4+
sidebar_label: Rust
5+
---
6+
Onivim supports rust via the [`matklad.rust-analyzer`](https://open-vsx.org/extension/matklad/rust-analyzer) extension:
7+
8+
![rust](https://user-images.githubusercontent.com/13532591/89589799-443f8c80-d7fb-11ea-9d95-c2a89c7c1204.gif)
9+
10+
The following features are supported:
11+
12+
- Code completion
13+
- Diagnostics
14+
- Go-to definition
15+
- Hover
16+
- Document highlights
17+
18+
### Setup
19+
20+
1) Ensure you have `rust` and `cargo` installed: https://www.rust-lang.org/learn/get-started
21+
22+
2) Install the extension via the command-line:
23+
24+
- `oni2 --install-extension matklad.rust-analyzer`
25+
26+
### Usage
27+
28+
Once installed, run `oni2` in the your project's folder - for example: `oni2 /path/to/rust-project`, and then open a `.rs` file
29+
30+
The first time the extension activates, it may prompt you to download `rust-analyzer` binaries.
31+
32+
### More Info
33+
34+
- [Rust-Analyzer Documentation](https://rust-analyzer.github.io/manual.html#installation)

docs/website/sidebars.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"languages/python",
2626
"languages/go",
2727
"languages/java",
28-
"languages/c"
28+
"languages/c",
29+
"languages/c-sharp",
30+
"languages/rust"
2931
],
3032
"For Developers": [
3133
"for-developers/architecture",

0 commit comments

Comments
 (0)