File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments