microsoft / qsharp-compiler

Q# compiler, command line tool, and Q# language server
https://docs.microsoft.com/quantum
MIT License
684 stars 170 forks source link

Treat magic commands as comments in notebooks #1532

Closed ausbin closed 2 years ago

ausbin commented 2 years ago

This is a rebase of the magic command code from #1457 against the most recent feature/langserver-notebooks branch. It treats magic commands as comments if they are the first non-whitespace character in the cell. That requires some state tracking which isn't too beautiful

This may or may not be a good idea to merge, but I'm posting this for discussion/for reference at least

Testing