Open aplavin opened 2 years ago
I'd like to support all Tables-compatible tables, yes. IIRC that was tricky to do without dependency issues, but I can't quite recall all the details.
A potentially simple solution would be to always show the "table" icon in variable explorer, and use columntable
or rowtable
to actually load data when users click there.
The docs currently say:
All Tables.jl-compatible tables (and more!) can be displayed in the integrated table viewer.
but right now the example from the top errors.
julia> vscodedisplay((;a=[1,2], b=[10,20]))
┌ Warning: Cannot display values of type @NamedTuple{a::Vector{Int64}, b::Vector{Int64}} in VS Code.
└ @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.98.1/scripts/packages/VSCodeServer/src/display.jl:225
I noticed that the extension can display some objects in the tabular view, but for now the set of supported types seems very limited compared to Tables.jl. Is full support for Tables planned, or Tables are out of scope here?
A couple of Tables that cannot be displayed at all:
An example Table that is displayed as a regular array, different from its Tables interpretation: