tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.23k stars 85 forks source link

VSCode Extension should not disregard cursor position and collapse all symbol breadcrumbs to "..." in all occasions #1886

Closed suimong closed 2 months ago

suimong commented 2 months ago

Describe the bug The latest version of nls provides proper symbol outlines in the "Outlines" Tab. Normally the same symbol information is also displayed as "breadcrumbs" at the top of the editor view, continuing after the file path and scrolls horizontally if the width exceeds the window (below is an example from a rust file in the nickel codebase, powered by rust-analyzer)

image

However with a nickel file, all symbol information are collapsed in "..." after the file path (see below, note the cursor is positioned at _source2). While one can always click on "..." and navigate to the symbol, IMHO this behavior greatly diminishes the primary utility of breadcrumb that is providing direct visual guidance to the user without keyboard / mouse interaction.

image

I searched for vscode setting entries and couldn't find a knob that tweaks this behavior.

To Reproduce

Expected behavior Expand the symbol information inline in the breadcrumbs bar.

Environment

Additional context Add any other context about the problem here.