Skip to content

Commit

Permalink
Fix NotebookDocumentSync example (#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
manandre authored Oct 26, 2023
1 parent d5d8e04 commit 5b917a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions _specifications/lsp/3.17/notebookDocument/notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,12 @@ To synchronize the whole notebook document a server provides a `notebookDocument
```typescript
{
notebookDocumentSync: {
notebookSelector: {
notebook: { scheme: 'file', notebookType: 'jupyter-notebook' },
cells: [{ language: 'python' }]
}
notebookSelector: [
{
notebook: { scheme: 'file', notebookType: 'jupyter-notebook' },
cells: [{ language: 'python' }]
}
]
}
}
```
Expand Down
10 changes: 6 additions & 4 deletions _specifications/lsp/3.18/notebookDocument/notebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,12 @@ To synchronize the whole notebook document a server provides a `notebookDocument
```typescript
{
notebookDocumentSync: {
notebookSelector: {
notebook: { scheme: 'file', notebookType: 'jupyter-notebook' },
cells: [{ language: 'python' }]
}
notebookSelector: [
{
notebook: { scheme: 'file', notebookType: 'jupyter-notebook' },
cells: [{ language: 'python' }]
}
]
}
}
```
Expand Down

0 comments on commit 5b917a7

Please sign in to comment.