MENU

Fun & Interesting

Language Server from Scratch: Integration Testing, Hover, and Hands-On Exercises (LSP)

Jeffrey Chupp 1,942 lượt xem 1 year ago
Video Not Working? Fix It Now

00:00 - Intro
00:10 - Integration testing our Language Server
07:31 - Challenge 1: Shutdown & Exit
07:45 - Implementing Shutdown and Exit Together
10:01 - Definitions on Hover
17:42 - Challenge 2: Hover
17:59 - Implementing Hover together
35:07 - Optional challenge
35:54 - Document Lifecycle fix with DidOpen
40:34 - Closing

We'll continue building our own language server in TypeScript by following the Language Server Protocol. We'll build out hover definitions, integration tests, and I'll give you some challenges to prove your understanding. Beginners welcome!

Previous videos:

1. https://www.youtube.com/watch?v=Xo5VXTRoL6Q
2. https://www.youtube.com/watch?v=t1nI8i-D4oM

- Code: https://github.com/semanticart/lsp-from-scratch
- Dict: https://sourceforge.net/projects/dict/ | homebrew formula https://formulae.brew.sh/formula/dict
- Book a meeting with me: https://calendly.com/jeffreychupp/language-servers-chat
- Spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/

Comment