vscode-language-renpy icon indicating copy to clipboard operation
vscode-language-renpy copied to clipboard

[BUG] - Outline provider sets all ranges to 0 and ignores user sort order

Open multimokia opened this issue 2 years ago • 2 comments

image Despite being sorted by position, the outline provider always categorizes and only orders inners by position. I think it'd be best to avoid categorizing entirely, as with other languages as well, no explicit categories are made, the icon alone is typically the distinction for type.

Additionally, the outline provider only uses a 0 range for all blocks: image

This isn't ideal as it means breadcrumbs have no positional data to invorm the user where they are in the document. It also means the outline is unaware of where the user is in the file.

Functions which can properly block out portions of the file for formal outline providing and potential re-use in the discussed init block handling in #76 (a system to properly handle the starts/ends of blocks is needed) could be built to help.

multimokia avatar Mar 19 '22 19:03 multimokia

Please check if this is still an issue as of v2.1.0-pre-release

duckdoom4 avatar Jul 11 '22 19:07 duckdoom4

Still an issue as items in the outline are classed under callable, class, etc. which makes breadcrumb navigation impossible (as those categories take up a range of 0 starting from the top of the document)

For example, at line 1, column 1: image

But for something like this, no breadcrumb info is shown, nor is the outline aware I am editing the function image

I would expect outline to show definitions.rpy > MASDummyClass > __call__

multimokia avatar Jul 12 '22 15:07 multimokia