LSP: Building a Language Server From Scratch

preview_player
Показать описание
00:00:00 - Intro
00:00:52 - Getting set up
00:05:52 - Starting from Scratch
00:12:40 - The initialize method
00:19:38 - Processing messages in batches
00:24:18 - Responding to initialize
00:30:43 - Implementing completion
00:42:45 - Document Synchronization
00:56:24 - Smarter completion
01:07:02 - Testing against Neovim
01:08:23 - Outro / Next Steps

In this video, we'll start building our own language server in TypeScript by following the Language Server Protocol. We'll build the core functionality of initialization, text completion, and document synchronization. Beginners welcome!

Рекомендации по теме
Комментарии
Автор

To be honest, I'm not going to do this anytime soon but is a great insight into something really interesting and mostly hidden. Topic is nicely explained, tempo is awesome, voice is clear and well recorded and the video is great. Thanks for sharing.

SRG-Learn-Code
Автор

this is cool! I'm planning on writing a toy language + compiler for it in golang, and an LSP will be a great addition to the project. Thanks for the awesome video, hope I get to see more contents on this channel!

ilyukchiljin
Автор

Please continue.
I'm struggle to create LSP for certain frameworks and libs that not so popular but useful for me.

🥺

ZAcharyIndy
Автор

Fantastic tutorial!! I would love to see more material like this.

jessekelly
Автор

This is fantastic! We use an old proprietary vendor language a lot at my job, and the only real IDE that supports it is nearing 20 years old at this point. Dove into writing my own lsp for it and this is the best thing I've found that made it all make sense. Thanks for the content!

jeffreyhartman
Автор

Fantastic content! I'll slowly follow along later this week. Thanks a LOT for the great LSP content!

DrowzeGarkenos
Автор

1. bootstrap a meme language by yourself based on whatever language you are familiar with.
2. create a lsp based on this video.
3. Then, host a website that has a simple editor with the lsp syntax highlight. Compile and run your meme language on the fly, even only contains the most basic and trivia functionalities.
if you are able to go through the entire process, even with the help of all the online resources. You already beat 95% of bachelor + master degree CS students around the world. Even average SDE in most companies. I'm not joking.

doc
Автор

Where was this video when I needed it last year. Great video!

ZeroRegretz
Автор

Thank you for doing this. I have been working on developing my own language and have been struggling to make an lsp. This video is great, again thank you!

thedevconnor
Автор

Wow, thank you recommendation gods! Thank you for this, not many videos on this and the oens that do exist are kinda old. And your speaking voice and explanation style are awesome! Thanks!

SirNoire
Автор

You were able to condense and distill what I thought was a pretty complex topic enough to make it look extremely simple. Thank you so much for putting this together!

MrKeebs
Автор

Please continue. I’m trying to create my own language/framework compiler and I’ve always wanted to know how to do this. I’d very much love a deep deep dive into the subject! Thank you very much for making and sharing this video. 🙏🙏🙏

ofeenee
Автор

I have searched for LSP videos before and got only marginal quality but this morning -- right around when my first cup of coffee finished brewing -- your video just showed up in my feed and wow this is MUCH better content than I'd seen before. Great instructive style, great everything!

yankee-in-london
Автор

Amazing work! Exactly what I'm looking for right now. Can't wait for the follow up :)

pitchyq
Автор

Simply an amazing video! Thank you so much for making this!!

zanoxie
Автор

This was a cool walk through. I failed looking at LSPs before, and now I was able to set one up, following along. Nice work!
If you do a follow up, I'd be happy to follow along making an LSP for some language that isn't already available IRL.

Автор

thank you so much for making this, would love to see more.

skydwlr
Автор

Excellent tutorial. Thanks for sharing and please keep this series up! I hope there will be video talking about implementation of some common lsp capabilities like textDocument/definition or textDocument/reference.

lierzlorentz
Автор

I enjoyed that tutorial, really interesting stuff.
I plan to keep it in the back of my mind when building my own stuff.

mohamedtalaatharb
Автор

Excellent content, and well presented! Thank you.

daviddawkins