Pass through remote kernel's language on legacy selection (#21088)

When selecting an active kernel based on legacy usage, have remote
kernels defer to language within kernelspec.

Release Notes:

- N/A
This commit is contained in:
Kyle Kelley 2024-11-22 16:31:11 -08:00 committed by GitHub
parent 9833756224
commit 5766afe710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -258,8 +258,9 @@ impl ReplStore {
runtime_specification.kernelspec.language.to_lowercase()
== language_at_cursor.code_fence_block_name().to_lowercase()
}
KernelSpecification::Remote(_) => {
unimplemented!()
KernelSpecification::Remote(remote_spec) => {
remote_spec.kernelspec.language.to_lowercase()
== language_at_cursor.code_fence_block_name().to_lowercase()
}
})
.cloned()