redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.07k stars 433 forks source link

Outline view should indicate access modifiers #3742

Open lweber opened 1 month ago

lweber commented 1 month ago

Type: Feature Request

I would like the Outline view to display an icon marker showing whether a method is private/public/protected, static or not, final or not, synchronized or not, etc. Generally when looking at a class outline, I want to quickly see which methods are public and which aren't.

Extension version: 1.33.0 VS Code version: Code 1.92.0 (b1c0a14de1414fcdaa400695b4db1c0799bc3124, 2024-07-31T23:26:45.634Z) OS version: Darwin arm64 22.6.0 Modes:

rgrunber commented 1 month ago

Looks like this is being addressed at https://github.com/microsoft/language-server-protocol/issues/98 in the LSP Spec, and requires some work in VS Code ( https://github.com/microsoft/vscode/issues/164374 ) to actually decorate the outline based on the visibility information.

Once this is supported it would be pretty straighforward for us to implement.