-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Default Visualisations Per Type #1737
Comments
Update. Waiting for the specification of the |
From the IDE perspective it would be best if the
Examples are:
Note to everything in here is actually supported by the IDE at the moment. For example, we can't load visualizations from other libraries. This proposal maps closely to the current structure that is used in the IDE and would be directly serializable on our end, but we can discuss if modifications to this might improve it, simplify it or make it more future-proof. The actual values returned right now should all be referring to the existing visualizations which are represented by the following paths:
|
The |
Okay. I guess it should be possible to translate this on the IDE side to a |
@MichaelMauderer after playing around a bit with this API I'd like to propose the following schema:
|
Sounds sensible to me. Now I'm just wondering what kind of path we are actually using here. Would this be an import path for a library? |
That is a very good point. Seems to me like there should be 2 pieces of information needed, but please confirm, as I'm not really sure what the IDE wants to do with this. It probably should include:
|
The IDE should probably not deal with on-disk assets. This would be the job of the project manager. Only the project manager can ensure that this is portable to the cloud. So, I guess essentially we need the "fully qualified library name"/import path and the visualization name. Which still fits the API described above. Maybe |
Yeah, renaming to |
The language server is the only component that runs in the cloud. The project manager does not. |
Summary
The IDE needs to know what is a default visualization for given expression, basing on the type and value of the expression. See https://github.com/enso-org/ide/issues/1548 for more details.
Value
Allow IDE implement https://github.com/enso-org/ide/issues/1548
Specification
default_visualization
method for some standard types, as extension methods in visualization moduleAcceptance Criteria & Test Cases
The text was updated successfully, but these errors were encountered: