GithubHelp home page GithubHelp logo

georgreen / vscode-languageserver-csharp-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matarillo/vscode-languageserver-csharp-example

0.0 0.0 0.0 126 KB

Sample language server implemented in C#

License: MIT License

C# 76.75% TypeScript 23.25%

vscode-languageserver-csharp-example's Introduction

vscode-languageserver-csharp-example

This repository contains a sample language server implemented in C# and a sample VS code extension that demonstrates an extension that runs the server.

The extension observes all 'plaintext' documents (documents from all editors not associated with a language) and uses the server to provide validation and completion proposals.

The code for the extension is in the 'client' folder. It uses the 'vscode-languageclient' node module to launch the language server.

The language server is located in the 'server' folder.

Modification from the original

Sample language server is implemented in C#.

How to run locally

  • cd server to move the server folder.
  • msbuild /t:Restore SampleServer.sln to restore nuget packages.
  • msbuild SampleServer.sln to build the server.
  • cd ../client to move the client folder.
  • npm install to initialize the extension.
  • open client folder in VS Code.
  • 'Ctrl+Shift+B' to build the client and watch files.
  • In the Debug viewlet, run 'Launch Extension' from drop-down to launch the extension and attach to the extension.
  • create a file test.txt, and type typescript. You should see a validation error.
  • to debug the server use external debugger such as Visual Studio.

vscode-languageserver-csharp-example's People

Contributors

matarillo avatar dbaeumer avatar weinand avatar brettcannon avatar hoovercj avatar ljw1004 avatar msftgits avatar clinyong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.