Open Dajchan opened 3 years ago
VS Code doesn't have an appropriate "SymbolKind" type to match a #pragma mark or #pragma region -- can you file a feature request on VS Code to add a SymbolKind? If you can give examples of other languages that could benefit then they're more likely to add that.
Also, this feature seems like it would only give "good" results when the Outline view is sorted by Position.
For clarification. VS Code needs to support "SymbolKind" in the Outline View or in the Language Service as a whole?
Both. We'd prefer some "Region" or "Marker" type added to vscode.SymbolKind...although I guess we could just use an existing SymbolKind like "Namespace" and add some comment to the symbol name like we do for other missing SymbolKinds like type aliases.
This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.
This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.
This feature request has received enough votes to be added to our backlog.
Is this a duplicate of https://github.com/microsoft/vscode/issues/74843 ? The issue there seems to be describing it well (and is outside of C++ support)
It potentially is, depends on if/how they fix it.
Seems like this is working now?
Sorry, my comment above isn't valid - now it's obvious that this bug refers to the Outline view, the other one refers to the Minimap.
Hi @ioquatix ,
How did you get the pragma marks to work in the outline view?
Thanks
Andy
@AndrewCapon I did not do anything special. i.e. there is no configuration option AFAIK. What part is not clear from my screenshots? Maybe try copying the pragma I showed exactly?
Hi @ioquatix
Thanks for the reply, nothing is not clear in the screenshots, it just doesn't work here :)
My outline is always flat, the grouping is not shown.
I just tested it again and it's still working as expected.
Maybe it depends on the language, the format of the pragma, etc.
Thanks @ioquatix
I have tested it with .c, .cpp and .h, same pragma format as you are using.
Very strange, I'm on a Mac. I will test it on windows later today and see if that makes a change.
Thanks for the help
Andy
Before I was trying on Linux, and those are the screenshots. You are right, maybe the result is platform dependent, but it also seems to be working on Mac:
For me this would be noise, if you implement it then please don't make it default.
I believe this only works on Mac, I've tried in windows and it doesn't work, only the #pragma region used by the MSVC compiler.
Type: Feature Request
it would be nice to support markers in code (especially in implementation files) to highlight and seperate entries in the Outline View somehow similar to the feature used by XCode.