-
Notifications
You must be signed in to change notification settings - Fork 219
Add notebooks suppport to pylsp #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ccordoba12
merged 27 commits into
python-lsp:develop
from
tkrabel-db:feat-notebook-support
Aug 9, 2023
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
70076fa
README.md
tkrabel-db ba0f9ad
Add notebook support
tkrabel-db d5bf4f9
Add example messages for reference
tkrabel-db 78233c7
lsp_types: add DocumentUri and use correctly
tkrabel-db 09d6879
add diagnostics support
tkrabel-db 500e120
support editing, adding, and removing cells
tkrabel-db b407a31
add unit tests for notebook document messages
tkrabel-db 53e4ad6
add test_notebook_document
tkrabel-db c891cf0
fix unit tests and pylint
tkrabel-db 3dcaf9f
fix pytest test_notebook_document.py
tkrabel-db ab3bcee
Fix pylint issues:
tkrabel-db 2dd7165
support notebookDocument__did_close
tkrabel-db 7722239
Add notebookDocumentSync to capabilities
tkrabel-db 6c00bfc
Add notebookDocumentSync to capabilities
tkrabel-db 60517c1
fix: publishDiagnostics line starts at line 0
tkrabel-db ecc27ee
fix: publishDiagnostics starts at 0 and newlines are counted correctly
tkrabel-db 25cdfab
fix: publishDiagnostics starts at 0 and newlines are counted correctly
tkrabel-db 2b35c95
fix: publishDiagnostics starts at 0 and newlines are counted correctly
tkrabel-db 69a1621
fix: publishDiagnostics starts at 0 and newlines are counted correctly
tkrabel-db 1e9a51f
fix: publishDiagnostics starts at 0 and newlines are counted correctly
tkrabel-db 4f140da
fix: publishDiagnostics starts at 0 and newlines are counted correctly
tkrabel-db e79bbb2
feat: close cell if deleted
tkrabel-db ce9f458
skip tests on windows as it's flaky on py3.7
tkrabel-db 5434d1f
fix test_notebook_document__did_change: need to wait for 2 calls to d…
tkrabel-db ceb193d
Update test/data/publish_diagnostics_message_examples/example_1.json
tkrabel-db e7df839
remove aliases
tkrabel-db 2dd05b7
address comments
tkrabel-db File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,3 +90,8 @@ class TextDocumentSyncKind: | |
NONE = 0 | ||
FULL = 1 | ||
INCREMENTAL = 2 | ||
|
||
|
||
class NotebookCellKind: | ||
Markup = 1 | ||
Code = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.