Skip to content

Conversation

@istathar
Copy link
Member

@istathar istathar commented Sep 16, 2025

Introduce a new top-level command technique language to run a server for the Language Server Protocol (LSP). This works by consuming JSON-RPC messages sent over stdin from an editor or IDE and then handling various methods being invoked. This implementation currently handles reporting compiler errors and re-formatting the document.

This gave us reason to extend the ranges shown in error messages to more accurately convey the location of the problematic code. Both the carets shown in textual errors in technique check and the red squiggle shown under erroneous code in an IDE benefit from this.

Finally, we've added - as a valid filename, indicating that input to be checked or formatted is to be taken from standard input.

@istathar istathar self-assigned this Sep 16, 2025
@istathar istathar merged commit 88932ca into technique-lang:main Sep 16, 2025
1 check passed
@istathar istathar deleted the lsp branch September 16, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant