-
Notifications
You must be signed in to change notification settings - Fork 93
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
Implement back end -> front end comm messages #218
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
66da9d4
add function for emitting a comm channel msg from kernel
jmcphers bb40cfc
FnOnce based emitter
jmcphers b6bef59
make message emitter static
jmcphers bce362e
use closure to send message over iopub socket
jmcphers 0c55078
Merge remote-tracking branch 'origin/main' into feature/comm-channel-msg
jmcphers 2876028
send_request -> handle_request
jmcphers ea7ef59
use channels exclusively for delivery of msgs to front end
jmcphers affe88e
use message types so we can emit close commands
jmcphers e8b1d6c
emit and handle closed/open messages
jmcphers bee652d
more robust error handling, comments
jmcphers aaddaef
graceful error handling for comm sockets
jmcphers 4e58f7d
clarify methods & data in comm socket
jmcphers 043f2ac
implement test comm
jmcphers 90a01dd
plumb initial client creation params through ext host
jmcphers 6c5d9e8
Merge remote-tracking branch 'origin/main' into feature/comm-channel-msg
jmcphers 3b041a6
promote lsp invocation to adapter level
jmcphers d12bfb2
implement client message and state emitters
jmcphers 1fcae1d
some plumbing for comm data
jmcphers eb6e419
deliver comm messages from kernel to adapter
jmcphers 3c9ef0a
separate message for comm closed from server side
jmcphers c956d7f
finish plumbing for close messages
jmcphers 379dd34
make comm open an async task
jmcphers 4f74011
port backoff-retry LSP connection to positron-r
jmcphers bad940d
Merge remote-tracking branch 'origin/main' into feature/comm-channel-msg
jmcphers a6276a6
don't mix runtimes in adapter output
jmcphers e35a090
use kernel's log in more places
jmcphers ffb7ecb
clarify lsp comm receiver
jmcphers 2b376ba
improve typing on comm data payload
jmcphers 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 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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
13 changes: 0 additions & 13 deletions
13
extensions/positron-r/amalthea/crates/amalthea/src/comm/environment_comm.rs
This file was deleted.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
|
@@ -6,5 +6,4 @@ | |
*/ | ||
|
||
pub mod comm_channel; | ||
pub mod environment_comm; | ||
pub mod lsp_comm; |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any restrictions on this type (e.g. it must be a JavaScript object? it must be parsable as JSON?) I'm just wondering if there's something mildly more typed than
any
that we could use. Butany
is probably fine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good question. I checked the spec and it says that
data
is a dict, so I think that implies it has to be anobject
of some kind. I've updated the relevant types.