LSP From Scratch Part 2 – Diagnostics and Code Actions

Channel Avatar
Comment
X
Share
LSP From Scratch Part 2 - Diagnostics and Code Actions
LSP From Scratch Part 2 – Diagnostics and Code Actions
We’ll continue building our own language server in TypeScript by following the Language Server Protocol. We’ll build diagnostics to show the user problems in their document and code actions to help them fix the issues. Beginners welcome!

Previous video: https://www.youtube.com/watch?vXo5VXTRoL6Q

00:00 – Intro
00:46 – A quick fix-up on completion
03:03 – Diagnostics
13:23 – Showing Spelling Errors with Diagnostics
21:48 – Spelling Suggestions in Diagnostics
37:16 – Code Actions for Spelling Corrections
51:44 – Outro

– Spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
– Code: https://github.com/semanticart/lsp-from-scratch
– Levenshtein distance: https://en.wikipedia.org/wiki/Levenshtein_distance
– aspell: http://aspell.net/

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Read Also

Leave a Reply

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