Language Server Protocol and Implementation: Supporting Language-Smart Editing and Programming Tools
Author: Nadeeshaan Gunasinghe and Nipuna Marcus
Publisher finelybook 出版社: Apress; 1st ed. edition (November 14,2021)
Language 语言: English
Print Length 页数: 264 pages
ISBN-10: 1484277910
ISBN-13: 9781484277911
Book Description
Understand the important aspects of implementing a production-grade language server in support of language-smart tools such as code editors and other programming utilities. This book shows you how to create a single implementation of a language server that can be used Author: multiple tools,enabling you to do the job once in a way that can be shared and reused.
This book covers the language server protocol used for communication between programming tools and your language server. The book also provides an in-depth understanding of the design,implementation,and user experience aspects which should be considered when implementing a language server. The book walks you through an example language server implementation to illustrate the basic concepts,then goes on to cover advanced aspects of language server use such as progress reporting,launchers,and extension points.
User experience is an important aspect of language server implementation and different tooling vendors strive to provide their own unique user experiences. This book explains how the protocol features can be leveraged to address the unique developer experience provided Author: different tooling vendors. The book also shows how to enhance the smoothness of the editing experience Author: orchestrating multiple features together.
What You Will Learn
Implement a language server from scratch
Understand language server protocol and its data models
Leverage the protocol while preserving the unique user experience of different editors
Extend the protocol to support more than its standard capabilities
Run a language server on top of launchers such as standard I/O and TCP socket
Seamlessly incorporate language semantics into your protocol features