Skip to content

Commit a1afdd4

Browse files
authored
Update README.md
1 parent a7c69ec commit a1afdd4

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
11
# vscode-languageserver-csharp-example
2-
Sample language server implemented in C#
2+
3+
This repository contains a sample language server implemented in C#
4+
and a sample VS code extension that demonstrates an extension that runs the server.
5+
6+
The extension observes all 'plaintext' documents (documents from all editors not associated with a language)
7+
and uses the server to provide validation and completion proposals.
8+
9+
The code for the extension is in the 'client' folder. It uses the 'vscode-languageclient' node module to launch the language server.
10+
11+
The language server is located in the 'server' folder.
12+
13+
# Modification from the original
14+
Sample language server is implemented in C#.
15+
16+
# How to run locally
17+
* `cd server` to move the server folder.
18+
* `msbuild /t:Restore SampleServer.sln` to restore nuget packages.
19+
* `msbuild SampleServer.sln` to build the server.
20+
* `cd ../client` to move the client folder.
21+
* `npm install` to initialize the extension.
22+
* open `client` folder in VS Code.
23+
* 'Ctrl+Shift+B' to build the client and watch files.
24+
* In the Debug viewlet, run 'Launch Extension' from drop-down to launch the extension and attach to the extension.
25+
* create a file `test.txt`, and type `typescript`. You should see a validation error.
26+
* to debug the server use external debugger such as Visual Studio.

0 commit comments

Comments
 (0)