How to get the *full* custom-language UX in Notebooks? #1251
-
TL;DR: I'm not seeing input-cell hovers / completions / etc for our functioning custom-language IntelliSense impl, nor output-cell syntax-coloring with So my VSCode extension based on For our REPL UX, I'm doing a custom NotebookSerializer and NotebookController. Hooked up properly to the No completions, hover, go2def etcIn these Notebooks, other than syntax highlighting (for inputs, not outputs), there's none of all that well-working language-extension stuff that's already working in normal text editors for our language. For the input cell: no completions, no hover, no go2def via ctrl+click or F12, nothing! Just syntax coloring. No output-cell syntax coloring with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@metaleap thanks for your interest in notebook in VS Code! Our documentation is not up to date, will update them later but first let me answer some of your questions Regarding language features, the notebook cell documents have an unique scheme For "output-cell syntax coloring", we dropped support for builtin editor output and it's now fully contributed via output renderer https://github.com/rebornix/vscode-code-renderer , if you want to depend on this renderer, we could look into supporting your custom language in this renderer. |
Beta Was this translation helpful? Give feedback.
@metaleap thanks for your interest in notebook in VS Code! Our documentation is not up to date, will update them later but first let me answer some of your questions
Regarding language features, the notebook cell documents have an unique scheme
vscode-notebook-cell
, and in your language registration, it's limited tofile
https://github.com/metaleap/vscode-gerbil-scheme/blob/main/src/lsp.ts#L25C13-L26C1 , that's why none of them works for notebook. You can try add{ language: 'gerbil', scheme: 'vscode-notebook-cell' }
to the document selector.For "output-cell syntax coloring", we dropped support for builtin editor output and it's now fully contributed via output renderer https://github.co…