Konubinix' opinionated web of thoughts

Literate Sensible Programming With LSP

Fleeting

What would it take to have the support of LSP in a literate programming document?

It should also provide support for DAP.

A bridge that would tangle the code, run LSP and map the result back to the document.

it is no silver bullet

because the code in front of me can be included in several other parts of the document, there is no way to know its contexts for sure.

For instance, the following code

print(b)

Would print 1 in that situation

b = 1
<<mycode>>

And 2 in that one

b = 2
<<mycode>>

Therefore, in that case, when editing the code print(b), the lsp server would have no way of telling whether b is 1 or 2.

Notes linking here