In order for the pylance team to reuse this: https://github.com/microsoft/vscode-jupyter-lsp-middleware/blob/main/src/notebookConcatDocument.ts#L45 It cannot reference any VS code types. Instead it should just use protocol types.