MicrosoftTech News

Visual Studio Code: Markdown Language Server with more possibilities

Visual Studio Code now supports the use of the markdown language even more extensively than before by integrating its own language server.

 

Developers often rely on the Markdown language when it comes to writing documentation or other texts, for example. Microsoft has also equipped the source code editor Visual Studio Code with integrated support for Markdown. A new feature in VS Code is a language server for Markdown, which makes the options – from document outlines to intelligent decomposition (folding) to path completions – of this support directly available to other editors and tools.

In the development team of Microsoft’s Visual Studio Code, Matt Bierner is mainly responsible as a maintainer for the support of JavaScript and TypeScript. But he has also been heavily involved in the integration and integration of the Markdown markup language in VS Code since 2016, as he describes in detail in a blog entry.

Microsoft, Red Hat and Codenvy jointly introduced the Language Server Protocol (LSP) in June 2016. This protocol is used for communication between the tool and so-called language servers, which provide logic for different programming languages. It implements a uniform interface between development environments and servers installed locally on a workstation for specific programming languages ​​or applications, which in turn can supply context-dependent information to the IDE.

The newly introduced Markdown Language Server has been split by the VS Code team into two new, very similarly named open source libraries:

  • Markdown Language Service – A TypeScript library that provides tools for working with Markdown.
  • Markdown Language Server – A language server for Markdown, developed with the help of the language service.

The developers note that while these libraries are still in early stages, they are already being used by VS Code 1.70+. According to them, there have been a number of immediate benefits from this transition, including moving Markdown tools to a separate process. As a result, the tools can no longer block other extensions.

Programmers interested in reviewing or contributing to the source code can find the Markdown service and server on GitHub and npm. Microsoft also provides detailed information on the Language Server Protocol there.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button